1 #ifndef UTIL_F_MATRIX_H 2 #define UTIL_F_MATRIX_H 11 #include <util/containers/Matrix.h> 27 template <
typename Data,
int M,
int N>
63 template <
class Archive>
64 void serialize(Archive& ar,
const unsigned int version);
69 Data fixedArray_[M*N];
76 template <
typename Data,
int M,
int N>
88 template <
typename Data,
int M,
int N>
95 for (
int i = 0; i < M*N; ++i) {
96 fixedArray_[i] = other.fixedArray_[i];
103 template <
typename Data,
int M,
int N>
110 template <
typename Data,
int M,
int N>
115 if (
this == &other)
return *
this;
118 for (
int i = 0; i < M*N; ++i) {
119 fixedArray_[i] = other.fixedArray_[i];
128 template <
class Data,
int M,
int N>
129 template <
class Archive>
132 for (
int i = 0; i < M*N; ++i) {
int capacity2_
Number of columns (range of first index).
void serialize(Archive &ar, const unsigned int version)
Serialize an FMatrix to/from an Archive.
FMatrix()
Default constructor.
int capacity1_
Number of rows (range of first index).
Utility classes for scientific computation.
FMatrix< Data, M, N > & operator=(const FMatrix< Data, M, N > &other)
Assignment.
Two-dimensional array container template (abstract).
Data * data_
Pointer to 1D C array of all elements.