// Validity test for 5x5 similarity transforms #include #include "CovMatrices/Similarity5.h" using namespace CovMatrices; using namespace std; CovMatrix5 C(5., 4., 4.1, 3., 3.1, 3.2, 2., 2.1, 2.2, 2.3, 1., 1.1, 1.2, 1.3, 1.4); Vector5 V, vv[5], vv2[5]; CovMatrix5 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<