VTK-m
2.2
|
#include <Matrix.h>
Public Types | |
using | ComponentType = T |
Public Member Functions | |
Matrix () | |
Creates an uninitialized matrix. The values in the matrix are not determined. More... | |
Matrix (const ComponentType &value) | |
Creates a matrix initialized with all values set to the provided value . More... | |
const vtkm::Vec< ComponentType, NUM_COLUMNS > & | operator[] (vtkm::IdComponent rowIndex) const |
Brackets are used to reference a matrix like a 2D array (i.e. More... | |
vtkm::Vec< ComponentType, NUM_COLUMNS > & | operator[] (vtkm::IdComponent rowIndex) |
Brackets are used to referens a matrix like a 2D array i.e. More... | |
const ComponentType & | operator() (vtkm::IdComponent rowIndex, vtkm::IdComponent colIndex) const |
Parentheses are used to reference a matrix using mathematical tuple notation i.e. More... | |
ComponentType & | operator() (vtkm::IdComponent rowIndex, vtkm::IdComponent colIndex) |
Parentheses are used to reference a matrix using mathematical tuple notation i.e. More... | |
Static Public Attributes | |
static constexpr vtkm::IdComponent | NUM_ROWS = NumRow |
static constexpr vtkm::IdComponent | NUM_COLUMNS = NumCol |
Private Attributes | |
vtkm::Vec< vtkm::Vec< ComponentType, NUM_COLUMNS >, NUM_ROWS > | Components |
Basic Matrix type.
The Matrix class holds a small two dimensional array for simple linear algebra and vector operations. VTK-m provides several Matrix-based operations to assist in visualization computations.
A Matrix is not intended to hold very large arrays. Rather, they are a per-thread data structure to hold information like geometric transforms and tensors.
using vtkm::Matrix< T, NumRow, NumCol >::ComponentType = T |
|
inline |
Creates an uninitialized matrix. The values in the matrix are not determined.
|
inlineexplicit |
Creates a matrix initialized with all values set to the provided value
.
|
inline |
Parentheses are used to reference a matrix using mathematical tuple notation i.e.
matrix(row,column).
|
inline |
Parentheses are used to reference a matrix using mathematical tuple notation i.e.
matrix(row,column).
|
inline |
Brackets are used to referens a matrix like a 2D array i.e.
matrix[row][column].
|
inline |
Brackets are used to reference a matrix like a 2D array (i.e.
matrix[row][column]).
|
private |
|
staticconstexpr |
|
staticconstexpr |