Definition at line 755 of file mainIm.cpp. References ILOG_INFO, ILOG_VAR, Impala::Core::Matrix::MatTranspose(), Impala::Core::Array::PrintData(), PrMatrix(), and Impala::Core::Matrix::MatrixTem< C >::t(). Referenced by mainIm(). 00756 { 00757 ILOG_VAR(Impala.Application.Im.DoTest); 00758 int i; 00759 double* ptr = new double[12]; 00760 for (i=0 ; i<12 ; i++) 00761 ptr[i] = i; 00762 MatrixDouble m(3, 4, ptr); 00763 PrMatrix(m); 00764 m = m.t(); 00765 PrMatrix(m); 00766 00767 ILOG_INFO("========== New version ============="); 00768 typedef Array2dScalarReal64 Mat; 00769 00770 double* ptr2 = new double[12]; 00771 for (i=0 ; i<12 ; i++) 00772 ptr2[i] = i; 00773 Mat* mm = Core::Matrix::MatCreate<Mat>(3, 4, ptr2); 00774 PrintData(mm, false); 00775 Mat* mm2 = MatTranspose(mm); 00776 PrintData(mm2, false); 00777 }
Here is the call graph for this function:
|