|
| static KOKKOS_FUNCTION constexpr subindices_domain_t | subindices_domain () |
| |
| static constexpr std::size_t | rank () |
| |
| static constexpr std::size_t | size () |
| |
| static constexpr std::size_t | mem_size () |
| |
| static constexpr std::size_t | access_size () |
| |
| static KOKKOS_FUNCTION constexpr std::size_t | mem_id (std::array< std::size_t, sizeof...(TensorIndex)> const &natural_ids) |
| |
| static KOKKOS_FUNCTION constexpr std::size_t | access_id (std::array< std::size_t, sizeof...(TensorIndex)> const &natural_ids) |
| |
| static KOKKOS_FUNCTION constexpr std::size_t | access_id_to_mem_id (std::size_t access_id) |
| |
| template<class Tensor , class Elem , class Id , class FunctorType > |
| static KOKKOS_FUNCTION constexpr Tensor::element_type | process_access (const FunctorType &access, Tensor const &tensor, Elem const &elem) |
| |
| static KOKKOS_FUNCTION constexpr std::array< std::size_t, rank()> | mem_id_to_canonical_natural_ids (std::size_t mem_id) |
| |
template<TensorNatIndex... TensorIndex>
struct sil::tensor::TensorScalingIndex< TensorIndex >
Store a scalar multiple of the identity using one coefficient.
For a matrix, this represents \(A_{ij} = \alpha\delta_{ij}\): every diagonal entry equals the stored value, and every off-diagonal entry is zero. All index dimensions must have the same size. For higher ranks, an entry equals the stored value when all its natural indices agree, and zero otherwise.
- Important
- This documentation is fully AI-generated.
Definition at line 23 of file scaling_tensor.hpp.