lin
|
Generic matrix view. More...
#include <lin/views/matrix_view.hpp>
Public Types | |
typedef traits< MatrixView< T, R, C, MR, MC > > | Traits |
Traits information for this type. More... | |
![]() | |
typedef traits< MatrixView< T, R, C, MR, MC > > | Traits |
Traits information for this type. More... | |
![]() | |
typedef traits< MatrixView< T, R, C, MR, MC > > | Traits |
Traits information for this type. More... | |
![]() | |
typedef traits< MatrixView< T, R, C, MR, MC > > | Traits |
Traits information for this type. More... | |
![]() | |
typedef traits< MatrixView< T, R, C, MR, MC > > | Traits |
Traits information for this type. More... | |
Public Member Functions | |
constexpr | MatrixView (MatrixView< T, R, C, MR, MC > const &)=default |
constexpr | MatrixView (MatrixView< T, R, C, MR, MC > &&)=default |
constexpr MatrixView< T, R, C, MR, MC > & | operator= (MatrixView< T, R, C, MR, MC > const &)=default |
constexpr MatrixView< T, R, C, MR, MC > & | operator= (MatrixView< T, R, C, MR, MC > &&)=default |
![]() | |
constexpr | TensorView (TensorView< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr | TensorView (TensorView< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr | TensorView (typename Traits::elem_t *elems) |
Constructs a new tensor tensor view with the provided backing array. More... | |
constexpr | TensorView (typename Traits::elem_t *elems, size_t r, size_t c) |
Constructs a new tensor tensor view with the provided backing array and requested dimensions. More... | |
constexpr TensorView< MatrixView< T, R, C, MR, MC > > & | operator= (TensorView< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr TensorView< MatrixView< T, R, C, MR, MC > > & | operator= (TensorView< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr Traits::elem_t * | data () |
Retrives a pointer to the element backing array. More... | |
![]() | |
constexpr | Base (Base< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr | Base (Base< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr Base< MatrixView< T, R, C, MR, MC > > & | operator= (Base< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr Base< MatrixView< T, R, C, MR, MC > > & | operator= (Base< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr Traits::elem_t * | data () |
Retrives a pointer to the element backing array. More... | |
constexpr Traits::elem_t const * | data () const |
Retrives a constant pointer to the element backing array. More... | |
constexpr Traits::elem_t & | operator() (size_t i, size_t j) |
Provides read and write access to tensor elements. More... | |
constexpr Traits::elem_t & | operator() (size_t i) |
Provides read and write access to tensor elements. More... | |
![]() | |
constexpr | Mapping (Mapping< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr | Mapping (Mapping< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr Mapping< MatrixView< T, R, C, MR, MC > > & | operator= (Mapping< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr Mapping< MatrixView< T, R, C, MR, MC > > & | operator= (Mapping< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr MatrixView< T, R, C, MR, MC > & | operator= (std::initializer_list< T > const &list) |
Copy an initializer list's elements into the tensor's elements. More... | |
constexpr MatrixView< T, R, C, MR, MC > & | operator= (Stream< C > const &s) |
Copy another tensor's elements into this tenosr's elements. More... | |
constexpr Traits::elem_t & | operator() (size_t i, size_t j) |
Provides read and write access to tensor elements. More... | |
constexpr Traits::elem_t | operator() (size_t i, size_t j) const |
Provides read only access to tensor elements. More... | |
constexpr Traits::elem_t & | operator() (size_t i) |
Provides read and write access to tensor elements. More... | |
constexpr Traits::elem_t | operator() (size_t i) const |
Provides read only access to tensor elements. More... | |
constexpr Traits::elem_t & | operator[] (size_t i) |
Provides read and write access to tensor elements. More... | |
constexpr Traits::elem_t | operator[] (size_t i) const |
Provides read only access to tensor elements. More... | |
![]() | |
constexpr | Stream (Stream< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr | Stream (Stream< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr Stream< MatrixView< T, R, C, MR, MC > > & | operator= (Stream< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr Stream< MatrixView< T, R, C, MR, MC > > & | operator= (Stream< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr size_t | rows () const |
constexpr size_t | cols () const |
constexpr size_t | size () const |
constexpr Traits::elem_t | operator() (size_t i, size_t j) const |
Provides read only access to tensor elements. More... | |
constexpr Traits::elem_t | operator() (size_t i) const |
Provides read only access to tensor elements. More... | |
constexpr Traits::elem_t | operator[] (size_t i) const |
Provides read only access to tensor elements. More... | |
constexpr Traits::eval_t | eval () const |
Forces evaluation of this stream to a value backed type. More... | |
![]() | |
constexpr | Dimensions (Dimensions< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr | Dimensions (Dimensions< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr Dimensions< MatrixView< T, R, C, MR, MC > > & | operator= (Dimensions< MatrixView< T, R, C, MR, MC > > const &)=default |
constexpr Dimensions< MatrixView< T, R, C, MR, MC > > & | operator= (Dimensions< MatrixView< T, R, C, MR, MC > > &&)=default |
constexpr size_t | rows () const |
constexpr size_t | cols () const |
constexpr void | resize (size_t r, size_t c) |
Resizes a tensor's dimensions. More... | |
Additional Inherited Members | |
![]() | |
constexpr MatrixView< T, R, C, MR, MC > & | derived () |
constexpr MatrixView< T, R, C, MR, MC >const & | derived () const |
Generic matrix view.
T | Matrix view element type. |
R | Rows at compile time. |
C | Columns at compile time. |
MR | Maximum rows at compile time. |
MC | Maximum columns at compile time. |
The template parameters specify the matrix view's traits. The traits must qualify this type as a matrix.
typedef traits<MatrixView<T, R, C, MR, MC> > lin::internal::MatrixView< T, R, C, MR, MC >::Traits |
Traits information for this type.