Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes | Private Types | List of all members
vnl_vector_fixed_ref< T, n > Class Template Reference

#include <vnl_fwd.h>

Inheritance diagram for vnl_vector_fixed_ref< T, n >:
Inheritance graph
[legend]

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_reffill (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...
 
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...
 
min_value () const
 Smallest value. More...
 
max_value () const
 Largest value. More...
 
unsigned arg_min () const
 Location of smallest value. More...
 
unsigned arg_max () const
 Location of largest value. More...
 
mean () const
 Mean of values in vector. More...
 
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
 

Detailed Description

template<class T, unsigned n>
class vnl_vector_fixed_ref< T, n >

Definition at line 24 of file vnl_fwd.h.

Member Typedef Documentation

◆ abs_t

template<class T, unsigned int n>
typedef vnl_c_vector<T>::abs_t vnl_vector_fixed_ref_const< T, n >::abs_t
inherited

Definition at line 139 of file vnl_vector_fixed_ref.h.

◆ base

template<class T, unsigned n>
typedef vnl_vector_fixed_ref_const<T,n> vnl_vector_fixed_ref< T, n >::base
private

Definition at line 305 of file vnl_vector_fixed_ref.h.

◆ const_iterator

template<class T, unsigned int n>
typedef T const* vnl_vector_fixed_ref_const< T, n >::const_iterator
inherited

Const iterator type.

Definition at line 109 of file vnl_vector_fixed_ref.h.

◆ element_type

template<class T, unsigned int n>
typedef T vnl_vector_fixed_ref_const< T, n >::element_type
inherited

Type defs for iterators.

Definition at line 104 of file vnl_vector_fixed_ref.h.

◆ iterator

template<class T, unsigned n>
typedef T* vnl_vector_fixed_ref< T, n >::iterator

Definition at line 375 of file vnl_vector_fixed_ref.h.

◆ size_type

template<class T, unsigned n>
typedef unsigned int vnl_vector_fixed_ref< T, n >::size_type

Definition at line 308 of file vnl_vector_fixed_ref.h.

Constructor & Destructor Documentation

◆ vnl_vector_fixed_ref() [1/2]

template<class T, unsigned n>
vnl_vector_fixed_ref< T, n >::vnl_vector_fixed_ref ( vnl_vector_fixed< T, n > &  rhs)
inline

Definition at line 314 of file vnl_vector_fixed_ref.h.

◆ vnl_vector_fixed_ref() [2/2]

template<class T, unsigned n>
vnl_vector_fixed_ref< T, n >::vnl_vector_fixed_ref ( T *  dataptr)
inlineexplicit

Definition at line 316 of file vnl_vector_fixed_ref.h.

Member Function Documentation

◆ add() [1/2]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::add ( const T *  a,
const T *  b,
T *  r 
)
inlinestaticinherited

Definition at line 233 of file vnl_vector_fixed_ref.h.

◆ add() [2/2]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::add ( const T *  a,
b,
T *  r 
)
inlinestaticinherited

Definition at line 238 of file vnl_vector_fixed_ref.h.

◆ apply() [1/2]

template<class T , unsigned int n>
vnl_vector_fixed< T, n > vnl_vector_fixed_ref_const< T, n >::apply ( T(*)(T)  f) const
inherited

Apply f to each element.

Returns a new vector with the result.

Definition at line 22 of file vnl_vector_fixed_ref.hxx.

◆ apply() [2/2]

template<class T , unsigned int n>
vnl_vector_fixed< T, n > vnl_vector_fixed_ref_const< T, n >::apply ( T(*)(const T &)  f) const
inherited

Apply f to each element.

Returns a new vector with the result.

Definition at line 32 of file vnl_vector_fixed_ref.hxx.

◆ arg_max()

template<class T, unsigned int n>
unsigned vnl_vector_fixed_ref_const< T, n >::arg_max ( ) const
inlineinherited

Location of largest value.

Definition at line 173 of file vnl_vector_fixed_ref.h.

◆ arg_min()

template<class T, unsigned int n>
unsigned vnl_vector_fixed_ref_const< T, n >::arg_min ( ) const
inlineinherited

Location of smallest value.

Definition at line 170 of file vnl_vector_fixed_ref.h.

◆ as_ref() [1/2]

template<class T, unsigned int n>
const vnl_vector_ref<T> vnl_vector_fixed_ref_const< T, n >::as_ref ( ) const
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.

See also
vnl_vector_ref::non_const

Definition at line 93 of file vnl_vector_fixed_ref.h.

◆ as_ref() [2/2]

template<class T, unsigned n>
vnl_vector_ref<T> vnl_vector_fixed_ref< T, n >::as_ref ( )
inline

Definition at line 373 of file vnl_vector_fixed_ref.h.

◆ as_vector()

template<class T, unsigned int n>
vnl_vector<T> vnl_vector_fixed_ref_const< T, n >::as_vector ( ) const
inlineinherited

Convert to a vnl_vector.

Definition at line 135 of file vnl_vector_fixed_ref.h.

◆ assert_finite()

template<class T, unsigned int n>
void vnl_vector_fixed_ref_const< T, n >::assert_finite ( ) const
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.

◆ assert_size()

template<class T, unsigned int n>
void vnl_vector_fixed_ref_const< T, n >::assert_size ( unsigned  sz) const
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.

◆ begin()

template<class T, unsigned n>
iterator vnl_vector_fixed_ref< T, n >::begin ( ) const
inline

Iterator pointing to start of data.

Definition at line 377 of file vnl_vector_fixed_ref.h.

◆ copy_in()

template<class T, unsigned n>
vnl_vector_fixed_ref const& vnl_vector_fixed_ref< T, n >::copy_in ( T const *  ptr) const
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.

◆ copy_out()

template<class T, unsigned int n>
void vnl_vector_fixed_ref_const< T, n >::copy_out ( T *  ptr) const
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.

◆ data_block()

template<class T, unsigned n>
T* vnl_vector_fixed_ref< T, n >::data_block ( ) const
inline

Definition at line 312 of file vnl_vector_fixed_ref.h.

◆ div() [1/2]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::div ( const T *  a,
const T *  b,
T *  r 
)
inlinestaticinherited

Definition at line 268 of file vnl_vector_fixed_ref.h.

◆ div() [2/2]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::div ( const T *  a,
b,
T *  r 
)
inlinestaticinherited

Definition at line 273 of file vnl_vector_fixed_ref.h.

◆ empty()

template<class T, unsigned int n>
bool vnl_vector_fixed_ref_const< T, n >::empty ( ) const
inlineinherited

Return true iff the size is zero.

Definition at line 205 of file vnl_vector_fixed_ref.h.

◆ end()

template<class T, unsigned n>
iterator vnl_vector_fixed_ref< T, n >::end ( ) const
inline

Iterator pointing to element beyond end of data.

Definition at line 380 of file vnl_vector_fixed_ref.h.

◆ extract()

template<class T , unsigned int n>
vnl_vector< T > vnl_vector_fixed_ref_const< T, n >::extract ( unsigned int  len,
unsigned int  start = 0 
) const
inherited

Returns a subvector specified by the start index and length. O(n).

Definition at line 43 of file vnl_vector_fixed_ref.hxx.

◆ fill()

template<class T, unsigned n>
vnl_vector_fixed_ref& vnl_vector_fixed_ref< T, n >::fill ( T const &  v)
inline

Set all values to v.

Definition at line 341 of file vnl_vector_fixed_ref.h.

◆ flip()

template<class T , unsigned int n>
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.

◆ get()

template<class T, unsigned int n>
T vnl_vector_fixed_ref_const< T, n >::get ( unsigned int  i) const
inlineinherited

Get value at element i.

Definition at line 55 of file vnl_vector_fixed_ref.h.

◆ inf_norm()

template<class T, unsigned int n>
abs_t vnl_vector_fixed_ref_const< T, n >::inf_norm ( ) const
inlineinherited

Return largest absolute element value.

Definition at line 154 of file vnl_vector_fixed_ref.h.

◆ is_finite()

template<class T , unsigned int n>
bool vnl_vector_fixed_ref_const< T, n >::is_finite ( ) const
inherited

Return true if it's finite.

Definition at line 71 of file vnl_vector_fixed_ref.hxx.

◆ is_zero()

template<class T , unsigned int n>
bool vnl_vector_fixed_ref_const< T, n >::is_zero ( ) const
inherited

Return true iff all the entries are zero.

Definition at line 83 of file vnl_vector_fixed_ref.hxx.

◆ magnitude()

template<class T, unsigned int n>
abs_t vnl_vector_fixed_ref_const< T, n >::magnitude ( ) const
inlineinherited

Return magnitude (length) of vector.

Definition at line 145 of file vnl_vector_fixed_ref.h.

◆ max_value()

template<class T, unsigned int n>
T vnl_vector_fixed_ref_const< T, n >::max_value ( ) const
inlineinherited

Largest value.

Definition at line 167 of file vnl_vector_fixed_ref.h.

◆ mean()

template<class T, unsigned int n>
T vnl_vector_fixed_ref_const< T, n >::mean ( ) const
inlineinherited

Mean of values in vector.

Definition at line 176 of file vnl_vector_fixed_ref.h.

◆ min_value()

template<class T, unsigned int n>
T vnl_vector_fixed_ref_const< T, n >::min_value ( ) const
inlineinherited

Smallest value.

Definition at line 164 of file vnl_vector_fixed_ref.h.

◆ mul() [1/2]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::mul ( const T *  a,
const T *  b,
T *  r 
)
inlinestaticinherited

Definition at line 258 of file vnl_vector_fixed_ref.h.

◆ mul() [2/2]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::mul ( const T *  a,
b,
T *  r 
)
inlinestaticinherited

Definition at line 263 of file vnl_vector_fixed_ref.h.

◆ one_norm()

template<class T, unsigned int n>
abs_t vnl_vector_fixed_ref_const< T, n >::one_norm ( ) const
inlineinherited

Return sum of absolute values of the elements.

Definition at line 148 of file vnl_vector_fixed_ref.h.

◆ operator *=()

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator *= ( s) const
inline

Definition at line 401 of file vnl_vector_fixed_ref.h.

◆ operator const vnl_vector_ref< T >()

template<class T, unsigned int n>
vnl_vector_fixed_ref_const< T, n >::operator const vnl_vector_ref< T > ( ) const
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.

◆ operator!=()

template<class T, unsigned int n>
bool vnl_vector_fixed_ref_const< T, n >::operator!= ( vnl_vector_fixed_ref_const< T, n > const &  that) const
inlineinherited

Inequality operator.

Definition at line 283 of file vnl_vector_fixed_ref.h.

◆ operator()()

template<class T, unsigned n>
T& vnl_vector_fixed_ref< T, n >::operator() ( unsigned int  i) const
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.

◆ operator+=() [1/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator+= ( s) const
inline

Definition at line 391 of file vnl_vector_fixed_ref.h.

◆ operator+=() [2/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator+= ( const vnl_vector_fixed< T, n > &  v) const
inline

Definition at line 411 of file vnl_vector_fixed_ref.h.

◆ operator+=() [3/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator+= ( const vnl_vector< T > &  v) const
inline

Definition at line 421 of file vnl_vector_fixed_ref.h.

◆ operator-()

template<class T, unsigned int n>
vnl_vector_fixed<T,n> vnl_vector_fixed_ref_const< T, n >::operator- ( ) const
inlineinherited

Definition at line 125 of file vnl_vector_fixed_ref.h.

◆ operator-=() [1/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator-= ( s) const
inline

Definition at line 396 of file vnl_vector_fixed_ref.h.

◆ operator-=() [2/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator-= ( const vnl_vector_fixed< T, n > &  v) const
inline

Definition at line 416 of file vnl_vector_fixed_ref.h.

◆ operator-=() [3/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator-= ( const vnl_vector< T > &  v) const
inline

Definition at line 427 of file vnl_vector_fixed_ref.h.

◆ operator/=()

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator/= ( s) const
inline

Definition at line 406 of file vnl_vector_fixed_ref.h.

◆ operator=() [1/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator= ( const vnl_vector_fixed< T, n > &  rhs) const
inline

Copy operator.

Definition at line 319 of file vnl_vector_fixed_ref.h.

◆ operator=() [2/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator= ( const vnl_vector_fixed_ref< T, n > &  rhs) const
inline

Copy operator.

Definition at line 325 of file vnl_vector_fixed_ref.h.

◆ operator=() [3/3]

template<class T, unsigned n>
vnl_vector_fixed_ref<T,n> const& vnl_vector_fixed_ref< T, n >::operator= ( const vnl_vector_fixed_ref_const< T, n > &  rhs) const
inline

Copy operator.

Definition at line 331 of file vnl_vector_fixed_ref.h.

◆ operator==()

template<class T, unsigned int n>
bool vnl_vector_fixed_ref_const< T, n >::operator== ( vnl_vector_fixed_ref_const< T, n > const &  that) const
inlineinherited

Equality operator.

Definition at line 280 of file vnl_vector_fixed_ref.h.

◆ operator[]()

template<class T, unsigned n>
T& vnl_vector_fixed_ref< T, n >::operator[] ( unsigned int  i) const
inline

Return the i-th element.

Definition at line 370 of file vnl_vector_fixed_ref.h.

◆ operator_eq() [1/2]

template<class T, unsigned int n>
bool vnl_vector_fixed_ref_const< T, n >::operator_eq ( vnl_vector_fixed_ref_const< T, n > const &  v) const
inlineinherited

Return true if *this == v.

Definition at line 208 of file vnl_vector_fixed_ref.h.

◆ operator_eq() [2/2]

template<class T, unsigned int n>
bool vnl_vector_fixed_ref_const< T, n >::operator_eq ( vnl_vector< T > const &  v) const
inlineinherited

Return true if *this == v.

Definition at line 216 of file vnl_vector_fixed_ref.h.

◆ print()

template<class T , unsigned int n>
void vnl_vector_fixed_ref_const< T, n >::print ( std::ostream &  s) const
inherited

Display the vector.

Output each element separated by a single space.

Definition at line 117 of file vnl_vector_fixed_ref.hxx.

◆ put()

template<class T, unsigned n>
void vnl_vector_fixed_ref< T, n >::put ( unsigned int  i,
T const &  v 
) const
inline

Put value at given position in vector.

Definition at line 338 of file vnl_vector_fixed_ref.h.

◆ read_ascii()

template<class T , unsigned int n>
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.

◆ rms()

template<class T, unsigned int n>
abs_t vnl_vector_fixed_ref_const< T, n >::rms ( ) const
inlineinherited

Root Mean Squares of values.

Definition at line 161 of file vnl_vector_fixed_ref.h.

◆ set()

template<class T, unsigned n>
vnl_vector_fixed_ref const& vnl_vector_fixed_ref< T, n >::set ( T const *  ptr) const
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.

◆ size()

template<class T, unsigned int n>
unsigned vnl_vector_fixed_ref_const< T, n >::size ( ) const
inlineinherited

Length of the vector.

This is always n.

Definition at line 52 of file vnl_vector_fixed_ref.h.

◆ squared_magnitude()

template<class T, unsigned int n>
abs_t vnl_vector_fixed_ref_const< T, n >::squared_magnitude ( ) const
inlineinherited

Return sum of squares of elements.

Definition at line 142 of file vnl_vector_fixed_ref.h.

◆ sub() [1/3]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::sub ( const T *  a,
const T *  b,
T *  r 
)
inlinestaticinherited

Definition at line 243 of file vnl_vector_fixed_ref.h.

◆ sub() [2/3]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::sub ( const T *  a,
b,
T *  r 
)
inlinestaticinherited

Definition at line 248 of file vnl_vector_fixed_ref.h.

◆ sub() [3/3]

template<class T, unsigned int n>
static void vnl_vector_fixed_ref_const< T, n >::sub ( a,
const T *  b,
T *  r 
)
inlinestaticinherited

Definition at line 253 of file vnl_vector_fixed_ref.h.

◆ sum()

template<class T, unsigned int n>
T vnl_vector_fixed_ref_const< T, n >::sum ( ) const
inlineinherited

Sum of values in a vector.

Definition at line 179 of file vnl_vector_fixed_ref.h.

◆ two_norm()

template<class T, unsigned int n>
abs_t vnl_vector_fixed_ref_const< T, n >::two_norm ( ) const
inlineinherited

Return sqrt of sum of squares of values of elements.

Definition at line 151 of file vnl_vector_fixed_ref.h.

◆ update()

template<class T , unsigned int n>
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.

Member Data Documentation

◆ data_

template<class T, unsigned int n>
const T* vnl_vector_fixed_ref_const< T, n >::data_
protectedinherited

Definition at line 32 of file vnl_vector_fixed_ref.h.


The documentation for this class was generated from the following files: