// Validity test for 6x6 similarity transforms #include #include "CovMatrices/Similarity6.h" using namespace CovMatrices; using namespace std; CovMatrix6 C(6., 5.5, 5.4, 4.5, 4.4, 4.3, 3., 3.1, 3.2, 3.3, 2., 2.1, 2.2, 2.2, 2.4, 1., 1.1, 1.2, 1.3, 1.4, 1.5); Vector6 V, vv[6], vv2[6]; CovMatrix6 C2; int main() { cout << C; cout << C.determinant() << std::endl; C.diagonalize(V,vv); // NOTE: diagonalize produces an array of eigenvectors // When used as a matrix, the array is the TRANSPOSE of the // similarity matrix needed to diagonalize the original matrix cout<