![]() |
Documentation 6b54b78464
|
Decorate a matrix type (Storage) with 3 dimensions. More...
#include <container_decorators.hpp>
Public Types | |
| using | Scalar = typename Storage::Scalar |
| using | Index = typename Storage::Index |
| using | Matrix = CMatrixView< Scalar > |
| using | ConstMatrix = CMatrixView< const Scalar > |
| using | CInnerIter = typename Storage::CInnerIter |
| template<class T , size_t N> | |
| using | CInnerIterGather = typename Storage::template CInnerIterGather< simd::Array< T, N > > |
Public Member Functions | |
| C3DContainerDecorator ()=default | |
| C3DContainerDecorator (Index length, Index rows, Index cols, Scalar value=0) noexcept | |
| void | resize (Index length, Index rows, Index cols, Scalar value=0) noexcept |
| Index | size () const noexcept |
| Container sizes. | |
| Index | length () const noexcept |
| Index | rows () const noexcept |
| Index | cols () const noexcept |
| Scalar & | operator() (Index i, Index j, Index k) noexcept |
| Element-wise access. | |
| const Scalar & | operator() (Index i, Index j, Index k) const noexcept |
| Matrix | operator[] (Index i) noexcept |
| Matrix access. | |
| ConstMatrix | operator[] (Index i) const noexcept |
| Matrix | operator() (Index i, Index j) noexcept |
| Matrix access with an offset. | |
| ConstMatrix | operator() (Index i, Index j) const noexcept |
| CInnerIter | innerIter (Index i, Index j) const noexcept |
| Get a scalar iterator to the inner-most dimension of the container. | |
| template<class T , size_t N> | |
| CInnerIterGather< T, N > | innerIter (simd::Array< T, N > i, Index j) const noexcept |
| Get a SIMD gather iterator to the inner-most dimension of the container. | |
| template<class StaticContainer , class Int > | |
| StaticContainer | get (Int i, Index j=0) const noexcept |
| Return copy of data in a static size container (see C2DContainer::get). | |
| Scalar * | data () |
| Raw data access, for Python wrapper. | |
Static Public Attributes | |
| static constexpr bool | IsRowMajor = true |
| static constexpr bool | IsColumnMajor = false |
Decorate a matrix type (Storage) with 3 dimensions.
| using C3DContainerDecorator< Storage >::CInnerIter = typename Storage::CInnerIter |
| using C3DContainerDecorator< Storage >::CInnerIterGather = typename Storage::template CInnerIterGather<simd::Array<T, N> > |
| using C3DContainerDecorator< Storage >::ConstMatrix = CMatrixView<const Scalar> |
| using C3DContainerDecorator< Storage >::Index = typename Storage::Index |
| using C3DContainerDecorator< Storage >::Matrix = CMatrixView<Scalar> |
| using C3DContainerDecorator< Storage >::Scalar = typename Storage::Scalar |
|
default |
|
inlinenoexcept |
|
inlinenoexcept |
|
inline |
Raw data access, for Python wrapper.
|
inlinenoexcept |
Return copy of data in a static size container (see C2DContainer::get).
| [in] | i | - Outer index. |
| [in] | j | - Starting middle index for the copy (amount determined by container size). |
|
inlinenoexcept |
Get a scalar iterator to the inner-most dimension of the container.
|
inlinenoexcept |
Get a SIMD gather iterator to the inner-most dimension of the container.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Matrix access with an offset.
|
inlinenoexcept |
|
inlinenoexcept |
Element-wise access.
|
inlinenoexcept |
|
inlinenoexcept |
Matrix access.
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Container sizes.
|
staticconstexpr |
|
staticconstexpr |