|
LvArray
|
Contains functions to aid in multidimensional indexing. More...
#include "Macros.hpp"#include "typeManipulation.hpp"#include "limits.hpp"#include <RAJA/RAJA.hpp>

Go to the source code of this file.
Classes | |
| struct | LvArray::indexing::ConditionalMultiply< B_IS_ONE > |
| A helper struct to multiply two numbers. More... | |
| struct | LvArray::indexing::ConditionalMultiply< true > |
| A specialization of ConditionalMultiply that skips the multiplication. More... | |
Namespaces | |
| LvArray | |
| The top level namespace. | |
| LvArray::indexing | |
| Contains functions to aid in multidimensional indexing. | |
Functions | |
| template<int SIZE, typename T > | |
| LVARRAY_HOST_DEVICE constexpr std::enable_if_t<(SIZE==1), T > | LvArray::indexing::multiplyAll (T const *const LVARRAY_RESTRICT values) |
| template<int SIZE, typename T > | |
| LVARRAY_HOST_DEVICE constexpr std::enable_if_t<(SIZE > 1), T > | LvArray::indexing::multiplyAll (T const *const LVARRAY_RESTRICT values) |
| template<int USD, typename INDEX_TYPE , typename INDEX > | |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE | LvArray::indexing::getLinearIndex (INDEX_TYPE const *const LVARRAY_RESTRICT strides, INDEX const index) |
| Get the index into a one dimensional space. More... | |
| template<int USD, typename INDEX_TYPE , typename INDEX , typename ... REMAINING_INDICES> | |
| LVARRAY_HOST_DEVICE constexpr INDEX_TYPE | LvArray::indexing::getLinearIndex (INDEX_TYPE const *const LVARRAY_RESTRICT strides, INDEX const index, REMAINING_INDICES const ... indices) |
| Get the index into a a multidimensional space. More... | |
| std::string | LvArray::indexing::getIndexString () |
| template<typename INDEX , typename ... REMAINING_INDICES> | |
| std::string | LvArray::indexing::getIndexString (INDEX const index, REMAINING_INDICES const ... indices) |
| template<typename INDEX_TYPE , typename ... INDICES> | |
| std::string | LvArray::indexing::printDimsAndIndices (INDEX_TYPE const *const LVARRAY_RESTRICT dims, INDICES const ... indices) |
| template<typename INDEX_TYPE , typename ... INDICES> | |
| LVARRAY_HOST_DEVICE constexpr bool | LvArray::indexing::invalidIndices (INDEX_TYPE const *const LVARRAY_RESTRICT dims, INDICES const ... indices) |
| template<typename INDEX_TYPE , typename ... INDICES> | |
| LVARRAY_HOST_DEVICE void | LvArray::indexing::checkIndices (INDEX_TYPE const *const LVARRAY_RESTRICT dims, INDICES const ... indices) |
Check that the indices are with dims , if not the program is aborted. More... | |
| template<typename PERMUTATION , typename INDEX_TYPE , camp::idx_t NDIM> | |
| LVARRAY_HOST_DEVICE typeManipulation::CArray< INDEX_TYPE, NDIM > | LvArray::indexing::calculateStrides (typeManipulation::CArray< INDEX_TYPE, NDIM > const &dims) |
| Calculate the strides given the dimensions and permutation. More... | |
Contains functions to aid in multidimensional indexing.
1.8.13