#include <vcl_compiler.h>Go to the source code of this file.
Functions | |
| void | vnl_block_raise_exception (char const *FILE, int LINE, char const *why) |
| template<class T > | |
| T | vnl_block_sum (T const x[], unsigned n) |
| return sum of elements. | |
| template<class T > | |
| T | vnl_block_product (T const x[], unsigned n) |
| return product of elements. | |
| template<class T > | |
| T | vnl_block_min_value (T const *x, unsigned n) |
| return smallest value. | |
| template<class T > | |
| T | vnl_block_max_value (T const *x, unsigned n) |
| return largest value. | |
| template<class T > | |
| unsigned | vnl_block_arg_min (T const x[], unsigned n) |
| return index of smallest value. | |
| template<class T > | |
| unsigned | vnl_block_arg_max (T const x[], unsigned n) |
| return index of largest value. | |
| template<class T > | |
| void | vnl_block_copy (T const x[], T y[], unsigned n) |
| y[i] = x[i]. | |
| template<class T > | |
| void | vnl_block_reverse (T x[], unsigned n) |
| reverses sequence. | |
| template<class T > | |
| void | vnl_block_scale (T a, T x[], unsigned n) |
| x[i] *= a. | |
| template<class T > | |
| void | vnl_block_scale (T a, T const x[], T y[], unsigned n) |
| y[i] = a * x[i]. | |
| template<class T > | |
| void | vnl_block_add (T const x[], T y[], unsigned n) |
| y[i] += x[i]. | |
| template<class T > | |
| void | vnl_block_add (T const x[], T const y[], T z[], unsigned n) |
| z[i] = x[i] + y[i]. | |
| template<class T > | |
| void | vnl_block_sub (T const x[], T const y[], T z[], unsigned n) |
| z[i] = x[i] - y[i]. | |
| template<class T > | |
| void | vnl_block_mul (T const x[], T y[], unsigned n) |
| y[i] *= x[i]. | |
| template<class T > | |
| void | vnl_block_mul (T const x[], T const y[], T z[], unsigned n) |
| z[i] = x[i] * y[i]. | |
| template<class T > | |
| void | vnl_block_div (T const x[], T const y[], T z[], unsigned n) |
| z[i] = x[i] / y[i]. | |
| template<class T > | |
| void | vnl_block_negate (T const x[], T y[], unsigned n) |
| y[i] = -x[i]. | |
| template<class T > | |
| void | vnl_block_invert (T const x[], T y[], unsigned n) |
| y[i] = 1/x[i]. | |
| template<class T > | |
| void | vnl_block_axpy (T a, T const x[], T y[], unsigned n) |
| y[i] += a * x[i]. | |
| template<class T > | |
| void | vnl_block_fill (T x[], unsigned n, T value) |
| x[i] = v. | |
Modifications
2009-03-30 Peter Vanroose - Added arg_min() & arg_max() and reimplemented min_value() & max_value()
Definition in file vnl_block.h.
| void vnl_block_add | ( | T const | x[], |
| T | y[], | ||
| unsigned | n | ||
| ) | [inline] |
y[i] += x[i].
Definition at line 140 of file vnl_block.h.
| void vnl_block_add | ( | T const | x[], |
| T const | y[], | ||
| T | z[], | ||
| unsigned | n | ||
| ) | [inline] |
z[i] = x[i] + y[i].
Definition at line 148 of file vnl_block.h.
| 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.
| 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.
| void vnl_block_axpy | ( | T | a, |
| T const | x[], | ||
| T | y[], | ||
| unsigned | n | ||
| ) | [inline] |
y[i] += a * x[i].
Definition at line 204 of file vnl_block.h.
| void vnl_block_copy | ( | T const | x[], |
| T | y[], | ||
| unsigned | n | ||
| ) | [inline] |
y[i] = x[i].
Definition at line 104 of file vnl_block.h.
| void vnl_block_div | ( | T const | x[], |
| T const | y[], | ||
| T | z[], | ||
| unsigned | n | ||
| ) | [inline] |
z[i] = x[i] / y[i].
Definition at line 180 of file vnl_block.h.
| void vnl_block_fill | ( | T | x[], |
| unsigned | n, | ||
| T | value | ||
| ) | [inline] |
x[i] = v.
Definition at line 212 of file vnl_block.h.
| void vnl_block_invert | ( | T const | x[], |
| T | y[], | ||
| unsigned | n | ||
| ) | [inline] |
y[i] = 1/x[i].
Definition at line 196 of file vnl_block.h.
| T vnl_block_max_value | ( | T const * | x, |
| unsigned | n | ||
| ) | [inline] |
return largest value.
Definition at line 63 of file vnl_block.h.
| T vnl_block_min_value | ( | T const * | x, |
| unsigned | n | ||
| ) | [inline] |
return smallest value.
Definition at line 50 of file vnl_block.h.
| void vnl_block_mul | ( | T const | x[], |
| T | y[], | ||
| unsigned | n | ||
| ) | [inline] |
y[i] *= x[i].
Definition at line 164 of file vnl_block.h.
| void vnl_block_mul | ( | T const | x[], |
| T const | y[], | ||
| T | z[], | ||
| unsigned | n | ||
| ) | [inline] |
z[i] = x[i] * y[i].
Definition at line 172 of file vnl_block.h.
| void vnl_block_negate | ( | T const | x[], |
| T | y[], | ||
| unsigned | n | ||
| ) | [inline] |
y[i] = -x[i].
Definition at line 188 of file vnl_block.h.
| T vnl_block_product | ( | T const | x[], |
| unsigned | n | ||
| ) | [inline] |
return product of elements.
Definition at line 36 of file vnl_block.h.
| void vnl_block_raise_exception | ( | char const * | FILE, |
| int | LINE, | ||
| char const * | why | ||
| ) |
Definition at line 14 of file vnl_block.cxx.
| void vnl_block_reverse | ( | T | x[], |
| unsigned | n | ||
| ) | [inline] |
reverses sequence.
Definition at line 112 of file vnl_block.h.
| void vnl_block_scale | ( | T | a, |
| T | x[], | ||
| unsigned | n | ||
| ) | [inline] |
x[i] *= a.
Definition at line 124 of file vnl_block.h.
| void vnl_block_scale | ( | T | a, |
| T const | x[], | ||
| T | y[], | ||
| unsigned | n | ||
| ) | [inline] |
y[i] = a * x[i].
Definition at line 132 of file vnl_block.h.
| void vnl_block_sub | ( | T const | x[], |
| T const | y[], | ||
| T | z[], | ||
| unsigned | n | ||
| ) | [inline] |
z[i] = x[i] - y[i].
Definition at line 156 of file vnl_block.h.
| T vnl_block_sum | ( | T const | x[], |
| unsigned | n | ||
| ) | [inline] |
return sum of elements.
Definition at line 22 of file vnl_block.h.
1.7.5.1