|
| CONST_SHAREDVECTORN (unsigned len, unsigned inc, unsigned start, SharedResizable< REAL > data) |
|
| CONST_SHAREDVECTORN (const SHAREDVECTORN &source) |
|
| CONST_SHAREDVECTORN (const CONST_SHAREDVECTORN &source) |
|
const SHAREDVECTORN | get () const |
|
void | reset_from (const SHAREDVECTORN &source) |
|
void | reset_from (const CONST_SHAREDVECTORN &source) |
|
unsigned | size () const |
|
REAL | norm_inf () const |
|
REAL | norm1 () const |
|
REAL | norm () const |
|
REAL | norm_sq () const |
|
CONST_SHAREDVECTORN | segment (unsigned start, unsigned end) const |
|
CONST_SHAREDVECTORN & | resize (unsigned N, bool preserve=false) |
|
const REAL * | data () const |
|
CONST_SHAREDVECTORN & | resize (unsigned m, unsigned n, bool preserve=false) |
|
void | reset () |
| Resets the shared structure.
|
|
unsigned | rows () const |
|
unsigned | columns () const |
|
unsigned | leading_dim () const |
|
unsigned | inc () const |
|
const REAL & | operator[] (unsigned i) const |
| Returns the desired component of this vector.
|
|
const REAL * | data (unsigned i) const |
| Gets the appropriate data element.
|
|
CONST_COLUMN_ITERATOR | segment_iterator (unsigned start, unsigned end) const |
|
CONST_COLUMN_ITERATOR | column_iterator_begin () const |
|
CONST_COLUMN_ITERATOR | column_iterator_end () const |
|
CONST_COLUMN_ITERATOR | begin () const |
|
CONST_COLUMN_ITERATOR | end () const |
|
CONST_ROW_ITERATOR | row_iterator_begin () const |
|
CONST_ROW_ITERATOR | row_iterator_end () const |
|
bool | is_finite () const |
| Returns true if all components of this vector are not infinite and not NaN, and false otherwise.
|
|
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)
|
|
| CONST_SHAREDVECTORN (unsigned len, unsigned inc, unsigned start, SharedResizable< REAL > data) |
|
| CONST_SHAREDVECTORN (const SHAREDVECTORN &source) |
|
| CONST_SHAREDVECTORN (const CONST_SHAREDVECTORN &source) |
|
const SHAREDVECTORN | get () const |
|
void | reset_from (const SHAREDVECTORN &source) |
|
void | reset_from (const CONST_SHAREDVECTORN &source) |
|
unsigned | size () const |
|
REAL | norm_inf () const |
|
REAL | norm1 () const |
|
REAL | norm () const |
|
REAL | norm_sq () const |
|
CONST_SHAREDVECTORN | segment (unsigned start, unsigned end) const |
|
CONST_SHAREDVECTORN & | resize (unsigned N, bool preserve=false) |
|
const REAL * | data () const |
|
CONST_SHAREDVECTORN & | resize (unsigned m, unsigned n, bool preserve=false) |
|
void | reset () |
| Resets the shared structure.
|
|
unsigned | rows () const |
|
unsigned | columns () const |
|
unsigned | leading_dim () const |
|
unsigned | inc () const |
|
const REAL & | operator[] (unsigned i) const |
| Returns the desired component of this vector.
|
|
const REAL * | data (unsigned i) const |
| Gets the appropriate data element.
|
|
CONST_COLUMN_ITERATOR | segment_iterator (unsigned start, unsigned end) const |
|
CONST_COLUMN_ITERATOR | column_iterator_begin () const |
|
CONST_COLUMN_ITERATOR | column_iterator_end () const |
|
CONST_COLUMN_ITERATOR | begin () const |
|
CONST_COLUMN_ITERATOR | end () const |
|
CONST_ROW_ITERATOR | row_iterator_begin () const |
|
CONST_ROW_ITERATOR | row_iterator_end () const |
|
bool | is_finite () const |
| Returns true if all components of this vector are not infinite and not NaN, and false otherwise.
|
|
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.