|
| | Vector () |
| | Construct an empty vector.
|
| |
| | Vector (SizeType n) |
| | Construct a vector of n elements, with uninitialized values.
|
| |
| | Vector (SizeType n, const ValueType &val) |
| | Construct a vector of n elements and initialize each element to the given value.
|
| |
| | ~Vector () |
| |
| | Vector (const Vector &) |
| | Deep copy the given vector.
|
| |
| Vector & | operator= (const Vector &) |
| | Deep copy the given vector.
|
| |
| SizeType | size () const |
| | Return the number of elements in this vector.
|
| |
| bool | empty () const |
| | Return true if this vector has no elements.
|
| |
| void | resize (SizeType n) |
| | Reset this vector to have n elements, with uninitialized values.
|
| |
| void | swap (Vector &other) |
| | Swap internal storage with another vector, which need not be the same size.
|
| |
| void | fill (const ValueType &value) |
| | Set all elements of this vector to value.
|
| |
| template<typename Scalar > |
| void | scale (const Scalar &s) |
| | Multiply each element of this vector by s.
|
| |
| template<typename Scalar > |
| Vector & | operator*= (const Scalar &s) |
| |
| ValueType | dot (const Vector &) const |
| | Return the dot product of this vector with the given vector, which must be the same size.
|
| |
| ValueType | infNorm () const |
| | Return the infinity norm of this vector.
|
| |
| ValueType | l2Norm () const |
| | Return the L2 norm of this vector.
|
| |
| bool | isFinite () const |
| | Return true if every element of this vector has a finite value.
|
| |
| template<typename OtherValueType > |
| bool | eq (const Vector< OtherValueType > &other, ValueType eps=Tolerance< ValueType >::value()) const |
| | Return true if this vector is equivalent to the given vector to within the specified tolerance.
|
| |
| std::string | str () const |
| | Return a string representation of this vector.
|
| |
| T & | at (SizeType i) |
| | Return the value of this vector's ith element.
|
| |
| const T & | at (SizeType i) const |
| |
| T & | operator[] (SizeType i) |
| |
| const T & | operator[] (SizeType i) const |
| |
| T * | data () |
| | Return a pointer to this vector's elements.
|
| |
| const T * | data () const |
| |
| const T * | constData () const |
| |
template<typename T>
class openvdb::v10_0::math::pcg::Vector< T >
Lightweight, variable-length vector.