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::math::linalg::mini::SubMatrix< TMatrix, M, N > Class Template Reference

Public Types

using NestedType = TMatrix
 
using ScalarType = typename NestedType::ScalarType
 
using SelfType = SubMatrix<NestedType, M, N>
 

Public Member Functions

PBAT_HOST_DEVICE SubMatrix (NestedType &_A, int _ib, int _jb)
 
template<class TOtherMatrix>
PBAT_HOST_DEVICE SelfTypeoperator= (TOtherMatrix &&B)
 
PBAT_HOST_DEVICE auto Rows () const
 
PBAT_HOST_DEVICE auto Cols () const
 
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)
 
template<auto S, auto T>
PBAT_HOST_DEVICE auto Slice (auto i, auto j)
 
PBAT_HOST_DEVICE auto Col (auto j)
 
PBAT_HOST_DEVICE auto Row (auto i)
 
template<auto S, auto T>
PBAT_HOST_DEVICE auto Slice (auto i, auto j) const
 
PBAT_HOST_DEVICE auto Col (auto j) const
 
PBAT_HOST_DEVICE auto Row (auto i) const
 
PBAT_HOST_DEVICE auto Transpose ()
 
PBAT_HOST_DEVICE auto Transpose () const
 
void SetConstant (auto k)
 

Static Public Attributes

static auto constexpr kRows = M
 
static auto constexpr kCols = N
 
static bool constexpr bRowMajor = NestedType::bRowMajor
 

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