|
template<class ForwardIterator > |
| VECTORN (ForwardIterator begin, ForwardIterator end) |
|
| VECTORN (unsigned N) |
|
| VECTORN (const VECTORN &source) |
|
| VECTORN (const SHAREDVECTORN &source) |
|
| VECTORN (const CONST_SHAREDVECTORN &source) |
|
| VECTORN (const VECTOR2 &v) |
|
| VECTORN (const VECTOR3 &v) |
|
| VECTORN (const MATRIXN &v) |
|
| VECTORN (const SHAREDMATRIXN &v) |
|
| VECTORN (const CONST_SHAREDMATRIXN &v) |
|
| VECTORN (unsigned N, const REAL *array) |
|
VECTORN & | normalize () |
|
unsigned | size () const |
|
REAL | norm_inf () const |
|
REAL | norm1 () const |
|
REAL | norm () const |
|
REAL | norm_sq () const |
|
VECTORN & | augment (const VECTORN &v) |
|
VECTORN & | resize (unsigned N, bool preserve=false) |
|
SHAREDVECTORN | segment (unsigned start_idx, unsigned end_idx) |
|
CONST_SHAREDVECTORN | segment (unsigned start_idx, unsigned end_idx) const |
|
VECTORN & | operator= (REAL r) |
|
VECTORN & | operator= (const VECTOR2 &source) |
|
VECTORN & | operator= (const VECTOR3 &source) |
|
VECTORN & | operator= (const VECTORN &source) |
|
VECTORN & | operator= (const SHAREDVECTORN &source) |
|
VECTORN & | operator= (const CONST_SHAREDVECTORN &source) |
|
VECTORN & | operator= (const MATRIXN &source) |
|
VECTORN & | operator= (const SHAREDMATRIXN &source) |
|
VECTORN & | operator= (const CONST_SHAREDMATRIXN &source) |
|
VECTORN & | operator/= (REAL scalar) |
|
REAL * | data () |
|
const REAL * | data () const |
|
VECTORN & | resize (unsigned m, unsigned n, bool preserve=false) |
|
void | free_memory () |
|
void | compress () |
|
unsigned | rows () const |
|
unsigned | columns () const |
|
unsigned | leading_dim () const |
|
unsigned | inc () const |
|
REAL & | operator[] (unsigned i) |
| Returns the desired component of this vector.
|
|
REAL | operator[] (unsigned i) const |
| Returns the desired component of this vector.
|
|
REAL * | data (unsigned i) |
| Gets the appropriate data element.
|
|
const REAL * | data (unsigned i) const |
| Gets the appropriate data element.
|
|
COLUMN_ITERATOR | segment_iterator_begin (unsigned start, unsigned end) |
|
CONST_COLUMN_ITERATOR | segment_iterator_begin (unsigned start, unsigned end) const |
|
COLUMN_ITERATOR | segment_iterator_end (unsigned start, unsigned end) |
|
CONST_COLUMN_ITERATOR | segment_iterator_end (unsigned start, unsigned end) const |
|
CONST_ROW_ITERATOR | row_iterator_begin () const |
|
CONST_ROW_ITERATOR | row_iterator_end () const |
|
ROW_ITERATOR | row_iterator_begin () |
|
ROW_ITERATOR | row_iterator_end () |
|
CONST_COLUMN_ITERATOR | column_iterator_begin () const |
|
CONST_COLUMN_ITERATOR | column_iterator_end () const |
|
COLUMN_ITERATOR | column_iterator_begin () |
|
COLUMN_ITERATOR | column_iterator_end () |
|
COLUMN_ITERATOR | begin () |
| Returns the column iterator.
|
|
CONST_COLUMN_ITERATOR | begin () const |
| Returns the constant column iterator.
|
|
COLUMN_ITERATOR | end () |
| Returns the column iterator.
|
|
CONST_COLUMN_ITERATOR | end () const |
| Returns the constant column iterator.
|
|
XVECTORN & | set_zero () |
| Sets the vector to the zero vector.
|
|
XVECTORN & | set_zero (unsigned m, unsigned n=1) |
| Sets the vector to the zero vector.
|
|
XVECTORN & | set_one () |
| Sets the vector to the zero vector.
|
|
XVECTORN & | set_one (unsigned m, unsigned n=1) |
| Sets the vector to the zero vector.
|
|
bool | is_finite () const |
| Returns true if all components of this vector are not infinite and not NaN, and false otherwise.
|
|
XVECTORN & | negate () |
| Negates the matrix in place.
|
|
XVECTORN & | operator*= (REAL scalar) |
| Multiplies this vector in place by a scalar.
|
|
template<class V > |
XVECTORN & | set_sub_vec (unsigned start, const V &v) |
| Sets a sub-vector of this vector. More...
|
|
template<class V > |
XVECTORN & | operator+= (const V &v) |
| Adds a vector from this one in place.
|
|
template<class V > |
XVECTORN & | operator-= (const V &v) |
| Subtracts a vector from this one in place.
|
|
template<class ForwardIterator , class V > |
XVECTORN & | set (ForwardIterator idx_begin, ForwardIterator idx_end, const V &v) |
| Sets a subvector; other components are unchanged.
|
|
template<class V > |
XVECTORN & | set (std::vector< bool > &indices, const V &v) |
| Sets a subvector; other components are unchanged.
|
|
template<class V > |
V & | get_sub_vec (unsigned start, unsigned end, V &v) const |
| Gets a sub-vector from this vector. More...
|
|
template<class V > |
bool | operator< (const V &v) const |
| Compares two vectors lexographically.
|
|
template<class V > |
bool | operator== (const V &v) const |
| Compares two vectors. More...
|
|
template<class V > |
REAL | dot (const V &v) const |
| Computes the dot-product between two vectors.
|
|
template<class V > |
V & | select (const std::vector< bool > &indices, V &v) const |
| Gets a subvector (not necessarily contiguous)
|
|
template<class ForwardIterator , class V > |
V & | select (ForwardIterator idx_begin, ForwardIterator idx_end, V &v) const |
| Gets a subvector (not necessarily contiguous)
|
|
template<class ForwardIterator > |
| VECTORN (ForwardIterator begin, ForwardIterator end) |
|
| VECTORN (unsigned N) |
|
| VECTORN (const VECTORN &source) |
|
| VECTORN (const SHAREDVECTORN &source) |
|
| VECTORN (const CONST_SHAREDVECTORN &source) |
|
| VECTORN (const VECTOR2 &v) |
|
| VECTORN (const VECTOR3 &v) |
|
| VECTORN (const MATRIXN &v) |
|
| VECTORN (const SHAREDMATRIXN &v) |
|
| VECTORN (const CONST_SHAREDMATRIXN &v) |
|
| VECTORN (unsigned N, const REAL *array) |
|
VECTORN & | normalize () |
|
unsigned | size () const |
|
REAL | norm_inf () const |
|
REAL | norm1 () const |
|
REAL | norm () const |
|
REAL | norm_sq () const |
|
VECTORN & | augment (const VECTORN &v) |
|
VECTORN & | resize (unsigned N, bool preserve=false) |
|
SHAREDVECTORN | segment (unsigned start_idx, unsigned end_idx) |
|
CONST_SHAREDVECTORN | segment (unsigned start_idx, unsigned end_idx) const |
|
VECTORN & | operator= (REAL r) |
|
VECTORN & | operator= (const VECTOR2 &source) |
|
VECTORN & | operator= (const VECTOR3 &source) |
|
VECTORN & | operator= (const VECTORN &source) |
|
VECTORN & | operator= (const SHAREDVECTORN &source) |
|
VECTORN & | operator= (const CONST_SHAREDVECTORN &source) |
|
VECTORN & | operator= (const MATRIXN &source) |
|
VECTORN & | operator= (const SHAREDMATRIXN &source) |
|
VECTORN & | operator= (const CONST_SHAREDMATRIXN &source) |
|
VECTORN & | operator/= (REAL scalar) |
|
REAL * | data () |
|
const REAL * | data () const |
|
VECTORN & | resize (unsigned m, unsigned n, bool preserve=false) |
|
void | free_memory () |
|
void | compress () |
|
unsigned | rows () const |
|
unsigned | columns () const |
|
unsigned | leading_dim () const |
|
unsigned | inc () const |
|
REAL & | operator[] (unsigned i) |
| Returns the desired component of this vector.
|
|
REAL | operator[] (unsigned i) const |
| Returns the desired component of this vector.
|
|
REAL * | data (unsigned i) |
| Gets the appropriate data element.
|
|
const REAL * | data (unsigned i) const |
| Gets the appropriate data element.
|
|
COLUMN_ITERATOR | segment_iterator_begin (unsigned start, unsigned end) |
|
CONST_COLUMN_ITERATOR | segment_iterator_begin (unsigned start, unsigned end) const |
|
COLUMN_ITERATOR | segment_iterator_end (unsigned start, unsigned end) |
|
CONST_COLUMN_ITERATOR | segment_iterator_end (unsigned start, unsigned end) const |
|
CONST_ROW_ITERATOR | row_iterator_begin () const |
|
CONST_ROW_ITERATOR | row_iterator_end () const |
|
ROW_ITERATOR | row_iterator_begin () |
|
ROW_ITERATOR | row_iterator_end () |
|
CONST_COLUMN_ITERATOR | column_iterator_begin () const |
|
CONST_COLUMN_ITERATOR | column_iterator_end () const |
|
COLUMN_ITERATOR | column_iterator_begin () |
|
COLUMN_ITERATOR | column_iterator_end () |
|
COLUMN_ITERATOR | begin () |
| Returns the column iterator.
|
|
CONST_COLUMN_ITERATOR | begin () const |
| Returns the constant column iterator.
|
|
COLUMN_ITERATOR | end () |
| Returns the column iterator.
|
|
CONST_COLUMN_ITERATOR | end () const |
| Returns the constant column iterator.
|
|
XVECTORN & | set_zero () |
| Sets the vector to the zero vector.
|
|
XVECTORN & | set_zero (unsigned m, unsigned n=1) |
| Sets the vector to the zero vector.
|
|
XVECTORN & | set_one () |
| Sets the vector to the zero vector.
|
|
XVECTORN & | set_one (unsigned m, unsigned n=1) |
| Sets the vector to the zero vector.
|
|
bool | is_finite () const |
| Returns true if all components of this vector are not infinite and not NaN, and false otherwise.
|
|
XVECTORN & | negate () |
| Negates the matrix in place.
|
|
XVECTORN & | operator*= (REAL scalar) |
| Multiplies this vector in place by a scalar.
|
|
template<class V > |
XVECTORN & | set_sub_vec (unsigned start, const V &v) |
| Sets a sub-vector of this vector. More...
|
|
template<class V > |
XVECTORN & | operator+= (const V &v) |
| Adds a vector from this one in place.
|
|
template<class V > |
XVECTORN & | operator-= (const V &v) |
| Subtracts a vector from this one in place.
|
|
template<class ForwardIterator , class V > |
XVECTORN & | set (ForwardIterator idx_begin, ForwardIterator idx_end, const V &v) |
| Sets a subvector; other components are unchanged.
|
|
template<class V > |
XVECTORN & | set (std::vector< bool > &indices, const V &v) |
| Sets a subvector; other components are unchanged.
|
|
template<class V > |
V & | get_sub_vec (unsigned start, unsigned end, V &v) const |
| Gets a sub-vector from this vector. More...
|
|
template<class V > |
bool | operator< (const V &v) const |
| Compares two vectors lexographically.
|
|
template<class V > |
bool | operator== (const V &v) const |
| Compares two vectors. More...
|
|
template<class V > |
REAL | dot (const V &v) const |
| Computes the dot-product between two vectors.
|
|
template<class V > |
V & | select (const std::vector< bool > &indices, V &v) const |
| Gets a subvector (not necessarily contiguous)
|
|
template<class ForwardIterator , class V > |
V & | select (ForwardIterator idx_begin, ForwardIterator idx_end, V &v) const |
| Gets a subvector (not necessarily contiguous)
|
|
A generic N-dimensional floating point vector.