|
codac 2.0.0
|

Go to the source code of this file.
Functions | |
|
template<int R = RowsAtCompileTime, int C = ColsAtCompileTime> requires (R == -1 || C == -1) | |
| Matrix ()=delete | |
| Deleted default constructor to prevent default instantiation when either the number of rows or columns is dynamic. | |
| template<int R = RowsAtCompileTime, int C = ColsAtCompileTime> requires (!IsVectorOrRow<R,C>) | |
| Matrix (int r, int c) | |
| Constructs a matrix with given number of rows and columns. | |
| template<int R = RowsAtCompileTime, int C = ColsAtCompileTime> requires (!IsVectorOrRow<R,C>) | |
| Matrix (int r, int c, const Scalar values[]) | |
| Constructs a non-vector matrix with given dimensions and initializes it from a raw array of values. | |
| template<int R = RowsAtCompileTime, int C = ColsAtCompileTime> requires (!IsVectorOrRow<R,C>) | |
| void | resize_save_values (Index r, Index c) |
Resizes the matrix to (r,c), preserving existing values where possible. | |
This file is included in the declaration of Eigen::MatrixBase, thanks to the preprocessor token EIGEN_MATRIX_PLUGIN. See: https://eigen.tuxfamily.org/dox/TopicCustomizing_Plugins.html and the file codac2_matrices.h
|
explicit |
Constructs a matrix with given number of rows and columns.
Initializes the matrix storage with dimensions (r,c). If Scalar is not an interval domain, the matrix is initialized with zeros.
| r | Number of rows (runtime). |
| c | Number of columns (runtime). |
|
explicit |
Constructs a non-vector matrix with given dimensions and initializes it from a raw array of values.
Copies the values from the values array into the matrix elements. If values is null, initializes all elements to zero.
| r | Number of rows (runtime). |
| c | Number of columns (runtime). |
| values | Pointer to array of values used to initialize matrix elements. Can be null, in which case the matrix is zero-initialized. |
r and c must match the compile-time dimensions R and C if these are fixed (not -1). r and c must be non-negative.
|
inline |
Resizes the matrix to (r,c), preserving existing values where possible.
| r | New number of rows. |
| c | New number of columns. |
This function resizes the matrix while preserving the data in the overlapping region of the old and new sizes. Unlike Eigen's resize(), which discards old data, this function copies existing values into the resized matrix.