PhysicsBasedAnimationToolkit 0.0.10
Cross-platform C++20 library of algorithms and data structures commonly used in computer graphics research on physically-based simulation.
Loading...
Searching...
No Matches
pbat::sim::vbd::multigrid::SMatrix< TScalar, M, N > Class Template Reference

Public Types

using ScalarType = TScalar
 
using SelfType = SMatrix<ScalarType, M, N>
 
using StorageType = std::array<ScalarType, M * N>
 
using IndexType = typename StorageType::size_type
 

Public Member Functions

template<class... T>
PBAT_HOST_DEVICE SMatrix (T... values)
 
template<class TMatrix>
PBAT_HOST_DEVICE SMatrix (TMatrix &&B)
 
PBAT_HOST_DEVICE void SetConstant (ScalarType k)
 
PBAT_HOST_DEVICE ScalarType operator() (auto i, auto j) const
 
PBAT_HOST_DEVICE ScalarType & operator() (auto i, auto j)
 
PBAT_HOST_DEVICE ScalarType operator() (auto i) const
 
PBAT_HOST_DEVICE ScalarType & operator() (auto i)
 
PBAT_HOST_DEVICE ScalarType operator[] (auto i) const
 
PBAT_HOST_DEVICE ScalarType & operator[] (auto i)
 
PBAT_HOST_DEVICE void SetZero ()
 
ScalarType * Data ()
 
ScalarType const * Data () const
 

Static Public Attributes

static auto constexpr kRows = M
 
static auto constexpr kCols = N
 
static bool constexpr bRowMajor = false
 

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