Lightweight, variable-length vector.
More...
#include <ConjGradient.h>
template<typename T>
class openvdb::v7_0::math::pcg::Vector< T >
Lightweight, variable-length vector.
◆ Ptr
◆ ValueType
◆ Vector() [1/4]
Construct an empty vector.
◆ Vector() [2/4]
Construct a vector of n elements, with uninitialized values.
◆ Vector() [3/4]
Construct a vector of n elements and initialize each element to the given value.
◆ ~Vector()
◆ Vector() [4/4]
Deep copy the given vector.
◆ at() [1/2]
Return the value of this vector's ith element.
◆ at() [2/2]
◆ constData()
const T* constData |
( |
| ) |
const |
|
inline |
◆ data() [1/2]
Return a pointer to this vector's elements.
◆ data() [2/2]
◆ dot()
T dot |
( |
const Vector< T > & |
| ) |
const |
|
inline |
Return the dot product of this vector with the given vector, which must be the same size.
◆ empty()
Return true
if this vector has no elements.
◆ eq()
Return true
if this vector is equivalent to the given vector to within the specified tolerance.
◆ fill()
Set all elements of this vector to value.
◆ infNorm()
Return the infinity norm of this vector.
◆ isFinite()
Return true
if every element of this vector has a finite value.
◆ l2Norm()
Return the L2 norm of this vector.
◆ operator*=()
Vector& operator*= |
( |
const Scalar & |
s | ) |
|
|
inline |
◆ operator=()
Deep copy the given vector.
◆ operator[]() [1/2]
◆ operator[]() [2/2]
◆ resize()
Reset this vector to have n elements, with uninitialized values.
- Warning
- All of this vector's existing values will be lost.
◆ scale()
void scale |
( |
const Scalar & |
s | ) |
|
|
inline |
Multiply each element of this vector by s.
◆ size()
Return the number of elements in this vector.
◆ str()
std::string str |
( |
| ) |
const |
|
inline |
Return a string representation of this vector.
◆ swap()
void swap |
( |
Vector< T > & |
other | ) |
|
|
inline |
Swap internal storage with another vector, which need not be the same size.
The documentation for this class was generated from the following file: