#include <vnl_fwd.h>

Public Types | |
| typedef size_t | size_type |
| typedef T | element_type |
| Type defs for iterators. More... | |
| typedef T const * | iterator |
| 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 | |
| vnl_vector_fixed_ref_const (vnl_vector_fixed< T, n > const &rhs) | |
| vnl_vector_fixed_ref_const (const T *dataptr) | |
| vnl_vector_fixed_ref_const (const vnl_vector_fixed_ref_const< T, n > &rhs) | |
| const T * | data_block () 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... | |
| T const & | operator() (unsigned int i) const |
| Return reference to the element at specified index. More... | |
| const T & | operator[] (unsigned int i) const |
| Return the i-th element. 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... | |
| const_iterator | begin () const |
| Iterator pointing to start of data. More... | |
| const_iterator | end () const |
| Iterator pointing to element beyond end of data. 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 Member Functions | |
| const vnl_vector_fixed_ref_const< T, n > & | operator= (const vnl_vector_fixed< T, n > &) const |
| See assert_finite(). More... | |
| const vnl_vector_fixed_ref_const< T, n > & | operator= (const vnl_vector_fixed_ref_const< T, n > &) const |
| void | assert_finite_internal () const |
| typedef vnl_c_vector<T>::abs_t vnl_vector_fixed_ref_const< T, n >::abs_t |
Definition at line 139 of file vnl_vector_fixed_ref.h.
| typedef T const* vnl_vector_fixed_ref_const< T, n >::const_iterator |
Const iterator type.
Definition at line 109 of file vnl_vector_fixed_ref.h.
| typedef T vnl_vector_fixed_ref_const< T, n >::element_type |
Type defs for iterators.
Definition at line 104 of file vnl_vector_fixed_ref.h.
| typedef T const* vnl_vector_fixed_ref_const< T, n >::iterator |
Type defs for iterators.
Definition at line 106 of file vnl_vector_fixed_ref.h.
| typedef size_t vnl_vector_fixed_ref_const< T, n >::size_type |
Definition at line 35 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 37 of file vnl_vector_fixed_ref.h.
|
inlineexplicit |
Definition at line 39 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 41 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 233 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 238 of file vnl_vector_fixed_ref.h.
| vnl_vector_fixed< T, n > vnl_vector_fixed_ref_const< T, n >::apply | ( | T(*)(T) | f | ) | const |
Apply f to each element.
Returns a new vector with the result.
Definition at line 22 of file vnl_vector_fixed_ref.hxx.
| vnl_vector_fixed< T, n > vnl_vector_fixed_ref_const< T, n >::apply | ( | T(*)(const T &) | f | ) | const |
Apply f to each element.
Returns a new vector with the result.
Definition at line 32 of file vnl_vector_fixed_ref.hxx.
|
inline |
Location of largest value.
Definition at line 173 of file vnl_vector_fixed_ref.h.
|
inline |
Location of smallest value.
Definition at line 170 of file vnl_vector_fixed_ref.h.
|
inline |
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 |
Convert to a vnl_vector.
Definition at line 135 of file vnl_vector_fixed_ref.h.
|
inline |
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.
|
private |
Definition at line 106 of file vnl_vector_fixed_ref.hxx.
|
inline |
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 111 of file vnl_vector_fixed_ref.h.
|
inline |
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 43 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 268 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 273 of file vnl_vector_fixed_ref.h.
|
inline |
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 113 of file vnl_vector_fixed_ref.h.
| vnl_vector< T > vnl_vector_fixed_ref_const< T, n >::extract | ( | unsigned int | len, |
| unsigned int | start = 0 |
||
| ) | const |
Returns a subvector specified by the start index and length. O(n).
Definition at line 43 of file vnl_vector_fixed_ref.hxx.
|
inline |
Get value at element i.
Definition at line 55 of file vnl_vector_fixed_ref.h.
|
inline |
Return largest absolute element value.
Definition at line 154 of file vnl_vector_fixed_ref.h.
| bool vnl_vector_fixed_ref_const< T, n >::is_finite | ( | ) | const |
Return true if it's finite.
Definition at line 71 of file vnl_vector_fixed_ref.hxx.
| bool vnl_vector_fixed_ref_const< T, n >::is_zero | ( | ) | const |
Return true iff all the entries are zero.
Definition at line 83 of file vnl_vector_fixed_ref.hxx.
|
inline |
Return magnitude (length) of vector.
Definition at line 145 of file vnl_vector_fixed_ref.h.
|
inline |
Largest value.
Definition at line 167 of file vnl_vector_fixed_ref.h.
|
inline |
Mean of values in vector.
Definition at line 176 of file vnl_vector_fixed_ref.h.
|
inline |
Smallest value.
Definition at line 164 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 258 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 263 of file vnl_vector_fixed_ref.h.
|
inline |
Return sum of absolute values of the elements.
Definition at line 148 of file vnl_vector_fixed_ref.h.
|
inline |
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.
|
inline |
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 67 of file vnl_vector_fixed_ref.h.
|
inline |
Definition at line 125 of file vnl_vector_fixed_ref.h.
|
inlineprivate |
See assert_finite().
Definition at line 287 of file vnl_vector_fixed_ref.h.
|
inlineprivate |
Definition at line 292 of file vnl_vector_fixed_ref.h.
|
inline |
Equality operator.
Definition at line 280 of file vnl_vector_fixed_ref.h.
|
inline |
Return the i-th element.
Definition at line 77 of file vnl_vector_fixed_ref.h.
|
inline |
Return true if *this == v.
Definition at line 208 of file vnl_vector_fixed_ref.h.
|
inline |
Return true if *this == v.
Definition at line 216 of file vnl_vector_fixed_ref.h.
| void vnl_vector_fixed_ref_const< T, n >::print | ( | std::ostream & | s | ) | const |
Display the vector.
Output each element separated by a single space.
Definition at line 117 of file vnl_vector_fixed_ref.hxx.
|
inline |
Root Mean Squares of values.
Definition at line 161 of file vnl_vector_fixed_ref.h.
|
inline |
|
inline |
Return sum of squares of elements.
Definition at line 142 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 243 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 248 of file vnl_vector_fixed_ref.h.
|
inlinestatic |
Definition at line 253 of file vnl_vector_fixed_ref.h.
|
inline |
Sum of values in a vector.
Definition at line 179 of file vnl_vector_fixed_ref.h.
|
inline |
Return sqrt of sum of squares of values of elements.
Definition at line 151 of file vnl_vector_fixed_ref.h.
|
protected |
Definition at line 32 of file vnl_vector_fixed_ref.h.
1.8.15