partial specialisation of the `IndexingPoliciesCompatiblityCheck class for RuntimeVectorIndexingPolicy of the same size. */ template <> struct IndexingPoliciesCompatiblityCheck<RuntimeVectorIndexingPolicy, RuntimeVectorIndexingPolicy> : public IndexingPoliciesCompatiblityCheckBase< RuntimeVectorIndexingPolicy, RuntimeVectorIndexingPolicy> { [[nodiscard]] static constexpr bool haveTheSameMemoryLayout() { return true; } // end of haveTheSameMemoryLayout }; // end of struct IndexingPolicyCompatiblityCheck
More...
#include </home/runner/work/tfel/tfel/include/TFEL/Math/Array/RuntimeIndexingPolicies.hxx>
|
|
using | size_type = std::size_t |
|
using | RowMajorIndexingPolicy = RuntimeRowMajorMatrixIndexingPolicy |
|
|
*brief constructor TFEL_HOST_DEVICE constexpr | RuntimeRowMajorMatrixIndexingPolicy (const size_type r, const size_type c) |
|
*brief constructor TFEL_HOST_DEVICE constexpr | RuntimeRowMajorMatrixIndexingPolicy (const std::array< size_type, 2u > &sizes) |
|
*brief move constructor constexpr | RuntimeRowMajorMatrixIndexingPolicy (RuntimeRowMajorMatrixIndexingPolicy &&)=default |
|
*brief copy constructor constexpr | RuntimeRowMajorMatrixIndexingPolicy (const RuntimeRowMajorMatrixIndexingPolicy &)=default |
|
*brief move constructor constexpr RuntimeRowMajorMatrixIndexingPolicy & | operator= (RuntimeRowMajorMatrixIndexingPolicy &&)=default |
|
*brief copy constructor constexpr RuntimeRowMajorMatrixIndexingPolicy & | operator= (const RuntimeRowMajorMatrixIndexingPolicy &)=default |
|
*TFEL_HOST_DEVICE constexpr size_type | getIndex (const size_type i, const size_type j) const noexcept |
|
*TFEL_HOST_DEVICE constexpr size_type | getIndex (const std::array< size_type, 2u > indices) const noexcept |
|
*return the minimal data size TFEL_HOST_DEVICE constexpr size_type | getUnderlyingArrayMinimalSize () const noexcept |
|
*TFEL_HOST_DEVICE constexpr RuntimeRowMajorMatrixIndexingPolicy | getRowMajorIndexingPolicy () |
|
*return if the matrix is empty TFEL_HOST_DEVICE constexpr bool | empty () const noexcept |
|
*TFEL_HOST_DEVICE constexpr size_type | size () const noexcept |
| TFEL_HOST_DEVICE constexpr size_type | size (const size_type i) const noexcept |
|
*return the number of rows TFEL_HOST_DEVICE constexpr size_type | getNumberOfRows () const noexcept |
|
*return the number of cols TFEL_HOST_DEVICE constexpr size_type | getNumberOfColumns () const noexcept |
|
|
*static constexpr auto | hasFixedSizes = false |
|
*static constexpr auto | areDataContiguous = true |
|
*static constexpr auto | unRollLoop = false |
|
*static constexpr size_type | arity = 2 |
partial specialisation of the `IndexingPoliciesCompatiblityCheck class for RuntimeVectorIndexingPolicy of the same size. */ template <> struct IndexingPoliciesCompatiblityCheck<RuntimeVectorIndexingPolicy, RuntimeVectorIndexingPolicy> : public IndexingPoliciesCompatiblityCheckBase< RuntimeVectorIndexingPolicy, RuntimeVectorIndexingPolicy> { [[nodiscard]] static constexpr bool haveTheSameMemoryLayout() { return true; } // end of haveTheSameMemoryLayout }; // end of struct IndexingPolicyCompatiblityCheck
/*!
an indexing policy suitable for runtime matrices
◆ size()
| TFEL_HOST_DEVICE constexpr size_type tfel::math::RuntimeRowMajorMatrixIndexingPolicy::size |
( |
const size_type | i | ) |
const |
|
inlinenodiscardconstexprnoexcept |
- Returns
- the logical size of the array for the given dimension
- Parameters
-
The documentation for this struct was generated from the following file: