|
Expression Templates Library (ETL)
|
Dense Matrix with run-time fixed dimensions. The matrix support an arbitrary number of dimensions. More...
#include <dyn_base.hpp>


Public Types | |
| using | value_type = T |
| The type of the contained values. | |
| using | base_type = dyn_base< Derived, T, D > |
| The base type. | |
| using | this_type = dense_dyn_base< Derived, T, SO, D > |
| The type of this class. | |
| using | derived_t = Derived |
| The derived type. | |
| using | memory_type = value_type * |
| The memory type. | |
| using | const_memory_type = const value_type * |
| The const memory type. | |
| using | iterator = memory_type |
| The type of iterator. | |
| using | const_iterator = const_memory_type |
| The type of const iterator. | |
| using | dimension_storage_impl = typename base_type::dimension_storage_impl |
| The storage type used to store the dimensions. | |
Public Member Functions | |
| dense_dyn_base () noexcept | |
| Initialize the dense_dyn_base with a size of 0. | |
| dense_dyn_base (const dense_dyn_base &rhs) noexcept | |
| Copy construct a dense_dyn_base. More... | |
| dense_dyn_base (const derived_t &rhs) noexcept | |
| Copy construct a derived_t. More... | |
| dense_dyn_base (dense_dyn_base &&rhs) noexcept | |
| Move construct a dense_dyn_base. More... | |
| dense_dyn_base (derived_t &&rhs) noexcept | |
| Move construct a derived_t. More... | |
| dense_dyn_base (size_t size, dimension_storage_impl dimensions) noexcept | |
| Construct a dense_dyn_base if the given size and dimensions. More... | |
| template<etl_expr E> | |
| dense_dyn_base (E &&rhs) requires(!std | |
| Move construct a dense_dyn_base. More... | |
| decltype(auto) | operator() (size_t i) noexcept(assert_nothrow) |
| Access the ith element of the container. More... | |
| decltype(auto) | operator() (size_t i) const noexcept(assert_nothrow) |
| Access the ith element of the container. More... | |
Public Attributes | |
| value_type *ETL_RESTRICT | _memory = nullptr |
| Pointer to the allocated memory. | |
| gpu_memory_handler< T > | _gpu |
| The GPU memory handler. | |
Static Public Attributes | |
| static constexpr size_t | n_dimensions = D |
| The number of dimensions. | |
| static constexpr order | storage_order = SO |
| The storage order. | |
Dense Matrix with run-time fixed dimensions. The matrix support an arbitrary number of dimensions.
|
inlinenoexcept |
Copy construct a dense_dyn_base.
| rhs | The dense_dyn_base to copy from |
|
inlineexplicitnoexcept |
Copy construct a derived_t.
This constructor is necessary in order to use the correct constructor in the parent type.
| rhs | The derived_t to copy from |
|
inlinenoexcept |
Move construct a dense_dyn_base.
| rhs | The dense_dyn_base to move from |
|
inlineexplicitnoexcept |
Move construct a derived_t.
This constructor is necessary in order to use the correct constructor in the parent type.
| rhs | The dense_dyn_base to move from |
|
inlinenoexcept |
Construct a dense_dyn_base if the given size and dimensions.
| size | The size of the matrix |
| dimensions | The dimensions of the matrix |
|
inlineexplicit |
Move construct a dense_dyn_base.
| rhs | The dense_dyn_base to move from |
|
inlinenoexcept |
Access the ith element of the container.
If the container is vector, this returns a reference to the ith element of the vector. If the container is a matrix, this returns a sub view inside the first dimension of the matrix at the ith index.
| i | The index of the element to search |
Accessing an element outside the matrix results in Undefined Behaviour.
|
inlinenoexcept |
Access the ith element of the container.
If the container is vector, this returns a reference to the ith element of the vector. If the container is a matrix, this returns a sub view inside the first dimension of the matrix at the ith index.
| i | The index of the element to search |
Accessing an element outside the matrix results in Undefined Behaviour.
1.8.13