Functions
vnl_block.h File Reference
#include "vnl/vnl_export.h"

Go to the source code of this file.

Functions

VNL_EXPORT void vnl_block_raise_exception (char const *FILE, int LINE, char const *why)
 
template<class T >
vnl_block_sum (T const x[], unsigned n)
 return sum of elements. More...
 
template<class T >
vnl_block_product (T const x[], unsigned n)
 return product of elements. More...
 
template<class T >
vnl_block_min_value (T const *x, unsigned n)
 return smallest value. More...
 
template<class T >
vnl_block_max_value (T const *x, unsigned n)
 return largest value. More...
 
template<class T >
unsigned vnl_block_arg_min (T const x[], unsigned n)
 return index of smallest value. More...
 
template<class T >
unsigned vnl_block_arg_max (T const x[], unsigned n)
 return index of largest value. More...
 
template<class T >
void vnl_block_copy (T const x[], T y[], unsigned n)
 y[i] = x[i]. More...
 
template<class T >
void vnl_block_reverse (T x[], unsigned n)
 reverses sequence. More...
 
template<class T >
void vnl_block_scale (T a, T x[], unsigned n)
 x[i] *= a. More...
 
template<class T >
void vnl_block_scale (T a, T const x[], T y[], unsigned n)
 y[i] = a * x[i]. More...
 
template<class T >
void vnl_block_add (T const x[], T y[], unsigned n)
 y[i] += x[i]. More...
 
template<class T >
void vnl_block_add (T const x[], T const y[], T z[], unsigned n)
 z[i] = x[i] + y[i]. More...
 
template<class T >
void vnl_block_sub (T const x[], T const y[], T z[], unsigned n)
 z[i] = x[i] - y[i]. More...
 
template<class T >
void vnl_block_mul (T const x[], T y[], unsigned n)
 y[i] *= x[i]. More...
 
template<class T >
void vnl_block_mul (T const x[], T const y[], T z[], unsigned n)
 z[i] = x[i] * y[i]. More...
 
template<class T >
void vnl_block_div (T const x[], T const y[], T z[], unsigned n)
 z[i] = x[i] / y[i]. More...
 
template<class T >
void vnl_block_negate (T const x[], T y[], unsigned n)
 y[i] = -x[i]. More...
 
template<class T >
void vnl_block_invert (T const x[], T y[], unsigned n)
 y[i] = 1/x[i]. More...
 
template<class T >
void vnl_block_axpy (T a, T const x[], T y[], unsigned n)
 y[i] += a * x[i]. More...
 
template<class T >
void vnl_block_fill (T x[], unsigned n, T value)
 x[i] = v. More...
 

Detailed Description

Author
fsm
  Modifications
   2009-03-30 Peter Vanroose - Added arg_min() & arg_max() and reimplemented min_value() & max_value()

Definition in file vnl_block.h.

Function Documentation

◆ vnl_block_add() [1/2]

template<class T >
void vnl_block_add ( T const  x[],
y[],
unsigned  n 
)
inline

y[i] += x[i].

Definition at line 140 of file vnl_block.h.

◆ vnl_block_add() [2/2]

template<class T >
void vnl_block_add ( T const  x[],
T const  y[],
z[],
unsigned  n 
)
inline

z[i] = x[i] + y[i].

Definition at line 148 of file vnl_block.h.

◆ vnl_block_arg_max()

template<class T >
unsigned vnl_block_arg_max ( T const  x[],
unsigned  n 
)
inline

return index of largest value.

Definition at line 90 of file vnl_block.h.

◆ vnl_block_arg_min()

template<class T >
unsigned vnl_block_arg_min ( T const  x[],
unsigned  n 
)
inline

return index of smallest value.

Definition at line 76 of file vnl_block.h.

◆ vnl_block_axpy()

template<class T >
void vnl_block_axpy ( a,
T const  x[],
y[],
unsigned  n 
)
inline

y[i] += a * x[i].

Definition at line 204 of file vnl_block.h.

◆ vnl_block_copy()

template<class T >
void vnl_block_copy ( T const  x[],
y[],
unsigned  n 
)
inline

y[i] = x[i].

Definition at line 104 of file vnl_block.h.

◆ vnl_block_div()

template<class T >
void vnl_block_div ( T const  x[],
T const  y[],
z[],
unsigned  n 
)
inline

z[i] = x[i] / y[i].

Definition at line 180 of file vnl_block.h.

◆ vnl_block_fill()

template<class T >
void vnl_block_fill ( x[],
unsigned  n,
value 
)
inline

x[i] = v.

Definition at line 212 of file vnl_block.h.

◆ vnl_block_invert()

template<class T >
void vnl_block_invert ( T const  x[],
y[],
unsigned  n 
)
inline

y[i] = 1/x[i].

Definition at line 196 of file vnl_block.h.

◆ vnl_block_max_value()

template<class T >
T vnl_block_max_value ( T const *  x,
unsigned  n 
)
inline

return largest value.

Definition at line 63 of file vnl_block.h.

◆ vnl_block_min_value()

template<class T >
T vnl_block_min_value ( T const *  x,
unsigned  n 
)
inline

return smallest value.

Definition at line 50 of file vnl_block.h.

◆ vnl_block_mul() [1/2]

template<class T >
void vnl_block_mul ( T const  x[],
y[],
unsigned  n 
)
inline

y[i] *= x[i].

Definition at line 164 of file vnl_block.h.

◆ vnl_block_mul() [2/2]

template<class T >
void vnl_block_mul ( T const  x[],
T const  y[],
z[],
unsigned  n 
)
inline

z[i] = x[i] * y[i].

Definition at line 172 of file vnl_block.h.

◆ vnl_block_negate()

template<class T >
void vnl_block_negate ( T const  x[],
y[],
unsigned  n 
)
inline

y[i] = -x[i].

Definition at line 188 of file vnl_block.h.

◆ vnl_block_product()

template<class T >
T vnl_block_product ( T const  x[],
unsigned  n 
)
inline

return product of elements.

Definition at line 36 of file vnl_block.h.

◆ vnl_block_raise_exception()

VNL_EXPORT void vnl_block_raise_exception ( char const *  FILE,
int  LINE,
char const *  why 
)

Definition at line 9 of file vnl_block.cxx.

◆ vnl_block_reverse()

template<class T >
void vnl_block_reverse ( x[],
unsigned  n 
)
inline

reverses sequence.

Definition at line 112 of file vnl_block.h.

◆ vnl_block_scale() [1/2]

template<class T >
void vnl_block_scale ( a,
x[],
unsigned  n 
)
inline

x[i] *= a.

Definition at line 124 of file vnl_block.h.

◆ vnl_block_scale() [2/2]

template<class T >
void vnl_block_scale ( a,
T const  x[],
y[],
unsigned  n 
)
inline

y[i] = a * x[i].

Definition at line 132 of file vnl_block.h.

◆ vnl_block_sub()

template<class T >
void vnl_block_sub ( T const  x[],
T const  y[],
z[],
unsigned  n 
)
inline

z[i] = x[i] - y[i].

Definition at line 156 of file vnl_block.h.

◆ vnl_block_sum()

template<class T >
T vnl_block_sum ( T const  x[],
unsigned  n 
)
inline

return sum of elements.

Definition at line 22 of file vnl_block.h.