File view_matrix_c_contiguous.hpp¶
Typedefs
-
template<typename T>
using AllocatedCContiguousView = DenseMatrixAllocator<CContiguousView<T>>¶ Allocates the memory, a
CContiguousView
provides access to- Template Parameters:
T – The type of the values stored in the
CContiguousView
-
template<typename T>
class CContiguousView : public DenseMatrix<T>¶ - #include <view_matrix_c_contiguous.hpp>
A two-dimensional view that provides row-wise access to values stored in a pre-allocated array of a specific size.
- Template Parameters:
T – The type of the values, the view provides access to
Public Types
Public Functions
-
inline CContiguousView(T *array, uint32 numRows, uint32 numCols)¶
- Parameters:
array – A pointer to an array of template type
T
that stores the values, the view should provide access tonumRows – The number of rows in the view
numCols – The number of columns in the view
-
inline CContiguousView(const CContiguousView<T> &other)¶
- Parameters:
other – A const reference to an object of type
CContiguousView
that should be copied
-
inline CContiguousView(CContiguousView<T> &&other)¶
- Parameters:
other – A reference to an object of type
CContiguousView
that should be moved
-
inline virtual ~CContiguousView() override¶
-
inline const_row operator[](uint32 row) const¶
Creates and returns a view that provides read-only access to a specific row in the view.
- Parameters:
row – The index of the row
- Returns:
An object of type
const_row
that has been created
-
inline row operator[](uint32 row)¶
Creates and returns a view that provides access to a specific row in the view and allows to modify it.
- Parameters:
row – The index of the row
- Returns:
An object of type
row
that has been created
-
inline DenseMatrix<T>::value_const_iterator values_cbegin(uint32 row) const¶
Returns a
value_const_iterator
to the beginning of a specific row in the view.- Parameters:
row – The index of the row
- Returns:
A
value_const_iterator
to the beginning of the row
-
inline DenseMatrix<T>::value_const_iterator values_cend(uint32 row) const¶
Returns a
value_const_iterator
to the end of a specific row in the view.- Parameters:
row – The index of the row
- Returns:
A
value_const_iterator
to the end of the row
-
inline DenseMatrix<T>::value_iterator values_begin(uint32 row)¶
Returns a
value_iterator
to the beginning of a specific row in the view.- Parameters:
row – The index of the row
- Returns:
A
value_iterator
to the beginning of the row
-
inline DenseMatrix<T>::value_iterator values_end(uint32 row)¶
Returns a
value_iterator
to the end of a specific row in the view.- Parameters:
row – The index of the row
- Returns:
A
value_iterator
to the end of the row