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

Compute 2x2 eigensystems Helper struct for computing eigensystems, specialized on 2x2 matrices. More...

#include <SymEigen.h>

List of all members.

Static Public Member Functions

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

Detailed Description

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

Compute 2x2 eigensystems Helper struct for computing eigensystems, specialized on 2x2 matrices.


Member Function Documentation

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

Compute an eigensystem.

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

References TooN::sqrt(), and TooN::trace().