VTK
9.4.20241121
|
Matrix wrapping class. More...
#include <vtkMatrixUtilities.h>
Static Public Member Functions | |
template<int RowT, int ColT, class MatrixTT > | |
static ComponentType | Get (MatrixTT &&M) |
Matrix wrapping class.
This class implements a getter templated on the coordinates of the wanted element. A matrix can be a 2D C++ array, a 1D C++ array row-wise ordered, or any STL-like container implementing operator[] and having a value_type typedef.
This class wraps a RowsT x ColsT matrix stored in the container MatrixT. The LayoutT template parameter permits to reindex at compile-time the matrix. If it is set to Layout::Identity, the matrix is assumed to be row-wised ordered. If it is set to Layout::Transpose, the matrix is assumed to be column-wise ordered. One can also convert a 1D input array into a diagonal matrix by setting LayoutT to Layout::Diag. In this particular case, method Get will return a read-only zero on elements outside of the diagonal.
Definition at line 369 of file vtkMatrixUtilities.h.
|
inlinestatic |
Definition at line 380 of file vtkMatrixUtilities.h.