Scythe-1.0.3
|
template<typename T_type = double, matrix_order ORDER = Col, matrix_style STYLE = Concrete>
Standard constructor. The standard constructor creates a rowsXcols Matrix, filled with zeros by default. Optionally, you can leave the Matrix uninitialized, or choose a different fill value.
Example: #include <scythestat/matrix.h> using namespace scythe; int main () { // Create a 4x5 matrix of zeros Matrix<> A(4, 5); // Create an unitialized 1000x1000 matrix, in row-major order Matrix<double, Row> B(1000, 1000, false); // Create a 3x2 matrix view filled with 2s Matrix<double, Col, View> C(3, 2, true, 2); return 0; } |