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::gpu::impl::math::MatrixView< T > Struct Template Reference

Public Types

using ValueType = std::remove_cvref_t<T>
 

Public Member Functions

 MatrixView (ValueType *dataIn, int mIn, int nIn, int ldIn, cublasOperation_t opIn=cublasOperation_t::CUBLAS_OP_N)
 
template<CVector TVector>
 MatrixView (TVector &v)
 
ValueType * Raw ()
 
ValueType const * Raw () const
 
auto Rows () const
 
auto Cols () const
 
auto LeadingDimensions () const
 
auto Operation () const
 
MatrixView< ValueType > Transposed () const
 
MatrixView< ValueType > SubMatrix (auto row, auto col, auto rows, auto cols) const
 
MatrixView< ValueType > LeftCols (auto cols) const
 
MatrixView< ValueType > RightCols (auto cols) const
 
MatrixView< ValueType > TopRows (auto rows) const
 
MatrixView< ValueType > BottomRows (auto rows) const
 
MatrixView< ValueType > Col (auto col) const
 
MatrixView< ValueType > Row (auto row) const
 
VectorView< ValueType > Flattened () const
 

Public Attributes

ValueType * data
 Pointer to the matrix coefficients.
 
int m
 Number of rows.
 
int n
 Number of columns.
 
int ld
 Leading dimension.
 
cublasOperation_t op
 CUBLAS operation type.
 

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