ITK
6.0.0
Insight Toolkit
|
#include <itkArray2D.h>
Array2D class representing a 2D array.
This class derives from the vnl_matrix<> class.
The class is templated over the type of the elements.
Template parameters for class Array2D:
Definition at line 42 of file itkArray2D.h.
Public Types | |
using | Self = Array2D |
using | ValueType = TValue |
using | VnlMatrixType = vnl_matrix< TValue > |
Public Member Functions | |
Array2D ()=default | |
Array2D (const Self &)=default | |
Array2D (const VnlMatrixType &matrix) | |
Array2D (Self &&array) noexcept | |
Array2D (unsigned int numberOfRows, unsigned int numberOfCols) | |
Array2D (unsigned int numberOfRows, unsigned int numberOfCols, const TValue &initialValue) | |
void | Fill (TValue const &v) |
const TValue & | GetElement (SizeValueType row, SizeValueType col) const |
Self & | operator= (const Self &)=default |
Self & | operator= (const VnlMatrixType &matrix) |
void | SetElement (SizeValueType row, SizeValueType col, const TValue &value) |
void | SetSize (unsigned int m, unsigned int n) |
~Array2D () override=default | |
Self & | operator= (Self &&array) noexcept |
using itk::Array2D< TValue >::Self = Array2D |
Definition at line 47 of file itkArray2D.h.
using itk::Array2D< TValue >::ValueType = TValue |
The element type stored at each location in the Array2D.
Definition at line 46 of file itkArray2D.h.
using itk::Array2D< TValue >::VnlMatrixType = vnl_matrix<TValue> |
Definition at line 48 of file itkArray2D.h.
|
default |
Default-constructor. Creates a matrix of size zero (0 rows and 0 columns).
itk::Array2D< TValue >::Array2D | ( | unsigned int | numberOfRows, |
unsigned int | numberOfCols | ||
) |
Constructs a matrix of the specified number of rows and columns.
itk::Array2D< TValue >::Array2D | ( | unsigned int | numberOfRows, |
unsigned int | numberOfCols, | ||
const TValue & | initialValue | ||
) |
Constructs a matrix of the specified number of rows and columns, with each element having the specified initial value.
|
default |
Copy-constructor.
|
inlinenoexcept |
Move-constructor.
noexcept
, even while the move-constructor of its base class (vnl_matrix
) is not noexcept
, because unlike vnl_matrix
, Array2D
always manages its own memory. Definition at line 66 of file itkArray2D.h.
itk::Array2D< TValue >::Array2D | ( | const VnlMatrixType & | matrix | ) |
Converting constructor. Implicitly converts the specified matrix to an Array2D.
|
overridedefault |
Destructor.
|
inline |
Definition at line 96 of file itkArray2D.h.
|
inline |
Get one element
Definition at line 103 of file itkArray2D.h.
|
default |
Copy-assignment operator.
Self& itk::Array2D< TValue >::operator= | ( | const VnlMatrixType & | matrix | ) |
Assigns the specified matrix to an Array2D.
|
inlinenoexcept |
Move-assignment operator.
noexcept
, even while the move-assignment operator of its base class (vnl_matrix
) is not noexcept
, because unlike vnl_matrix
, Array2D
always manages its own memory. Definition at line 83 of file itkArray2D.h.
|
inline |
Set one element
Definition at line 110 of file itkArray2D.h.
void itk::Array2D< TValue >::SetSize | ( | unsigned int | m, |
unsigned int | n | ||
) |
Destructively set the size to that given. Will lose data.
Referenced by itk::IdentityTransform< TParametersValueType, VDimension >::ComputeJacobianWithRespectToParameters().