VISH
0.2
|
Tiny matrix classes with optimized numerical operations which make use of vectorization features through the VVector class. More...
Tiny matrix classes with optimized numerical operations which make use of vectorization features through the VVector class.
Column< R, value > operator* | ( | const Matrix< R, C, value > & | A, |
const Column< C, value > & | V | ||
) | [related] |
Multiply r (rows) by c (columns) matrix A on the left by column vector V of dimension c on the right to produce a (column) vector C output of dimension r.
void UnsortedEigenVectors | ( | LowerTriangular< N, value > & | A, |
Quadratic< N, value > & | RRmatrix, | ||
Row< N, value > & | E, | ||
double | precision = 1E-10 |
||
) | [related] |
Eigenvalues and eigenvectors of a real symmetric matrix.
A | The input matrix, will be destroyed during computation |
RR | The eigenvectors, stored column-wise in the quadratic matrics; use the column(i) function to get the i'th eigenvector |
E | The eigenvalues, stored in a row |
precision | Error control parameter. After diagonalization, the off-diagonal elements of A will have been reduced by this factor. |
The algorithm is due to J. von Neumann. Classified by WB from C sources of the cephes library by Stephen L. Moshier.
Example code:
// Input data LowerTriangular<3, double> InputMatrix; // Output data Quadratic<3, double> EVectors; Row<3,double> EValues; double precision = 1E-8; EigenVectors( InputMatrix, Evectors, Evalues, precision);