SimiLie
Loading...
Searching...
No Matches
sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex > Class Template Reference

#include <csr.hpp>

Collaboration diagram for sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >:
Collaboration graph

Public Member Functions

constexpr Csr (ddc::DiscreteDomain< HeadTensorIndex, TailTensorIndex... > domain, std::array< std::size_t, HeadTensorIndex::mem_size()+1 > coalesc_idx, std::array< std::array< std::size_t, N >, sizeof...(TailTensorIndex)> idx, std::array< double, N > values)
 
 Csr (CsrDynamic< HeadTensorIndex, TailTensorIndex... > csr_dyn)
 
KOKKOS_FUNCTION constexpr ddc::DiscreteDomain< HeadTensorIndex, TailTensorIndex... > domain () const
 
KOKKOS_FUNCTION constexpr std::array< std::size_t, HeadTensorIndex::mem_size()+1 > const & coalesc_idx () const
 
KOKKOS_FUNCTION constexpr std::array< std::array< std::size_t, N >, sizeof...(TailTensorIndex)> const & idx () const
 
KOKKOS_FUNCTION constexpr std::array< double, N > const & values () const
 

Detailed Description

template<std::size_t N, tensor::TensorIndex HeadTensorIndex, tensor::TensorNatIndex... TailTensorIndex>
class sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >

Definition at line 43 of file csr.hpp.

Constructor & Destructor Documentation

◆ Csr() [1/2]

template<std::size_t N, tensor::TensorIndex HeadTensorIndex, tensor::TensorNatIndex... TailTensorIndex>
sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >::Csr ( ddc::DiscreteDomain< HeadTensorIndex, TailTensorIndex... > domain,
std::array< std::size_t, HeadTensorIndex::mem_size()+1 > coalesc_idx,
std::array< std::array< std::size_t, N >, sizeof...(TailTensorIndex)> idx,
std::array< double, N > values )
inlineconstexpr

Definition at line 52 of file csr.hpp.

◆ Csr() [2/2]

template<std::size_t N, tensor::TensorIndex HeadTensorIndex, tensor::TensorNatIndex... TailTensorIndex>
sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >::Csr ( CsrDynamic< HeadTensorIndex, TailTensorIndex... > csr_dyn)
inline

Definition at line 64 of file csr.hpp.

Member Function Documentation

◆ domain()

template<std::size_t N, tensor::TensorIndex HeadTensorIndex, tensor::TensorNatIndex... TailTensorIndex>
KOKKOS_FUNCTION constexpr ddc::DiscreteDomain< HeadTensorIndex, TailTensorIndex... > sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >::domain ( ) const
inlineconstexpr

Definition at line 75 of file csr.hpp.

◆ coalesc_idx()

template<std::size_t N, tensor::TensorIndex HeadTensorIndex, tensor::TensorNatIndex... TailTensorIndex>
KOKKOS_FUNCTION constexpr std::array< std::size_t, HeadTensorIndex::mem_size()+1 > const & sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >::coalesc_idx ( ) const
inlineconstexpr

Definition at line 82 of file csr.hpp.

◆ idx()

template<std::size_t N, tensor::TensorIndex HeadTensorIndex, tensor::TensorNatIndex... TailTensorIndex>
KOKKOS_FUNCTION constexpr std:: array< std::array< std::size_t, N >, sizeof...(TailTensorIndex)> const & sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >::idx ( ) const
inlineconstexpr

Definition at line 89 of file csr.hpp.

◆ values()

template<std::size_t N, tensor::TensorIndex HeadTensorIndex, tensor::TensorNatIndex... TailTensorIndex>
KOKKOS_FUNCTION constexpr std::array< double, N > const & sil::csr::Csr< N, HeadTensorIndex, TailTensorIndex >::values ( ) const
inlineconstexpr

Definition at line 94 of file csr.hpp.


The documentation for this class was generated from the following file: