22 #ifndef __ANTARES_LIBS_ARRAY_MATRIX_FILL_MTX_H__
23 #define __ANTARES_LIBS_ARRAY_MATRIX_FILL_MTX_H__
27 #include <boost/test/unit_test.hpp>
29 #include <antares/array/matrix.h>
32 using namespace Antares;
34 template<
class T =
double,
class ReadWriteT = T>
51 BOOST_REQUIRE_EQUAL(height * width, vec.size());
52 this->reset(width, height,
true);
54 for (uint j = 0; j < height; j++)
56 for (uint i = 0; i < width; i++)
58 this->entry[i][j] = vec[count];
65 const AnyString& )
const override
70 void saveBufferToFile(std::string& buffer, Yuni::IO::File::Stream& )
const override
76 mutable std::string data;
A n-by-n matrix.
Definition: matrix.h:44
Definition: fill-matrix.h:36
bool openFile(Yuni::IO::File::Stream &, const AnyString &) const override
Trying to open a file.
Definition: fill-matrix.h:64