#include <vnl_fwd.h>

Public Types | |
| typedef unsigned int | size_type |
| typedef T * | iterator |
| typedef T | element_type |
| Type defs for iterators. More... | |
| typedef T const * | const_iterator |
| Const iterator type. More... | |
| typedef vnl_c_vector< T >::abs_t | abs_t |
Public Member Functions | |
| T * | data_block () const |
| vnl_vector_fixed_ref (vnl_vector_fixed< T, n > &rhs) | |
| vnl_vector_fixed_ref (T *dataptr) | |
| vnl_vector_fixed_ref< T, n > const & | operator= (const vnl_vector_fixed< T, n > &rhs) const |
| Copy operator. More... | |
| vnl_vector_fixed_ref< T, n > const & | operator= (const vnl_vector_fixed_ref< T, n > &rhs) const |
| Copy operator. More... | |
| vnl_vector_fixed_ref< T, n > const & | operator= (const vnl_vector_fixed_ref_const< T, n > &rhs) const |
| Copy operator. More... | |
| void | put (unsigned int i, T const &v) const |
| Put value at given position in vector. More... | |
| vnl_vector_fixed_ref & | fill (T const &v) |
| Set all values to v. More... | |
| vnl_vector_fixed_ref const & | copy_in (T const *ptr) const |
| Sets elements to ptr[i]. More... | |
| vnl_vector_fixed_ref const & | set (T const *ptr) const |
| Sets elements to ptr[i]. More... | |
| T & | operator() (unsigned int i) const |
| Return reference to the element at specified index. More... | |
| T & | operator[] (unsigned int i) const |
| Return the i-th element. More... | |
| vnl_vector_ref< T > | as_ref () |
| iterator | begin () const |
| Iterator pointing to start of data. More... | |
| iterator | end () const |
| Iterator pointing to element beyond end of data. More... | |
| vnl_vector_fixed_ref const & | update (vnl_vector< T > const &, unsigned int start=0) const |
| Replaces elements with index beginning at start, by values of v. O(n). More... | |
| bool | read_ascii (std::istream &s) const |
| Read from text stream. More... | |
| vnl_vector_fixed_ref const & | flip () const |
| vnl_vector_fixed_ref< T, n > const & | operator+= (T s) const |
| vnl_vector_fixed_ref< T, n > const & | operator-= (T s) const |
| vnl_vector_fixed_ref< T, n > const & | operator *= (T s) const |
| vnl_vector_fixed_ref< T, n > const & | operator/= (T s) const |
| vnl_vector_fixed_ref< T, n > const & | operator+= (const vnl_vector_fixed< T, n > &v) const |
| vnl_vector_fixed_ref< T, n > const & | operator-= (const vnl_vector_fixed< T, n > &v) const |
| vnl_vector_fixed_ref< T, n > const & | operator+= (const vnl_vector< T > &v) const |
| vnl_vector_fixed_ref< T, n > const & | operator-= (const vnl_vector< T > &v) const |
| unsigned | size () const |
| Length of the vector. More... | |
| T | get (unsigned int i) const |
| Get value at element i. More... | |
| void | copy_out (T *ptr) const |
| Copy elements to ptr[i]. More... | |
| const vnl_vector_ref< T > | as_ref () const |
| Explicit conversion to a vnl_vector_ref. More... | |
| operator const vnl_vector_ref< T > () const | |
| Cheap conversion to vnl_vector_ref. More... | |
| vnl_vector_fixed< T, n > | apply (T(*f)(T)) const |
| Apply f to each element. More... | |
| vnl_vector_fixed< T, n > | apply (T(*f)(const T &)) const |
| Apply f to each element. More... | |
| vnl_vector_fixed< T, n > | operator- () const |
| vnl_vector< T > | extract (unsigned int len, unsigned int start=0) const |
| Returns a subvector specified by the start index and length. O(n). More... | |
| vnl_vector< T > | as_vector () const |
| Convert to a vnl_vector. More... | |
| abs_t | squared_magnitude () const |
| Return sum of squares of elements. More... | |
| abs_t | magnitude () const |
| Return magnitude (length) of vector. More... | |
| abs_t | one_norm () const |
| Return sum of absolute values of the elements. More... | |
| abs_t | two_norm () const |
| Return sqrt of sum of squares of values of elements. More... | |
| abs_t | inf_norm () const |
| Return largest absolute element value. More... | |
| abs_t | rms () const |
| Root Mean Squares of values. More... | |
| T | min_value () const |
| Smallest value. More... | |
| T | max_value () const |
| Largest value. More... | |
| unsigned | arg_min () const |
| Location of smallest value. More... | |
| unsigned | arg_max () const |
| Location of largest value. More... | |
| T | mean () const |
| Mean of values in vector. More... | |
| T | sum () const |
| Sum of values in a vector. More... | |
| void | assert_size (unsigned sz) const |
| Check that size()==sz if not, abort();. More... | |
| void | assert_finite () const |
| Check that this is finite if not, abort();. More... | |
| bool | is_finite () const |
| Return true if it's finite. More... | |
| bool | is_zero () const |
| Return true iff all the entries are zero. More... | |
| bool | empty () const |
| Return true iff the size is zero. More... | |
| bool | operator_eq (vnl_vector_fixed_ref_const< T, n > const &v) const |
| Return true if *this == v. More... | |
| bool | operator_eq (vnl_vector< T > const &v) const |
| Return true if *this == v. More... | |
| void | print (std::ostream &s) const |
| Display the vector. More... | |
| bool | operator== (vnl_vector_fixed_ref_const< T, n > const &that) const |
| Equality operator. More... | |
| bool | operator!= (vnl_vector_fixed_ref_const< T, n > const &that) const |
| Inequality operator. More... | |
Static Public Member Functions | |
| static void | add (const T *a, const T *b, T *r) |
| static void | add (const T *a, T b, T *r) |
| static void | sub (const T *a, const T *b, T *r) |
| static void | sub (const T *a, T b, T *r) |
| static void | sub (T a, const T *b, T *r) |
| static void | mul (const T *a, const T *b, T *r) |
| static void | mul (const T *a, T b, T *r) |
| static void | div (const T *a, const T *b, T *r) |
| static void | div (const T *a, T b, T *r) |
Protected Attributes | |
| const T * | data_ |
Private Types | |
| typedef vnl_vector_fixed_ref_const< T, n > | base |
|
inherited |
Definition at line 139 of file vnl_vector_fixed_ref.h.
|
private |
Definition at line 305 of file vnl_vector_fixed_ref.h.
|
inherited |
Const iterator type.
Definition at line 109 of file vnl_vector_fixed_ref.h.
|
inherited |
Type defs for iterators.
Definition at line 104 of file vnl_vector_fixed_ref.h.
| typedef T* vnl_vector_fixed_ref< T, n >::iterator |
Definition at line 375 of file vnl_vector_fixed_ref.h.
| typedef unsigned int vnl_vector_fixed_ref< T, n >::size_type |
Definition at line 308 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 314 of file vnl_vector_fixed_ref.h.
|
inlineexplicit |
Definition at line 316 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 233 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 238 of file vnl_vector_fixed_ref.h.
|
inherited |
Apply f to each element.
Returns a new vector with the result.
Definition at line 22 of file vnl_vector_fixed_ref.hxx.
|
inherited |
Apply f to each element.
Returns a new vector with the result.
Definition at line 32 of file vnl_vector_fixed_ref.hxx.
|
inlineinherited |
Location of largest value.
Definition at line 173 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Location of smallest value.
Definition at line 170 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Explicit conversion to a vnl_vector_ref.
This is a cheap conversion for those functions that have an interface for vnl_vector_ref but not for vnl_vector_fixed_ref. There is also a conversion operator that should work most of the time.
Definition at line 93 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 373 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Convert to a vnl_vector.
Definition at line 135 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Check that this is finite if not, abort();.
This function does or tests nothing if NDEBUG is defined
Definition at line 192 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Check that size()==sz if not, abort();.
This function does or tests nothing if NDEBUG is defined
Definition at line 185 of file vnl_vector_fixed_ref.h.
|
inline |
Iterator pointing to start of data.
Definition at line 377 of file vnl_vector_fixed_ref.h.
|
inline |
Sets elements to ptr[i].
Note: ptr[i] must be valid for i=0..size()-1
Definition at line 349 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Copy elements to ptr[i].
Note: ptr[i] must be valid for i=0..size()-1
Definition at line 59 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 312 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 268 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 273 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Return true iff the size is zero.
Definition at line 205 of file vnl_vector_fixed_ref.h.
|
inline |
Iterator pointing to element beyond end of data.
Definition at line 380 of file vnl_vector_fixed_ref.h.
|
inherited |
Returns a subvector specified by the start index and length. O(n).
Definition at line 43 of file vnl_vector_fixed_ref.hxx.
|
inline |
Set all values to v.
Definition at line 341 of file vnl_vector_fixed_ref.h.
| vnl_vector_fixed_ref< T, n > const & vnl_vector_fixed_ref< T, n >::flip | ( | ) | const |
Definition at line 62 of file vnl_vector_fixed_ref.hxx.
|
inlineinherited |
Get value at element i.
Definition at line 55 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Return largest absolute element value.
Definition at line 154 of file vnl_vector_fixed_ref.h.
|
inherited |
Return true if it's finite.
Definition at line 71 of file vnl_vector_fixed_ref.hxx.
|
inherited |
Return true iff all the entries are zero.
Definition at line 83 of file vnl_vector_fixed_ref.hxx.
|
inlineinherited |
Return magnitude (length) of vector.
Definition at line 145 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Largest value.
Definition at line 167 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Mean of values in vector.
Definition at line 176 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Smallest value.
Definition at line 164 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 258 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 263 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Return sum of absolute values of the elements.
Definition at line 148 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 401 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Cheap conversion to vnl_vector_ref.
Sometimes, such as with templated functions, the compiler cannot use this user-defined conversion. For those cases, use the explicit as_ref() method instead.
Definition at line 99 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Inequality operator.
Definition at line 283 of file vnl_vector_fixed_ref.h.
|
inline |
Return reference to the element at specified index.
There are assert style boundary checks - #define NDEBUG to turn them off.
Definition at line 361 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 391 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 411 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 421 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Definition at line 125 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 396 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 416 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 427 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 406 of file vnl_vector_fixed_ref.h.
|
inline |
Copy operator.
Definition at line 319 of file vnl_vector_fixed_ref.h.
|
inline |
Copy operator.
Definition at line 325 of file vnl_vector_fixed_ref.h.
|
inline |
Copy operator.
Definition at line 331 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Equality operator.
Definition at line 280 of file vnl_vector_fixed_ref.h.
|
inline |
Return the i-th element.
Definition at line 370 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Return true if *this == v.
Definition at line 208 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Return true if *this == v.
Definition at line 216 of file vnl_vector_fixed_ref.h.
|
inherited |
Display the vector.
Output each element separated by a single space.
Definition at line 117 of file vnl_vector_fixed_ref.hxx.
|
inline |
Put value at given position in vector.
Definition at line 338 of file vnl_vector_fixed_ref.h.
| bool vnl_vector_fixed_ref< T, n >::read_ascii | ( | std::istream & | s | ) | const |
Read from text stream.
Definition at line 96 of file vnl_vector_fixed_ref.hxx.
|
inlineinherited |
Root Mean Squares of values.
Definition at line 161 of file vnl_vector_fixed_ref.h.
|
inline |
Sets elements to ptr[i].
Note: ptr[i] must be valid for i=0..size()-1
Definition at line 357 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
|
inlineinherited |
Return sum of squares of elements.
Definition at line 142 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 243 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 248 of file vnl_vector_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 253 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Sum of values in a vector.
Definition at line 179 of file vnl_vector_fixed_ref.h.
|
inlineinherited |
Return sqrt of sum of squares of values of elements.
Definition at line 151 of file vnl_vector_fixed_ref.h.
| vnl_vector_fixed_ref< T, n > const & vnl_vector_fixed_ref< T, n >::update | ( | vnl_vector< T > const & | v, |
| unsigned int | start = 0 |
||
| ) | const |
Replaces elements with index beginning at start, by values of v. O(n).
Definition at line 51 of file vnl_vector_fixed_ref.hxx.
|
protectedinherited |
Definition at line 32 of file vnl_vector_fixed_ref.h.
1.8.15