TooN 2.1
Static Public Member Functions
ComputeSymEigen< 3 > Struct Template Reference

Compute 3x3 eigensystems Helper struct for computing eigensystems, specialized on 3x3 matrices. More...

#include <SymEigen.h>

List of all members.

Static Public Member Functions

template<typename P , typename B >
static void compute (const Matrix< 3, 3, P, B > &m, Matrix< 3, 3, P > &eig, Vector< 3, P > &ev)

Detailed Description

template<>
struct TooN::Internal::ComputeSymEigen< 3 >

Compute 3x3 eigensystems Helper struct for computing eigensystems, specialized on 3x3 matrices.


Member Function Documentation

static void compute ( const Matrix< 3, 3, P, B > &  m,
Matrix< 3, 3, P > &  eig,
Vector< 3, P > &  ev 
) [static]

Compute an eigensystem.

Parameters:
mInput matrix (assumed to be symmetric)
eigEigen vector output
evEigen values output

Need A,B = cubert(alpha +- beta) Turn in to r, theta r^(1/3) * e^(i * theta/3)

References TooN::Identity, TooN::norm_1(), TooN::normalize(), TooN::Ones, TooN::sqrt(), and TooN::unit().