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::Vector< T > Struct Template Reference

Public Types

using ValueType = std::remove_cvref_t<T>
 

Public Member Functions

 Vector (auto rows)
 
ValueType * Raw ()
 
ValueType const * Raw () const
 
auto Rows () const
 
constexpr auto Cols () const
 
constexpr auto Increment () const
 
VectorView< ValueType > Slice (auto row, auto rows, auto inc) const
 
VectorView< ValueType > Segment (auto row, auto rows) const
 
VectorView< ValueType > Head (auto rows) const
 
VectorView< ValueType > Tail (auto rows) const
 

Public Attributes

common::Buffer< ValueType > data
 n x 1 dense vector coefficients
 
int n
 Number of rows.
 

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