23 #include <boost/filesystem/operations.hpp> 24 #include <boost/make_shared.hpp> 47 remove(
"TestMatrixIOTemp.log");
57 MatrixIO::WriteBinary(testFilename, matrix);
60 MatrixIO::ReadBinary(testFilename, matrixIn);
69 boost::filesystem::path full_path(boost::filesystem::current_path());
74 *A << -14.834628974133, -15.729764770592, 56.292839002858, 30.766363712773,
75 79.595747995303, -8.356622426449, 20.840197237638, 83.801095382748,
76 87.889866880787, 13.75327399942, 86.730656404499, -0.46420627108677;
78 *B << 23.588885367543, 49.667231605868, -86.700220187964,
79 51.392601274063, -77.511392742378, 23.389497301117,
80 -78.475202879706, -62.60684915327, -42.39206607192,
81 59.595164405161, 2.1025961854091, 65.787705013259;
86 MatrixIO::GetWriteStream(out, testFilename);
88 MatrixIO::WriteBinary(out, A);
89 MatrixIO::WriteBinary(out, B);
90 MatrixIO::WriteBinary(out, C);
99 MatrixIO::GetReadStream(in, testFilename);
101 MatrixIO::ReadBinary(in, AIn);
102 MatrixIO::ReadBinary(in, BIn);
103 MatrixIO::ReadBinary(in, CIn);
112 int main(
int argc,
char* argv[])
int main(int argc, char *argv[])
boost::shared_ptr< MatrixType > MatrixPtr
#define TEST_PROLOG(argc, argv)