File view_matrix_fortran_contiguous.hpp

Typedefs

template<typename T>
using AllocatedFortranContiguousView = DenseMatrixAllocator<FortranContiguousView<T>>

Allocates the memory, a FortranContiguousView provides access to

Template Parameters:

T – The type of the values stored in the FortranContiguousView

template<typename T>
class FortranContiguousView : public DenseMatrix<T>
#include <view_matrix_fortran_contiguous.hpp>

A two-dimensional view that provides column-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

typedef const Vector<const T> const_column

Provides read-only access to an individual column in the view.

typedef Vector<T> column

Provides access to an individual column in the view and allows to modify it.

Public Functions

inline FortranContiguousView(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 to

  • numRows – The number of rows in the view

  • numCols – The number of columns in the view

inline FortranContiguousView(const FortranContiguousView<T> &other)
Parameters:

other – A const reference to an object of type FortranContiguousView that should be copied

inline FortranContiguousView(FortranContiguousView<T> &&other)
Parameters:

other – A reference to an object of type FortranContiguousView that should be moved

inline virtual ~FortranContiguousView() override
inline const_column operator[](uint32 column) const

Creates and returns a view that provides read-only access to a specific column in the view.

Parameters:

column – The index of the column

Returns:

An object of type const_column that has been created

inline column operator[](uint32 column)

Creates and returns a view that provides access to a specific column in the view and allows to modify it.

Parameters:

column – The index of the column

Returns:

An object of type column that has been created

inline DenseMatrix<T>::value_const_iterator values_cbegin(uint32 column) const

Returns a value_const_iterator to the beginning of a specific column in the view.

Parameters:

column – The index of the column

Returns:

A value_const_iterator to the beginning of the column

inline DenseMatrix<T>::value_const_iterator values_cend(uint32 column) const

Returns a value_const_iterator to the end of a specific column in the view.

Parameters:

column – The index of the column

Returns:

A value_const_iterator to the end of the column

inline DenseMatrix<T>::value_iterator values_begin(uint32 column)

Returns a value_iterator to the beginning of a specific column in the view.

Parameters:

column – The index of the column

Returns:

A value_iterator to the beginning of the column

inline DenseMatrix<T>::value_iterator values_end(uint32 column)

Returns a value_iterator to the end of a specific column in the view.

Parameters:

column – The index of the column

Returns:

A value_iterator to the end of the column