#include <vnl_fwd.h>

Public Types | |
| typedef T | element_type |
| typedef T * | iterator |
| Iterators. More... | |
| typedef T const * | const_iterator |
| Const iterators. More... | |
| typedef vnl_c_vector< T >::abs_t | abs_t |
| Type def for norms. More... | |
Public Member Functions | |
| T * | data_block () const |
| vnl_matrix_fixed_ref (vnl_matrix_fixed< T, num_rows, num_cols > &rhs) | |
| vnl_matrix_fixed_ref (T *dataptr) | |
| vnl_matrix_fixed_ref const & | operator= (const vnl_matrix_fixed_ref_const< T, num_rows, num_cols > &rhs) const |
| Copy another vnl_matrix_fixed<T,m,n> into this. More... | |
| void | put (unsigned r, unsigned c, T const &v) |
| set element. More... | |
| T | get (unsigned r, unsigned c) const |
| get element. More... | |
| T * | operator[] (unsigned r) const |
| return pointer to given row. More... | |
| T & | operator() (unsigned r, unsigned c) const |
| Access an element for reading or writing. More... | |
| vnl_matrix_fixed_ref const & | fill (T) const |
| Sets all elements of matrix to specified value, and returns "*this". More... | |
| vnl_matrix_fixed_ref const & | fill_diagonal (T) const |
| Sets all diagonal elements of matrix to specified value; returns "*this". More... | |
| vnl_matrix_fixed_ref const & | set_diagonal (vnl_vector< T > const &) const |
| Sets the diagonal elements of this matrix to the specified list of values. More... | |
| vnl_matrix_fixed_ref const & | copy_in (T const *) const |
| Fills (laminates) this matrix with the given data, then returns it. More... | |
| vnl_matrix_fixed_ref const & | set (T const *d) const |
| Fills (laminates) this matrix with the given data, then returns it. More... | |
| vnl_matrix_fixed_ref const & | inplace_transpose () const |
| Fills the given array with this matrix. More... | |
| vnl_matrix_fixed_ref const & | operator+= (T s) const |
| Add s to each element of lhs matrix in situ. More... | |
| vnl_matrix_fixed_ref const & | operator-= (T s) const |
| Subtract s from each element of lhs matrix in situ. More... | |
| vnl_matrix_fixed_ref const & | operator *= (T s) const |
| vnl_matrix_fixed_ref const & | operator/= (T s) const |
| vnl_matrix_fixed_ref const & | operator+= (vnl_matrix_fixed_ref_const< T, num_rows, num_cols > const &m) const |
| vnl_matrix_fixed_ref const & | operator+= (vnl_matrix< T > const &m) const |
| vnl_matrix_fixed_ref const & | operator-= (vnl_matrix_fixed_ref_const< T, num_rows, num_cols > const &m) const |
| vnl_matrix_fixed_ref const & | operator-= (vnl_matrix< T > const &m) const |
| vnl_matrix_fixed< T, num_rows, num_cols > | operator- () const |
| Negate all elements of matrix. More... | |
| vnl_matrix_fixed_ref const & | operator *= (vnl_matrix_fixed_ref_const< T, num_cols, num_cols > const &s) const |
| vnl_matrix_fixed_ref const & | update (vnl_matrix< T > const &, unsigned top=0, unsigned left=0) const |
| Set values of this matrix to those of M, starting at [top,left]. More... | |
| vnl_matrix_fixed_ref const & | set_column (unsigned i, T const *v) const |
| Set the elements of the i'th column to v[i] (No bounds checking). More... | |
| vnl_matrix_fixed_ref const & | set_column (unsigned i, T value) const |
| Set the elements of the i'th column to value, then return *this. More... | |
| vnl_matrix_fixed_ref const & | set_column (unsigned j, vnl_vector< T > const &v) const |
| Set j-th column to v, then return *this. More... | |
| vnl_matrix_fixed_ref const & | set_column (unsigned j, vnl_vector_fixed< T, num_rows > const &v) const |
| Set j-th column to v, then return *this. More... | |
| vnl_matrix_fixed_ref const & | set_columns (unsigned starting_column, vnl_matrix< T > const &M) const |
| Set columns to those in M, starting at starting_column, then return *this. More... | |
| vnl_matrix_fixed_ref const & | set_row (unsigned i, T const *v) const |
| Set the elements of the i'th row to v[i] (No bounds checking). More... | |
| vnl_matrix_fixed_ref const & | set_row (unsigned i, T value) const |
| Set the elements of the i'th row to value, then return *this. More... | |
| vnl_matrix_fixed_ref const & | set_row (unsigned i, vnl_vector< T > const &v) const |
| Set the i-th row to v, then return *this. More... | |
| vnl_matrix_fixed_ref const & | set_row (unsigned i, vnl_vector_fixed< T, num_cols > const &v) const |
| Set the i-th row to v, then return *this. More... | |
| vnl_matrix_fixed_ref const & | set_identity () const |
| Sets this matrix to an identity matrix, then returns "*this". More... | |
| vnl_matrix_fixed_ref & | flipud () |
| Reverses the order of rows, and returns "*this". More... | |
| vnl_matrix_fixed_ref & | fliplr () |
| Reverses the order of columns, and returns "*this". More... | |
| vnl_matrix_fixed_ref const & | normalize_rows () const |
| Normalizes each row so it is a unit vector, and returns "*this". More... | |
| vnl_matrix_fixed_ref const & | normalize_columns () const |
| Normalizes each column so it is a unit vector, and returns "*this". More... | |
| vnl_matrix_fixed_ref const & | scale_row (unsigned row, T value) const |
| Scales elements in given row by a factor T, and returns "*this". More... | |
| vnl_matrix_fixed_ref const & | scale_column (unsigned col, T value) const |
| Scales elements in given column by a factor T, and returns "*this". More... | |
| bool | read_ascii (std::istream &s) const |
| vnl_matrix_ref< T > | as_ref () |
| Explicit conversion to a vnl_matrix_ref. More... | |
| const vnl_matrix_ref< T > | as_ref () const |
| Explicit conversion to a vnl_matrix_ref. More... | |
| operator const vnl_matrix_ref< T > () const | |
| Cheap conversion to vnl_matrix_ref. More... | |
| const vnl_matrix< T > | as_matrix () const |
| Convert to a vnl_matrix. More... | |
| iterator | begin () const |
| Iterator pointing to start of data. More... | |
| iterator | end () const |
| Iterator pointing to element beyond end of data. More... | |
| bool | operator_eq (vnl_matrix_fixed_ref_const< T, num_rows, num_cols > const &rhs) const |
| Return true if *this == rhs. More... | |
| bool | operator== (vnl_matrix_fixed_ref_const< T, num_rows, num_cols > const &that) const |
| Equality operator. More... | |
| bool | operator!= (vnl_matrix_fixed_ref_const< T, num_rows, num_cols > const &that) const |
| Inequality operator. More... | |
| vnl_vector_fixed< T, num_rows > | get_row (unsigned row_index) const |
| Get j-th row. More... | |
| vnl_vector_fixed< T, num_cols > | get_column (unsigned column_index) const |
| Get j-th column. More... | |
| vnl_vector< T > | get_diagonal () const |
| Return a vector with the content of the (main) diagonal. More... | |
| unsigned | rows () const |
| Return number of rows. More... | |
| unsigned | columns () const |
| Return number of columns. More... | |
| unsigned | cols () const |
| Return number of columns. More... | |
| unsigned | size () const |
| Return number of elements. More... | |
| void | print (std::ostream &os) const |
| Print matrix to os in some hopefully sensible format. More... | |
| void | copy_out (T *) const |
| vnl_matrix_fixed< T, num_rows, num_cols > | apply (T(*f)(T)) const |
| Make a new matrix by applying function to each element. More... | |
| vnl_matrix_fixed< T, num_rows, num_cols > | apply (T(*f)(T const &)) const |
| Make a new matrix by applying function to each element. More... | |
| vnl_matrix_fixed< T, num_cols, num_rows > | transpose () const |
| Return transpose. More... | |
| vnl_matrix_fixed< T, num_cols, num_rows > | conjugate_transpose () const |
| Return conjugate transpose. More... | |
| vnl_matrix< T > | extract (unsigned rowz, unsigned colz, unsigned top=0, unsigned left=0) const |
| Extract a sub-matrix of size rows x cols, starting at (top,left). More... | |
| vnl_matrix< T > | get_n_rows (unsigned rowstart, unsigned n) const |
| Get n rows beginning at rowstart. More... | |
| vnl_matrix< T > | get_n_columns (unsigned colstart, unsigned n) const |
| Get n columns beginning at colstart. More... | |
| abs_t | array_one_norm () const |
| Return sum of absolute values of elements. More... | |
| abs_t | array_two_norm () const |
| Return square root of sum of squared absolute element values. More... | |
| abs_t | array_inf_norm () const |
| Return largest absolute element value. More... | |
| abs_t | absolute_value_sum () const |
| Return sum of absolute values of elements. More... | |
| abs_t | absolute_value_max () const |
| Return largest absolute value. More... | |
| abs_t | operator_one_norm () const |
| abs_t | operator_inf_norm () const |
| abs_t | frobenius_norm () const |
| Return Frobenius norm of matrix (sqrt of sum of squares of its elements). More... | |
| abs_t | fro_norm () const |
| Return Frobenius norm of matrix (sqrt of sum of squares of its elements). More... | |
| abs_t | rms () const |
| Return RMS of all elements. More... | |
| T | min_value () const |
| Return minimum value of elements. More... | |
| T | max_value () const |
| Return maximum value of elements. More... | |
| unsigned | arg_min () const |
| Return location of minimum value of elements. More... | |
| unsigned | arg_max () const |
| Return location of maximum value of elements. More... | |
| T | mean () const |
| Return mean of all matrix elements. More... | |
| bool | empty () const |
| Return true iff the size is zero. More... | |
| bool | is_identity () const |
| Return true if all elements equal to identity. More... | |
| bool | is_identity (double tol) const |
| Return true if all elements equal to identity, within given tolerance. More... | |
| bool | is_zero () const |
| Return true if all elements equal to zero. More... | |
| bool | is_zero (double tol) const |
| Return true if all elements equal to zero, within given tolerance. More... | |
| bool | is_finite () const |
| Return true if finite. More... | |
| bool | has_nans () const |
| Return true if matrix contains NaNs. More... | |
| void | assert_size (unsigned rowz, unsigned colz) const |
| abort if size is not as expected. More... | |
| void | assert_finite () const |
| abort if matrix contains any INFs or NANs. 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) |
| static bool | equal (const T *a, const T *b) |
Protected Attributes | |
| const T * | data_ |
Private Types | |
| typedef vnl_matrix_fixed_ref_const< T, num_rows, num_cols > | base |
|
inherited |
Type def for norms.
Definition at line 280 of file vnl_matrix_fixed_ref.h.
|
private |
Definition at line 399 of file vnl_matrix_fixed_ref.h.
|
inherited |
Const iterators.
Definition at line 210 of file vnl_matrix_fixed_ref.h.
| typedef T vnl_matrix_fixed_ref< T, num_rows, num_cols >::element_type |
Definition at line 735 of file vnl_matrix_fixed_ref.h.
| typedef T* vnl_matrix_fixed_ref< T, num_rows, num_cols >::iterator |
Iterators.
Definition at line 738 of file vnl_matrix_fixed_ref.h.
|
inline |
Definition at line 407 of file vnl_matrix_fixed_ref.h.
|
inlineexplicit |
Definition at line 411 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return largest absolute value.
Definition at line 295 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return sum of absolute values of elements.
Definition at line 292 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 371 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 372 of file vnl_matrix_fixed_ref.h.
|
inherited |
Make a new matrix by applying function to each element.
Definition at line 82 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Make a new matrix by applying function to each element.
Definition at line 73 of file vnl_matrix_fixed_ref.hxx.
|
inlineinherited |
Return location of maximum value of elements.
Definition at line 322 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return location of minimum value of elements.
Definition at line 319 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return largest absolute element value.
Definition at line 289 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return sum of absolute values of elements.
Definition at line 283 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return square root of sum of squared absolute element values.
Definition at line 286 of file vnl_matrix_fixed_ref.h.
|
inline |
Convert to a vnl_matrix.
Definition at line 731 of file vnl_matrix_fixed_ref.h.
|
inline |
Explicit conversion to a vnl_matrix_ref.
This is a cheap conversion for those functions that have an interface for vnl_matrix_ref but not for vnl_matrix_fixed_ref. There is also a conversion operator that should work most of the time.
Definition at line 715 of file vnl_matrix_fixed_ref.h.
|
inline |
Explicit conversion to a vnl_matrix_ref.
This is a cheap conversion for those functions that have an interface for vnl_matrix_ref but not for vnl_matrix_fixed_ref. There is also a conversion operator that should work most of the time.
Definition at line 722 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
abort if matrix contains any INFs or NANs.
This function does or tests nothing if NDEBUG is defined
Definition at line 364 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
abort if size is not as expected.
This function does or tests nothing if NDEBUG is defined
Definition at line 353 of file vnl_matrix_fixed_ref.h.
|
inline |
Iterator pointing to start of data.
Definition at line 740 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return number of columns.
A synonym for columns()
Definition at line 243 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return number of columns.
A synonym for cols()
Definition at line 239 of file vnl_matrix_fixed_ref.h.
|
inherited |
Return conjugate transpose.
Definition at line 105 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::copy_in | ( | T const * | p | ) | const |
Fills (laminates) this matrix with the given data, then returns it.
We assume that the argument points to a contiguous rows*cols array, stored rowwise. No bounds checking on the array. Returning "*this" allows "chaining" two or more operations: e.g., to fill a square matrix column-wise, fill it rowwise then transpose:
Returning "*this" also allows passing a filled-in matrix as argument to a function f, without having to name the constructed matrix:
Definition at line 155 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Definition at line 165 of file vnl_matrix_fixed_ref.hxx.
|
inline |
Definition at line 404 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 378 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 379 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return true iff the size is zero.
Definition at line 330 of file vnl_matrix_fixed_ref.h.
|
inline |
Iterator pointing to element beyond end of data.
Definition at line 742 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 381 of file vnl_matrix_fixed_ref.h.
|
inherited |
Extract a sub-matrix of size rows x cols, starting at (top,left).
Thus it contains elements [top,top+rows-1][left,left+cols-1]
Definition at line 135 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::fill | ( | T | value | ) | const |
Sets all elements of matrix to specified value, and returns "*this".
Complexity
Returning "*this" allows "chaining" two or more operations: e.g., to set a matrix to a column-normalized all-elements-equal matrix, say
Returning "*this" also allows passing such a matrix as argument to a function f, without having to name the constructed matrix:
Definition at line 24 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::fill_diagonal | ( | T | value | ) | const |
Sets all diagonal elements of matrix to specified value; returns "*this".
Complexity
Returning "*this" allows "chaining" two or more operations: e.g., to set a 3x3 matrix to [5 0 0][0 10 0][0 0 15], just say
Returning "*this" also allows passing a diagonal-filled matrix as argument to a function f, without having to name the constructed matrix:
Definition at line 35 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > & vnl_matrix_fixed_ref< T, nrows, ncols >::fliplr | ( | ) |
Reverses the order of columns, and returns "*this".
Returning "*this" allows "chaining" two or more operations: e.g., to flip both up-down and left-right, one could just say
Definition at line 559 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > & vnl_matrix_fixed_ref< T, nrows, ncols >::flipud | ( | ) |
Reverses the order of rows, and returns "*this".
Returning "*this" allows "chaining" two or more operations: e.g., to flip both up-down and left-right, one could just say
Definition at line 541 of file vnl_matrix_fixed_ref.hxx.
|
inlineinherited |
Return Frobenius norm of matrix (sqrt of sum of squares of its elements).
Definition at line 307 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return Frobenius norm of matrix (sqrt of sum of squares of its elements).
Definition at line 304 of file vnl_matrix_fixed_ref.h.
|
inline |
get element.
Definition at line 429 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Get j-th column.
Definition at line 196 of file vnl_matrix_fixed_ref.h.
|
inherited |
Return a vector with the content of the (main) diagonal.
Definition at line 298 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Get n columns beginning at colstart.
Definition at line 282 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Get n rows beginning at rowstart.
Returns a copy of n rows, starting from "row".
Definition at line 269 of file vnl_matrix_fixed_ref.hxx.
|
inlineinherited |
Get j-th row.
Definition at line 187 of file vnl_matrix_fixed_ref.h.
|
inherited |
Return true if matrix contains NaNs.
Definition at line 458 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::inplace_transpose | ( | ) | const |
Fills the given array with this matrix.
Transpose square matrix M in place.
We assume that the argument points to a contiguous rows*cols array, stored rowwise. No bounds checking on the arrayTransposes this matrix efficiently, if it is square, and returns it. Returning "*this" allows "chaining" two or more operations: e.g., to fill a square matrix column-wise, fill it rowwise then transpose:
Definition at line 609 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Return true if finite.
Definition at line 470 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Return true if all elements equal to identity.
Definition at line 400 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Return true if all elements equal to identity, within given tolerance.
Return true if maximum absolute deviation of M from identity is <= tol.
Definition at line 417 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Return true if all elements equal to zero.
Definition at line 433 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Return true if all elements equal to zero, within given tolerance.
Definition at line 446 of file vnl_matrix_fixed_ref.hxx.
|
inlineinherited |
Return maximum value of elements.
Definition at line 316 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return mean of all matrix elements.
Definition at line 325 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return minimum value of elements.
Definition at line 313 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 376 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 377 of file vnl_matrix_fixed_ref.h.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::normalize_columns | ( | ) | const |
Normalizes each column so it is a unit vector, and returns "*this".
Zero columns are not modified Returning "*this" allows "chaining" two or more operations: e.g., to set a matrix to a column-normalized all-elements-equal matrix, say
Returning "*this" also allows passing such a matrix as argument to a function f, without having to name the constructed matrix:
Definition at line 217 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::normalize_rows | ( | ) | const |
Normalizes each row so it is a unit vector, and returns "*this".
Make each row of the matrix have unit norm.
Zero rows are not modified Returning "*this" allows "chaining" two or more operations: e.g., to set a matrix to a row-normalized all-elements-equal matrix, say
Returning "*this" also allows passing such a matrix as argument to a function f, without having to name the constructed matrix:
All-zero rows are ignored.
Definition at line 191 of file vnl_matrix_fixed_ref.hxx.
|
inline |
Definition at line 530 of file vnl_matrix_fixed_ref.h.
|
inline |
Definition at line 576 of file vnl_matrix_fixed_ref.h.
|
inline |
Cheap conversion to vnl_matrix_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 728 of file vnl_matrix_fixed_ref.h.
|
inline |
Inequality operator.
Definition at line 755 of file vnl_matrix_fixed_ref.h.
|
inline |
Access an element for reading or writing.
There are assert style boundary checks - #define NDEBUG to turn them off.
Definition at line 437 of file vnl_matrix_fixed_ref.h.
|
inline |
Add s to each element of lhs matrix in situ.
Definition at line 518 of file vnl_matrix_fixed_ref.h.
|
inline |
Definition at line 542 of file vnl_matrix_fixed_ref.h.
|
inline |
Definition at line 548 of file vnl_matrix_fixed_ref.h.
|
inline |
Negate all elements of matrix.
Definition at line 568 of file vnl_matrix_fixed_ref.h.
|
inline |
Subtract s from each element of lhs matrix in situ.
Definition at line 524 of file vnl_matrix_fixed_ref.h.
|
inline |
Definition at line 555 of file vnl_matrix_fixed_ref.h.
|
inline |
Definition at line 561 of file vnl_matrix_fixed_ref.h.
|
inline |
Definition at line 536 of file vnl_matrix_fixed_ref.h.
|
inline |
Copy another vnl_matrix_fixed<T,m,n> into this.
Definition at line 417 of file vnl_matrix_fixed_ref.h.
|
inline |
Equality operator.
Definition at line 752 of file vnl_matrix_fixed_ref.h.
|
inline |
return pointer to given row.
No boundary checking here.
Definition at line 433 of file vnl_matrix_fixed_ref.h.
|
inline |
Return true if *this == rhs.
Definition at line 746 of file vnl_matrix_fixed_ref.h.
|
inherited |
Definition at line 592 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Definition at line 576 of file vnl_matrix_fixed_ref.hxx.
|
inherited |
Print matrix to os in some hopefully sensible format.
Definition at line 59 of file vnl_matrix_fixed_ref.hxx.
|
inline |
set element.
Definition at line 426 of file vnl_matrix_fixed_ref.h.
| bool vnl_matrix_fixed_ref< T, nrows, ncols >::read_ascii | ( | std::istream & | s | ) | const |
Definition at line 523 of file vnl_matrix_fixed_ref.hxx.
|
inlineinherited |
Return RMS of all elements.
Definition at line 310 of file vnl_matrix_fixed_ref.h.
|
inlineinherited |
Return number of rows.
Definition at line 235 of file vnl_matrix_fixed_ref.h.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::scale_column | ( | unsigned | col, |
| T | value | ||
| ) | const |
Scales elements in given column by a factor T, and returns "*this".
Returning "*this" allows "chaining" two or more operations: e.g., to set a 3x3 matrix to [3 0 0][0 2 0][0 0 1], one could say
Definition at line 255 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::scale_row | ( | unsigned | row, |
| T | value | ||
| ) | const |
Scales elements in given row by a factor T, and returns "*this".
Returning "*this" allows "chaining" two or more operations: e.g., to set a 3x3 matrix to [3 0 0][0 2 0][0 0 1], one could say
Definition at line 242 of file vnl_matrix_fixed_ref.hxx.
|
inline |
Fills (laminates) this matrix with the given data, then returns it.
A synonym for copy_in()
Definition at line 499 of file vnl_matrix_fixed_ref.h.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_column | ( | unsigned | i, |
| T const * | v | ||
| ) | const |
Set the elements of the i'th column to v[i] (No bounds checking).
Definition at line 346 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_column | ( | unsigned | i, |
| T | value | ||
| ) | const |
Set the elements of the i'th column to value, then return *this.
Definition at line 371 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_column | ( | unsigned | j, |
| vnl_vector< T > const & | v | ||
| ) | const |
Set j-th column to v, then return *this.
Definition at line 363 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_column | ( | unsigned | j, |
| vnl_vector_fixed< T, nrows > const & | v | ||
| ) | const |
Set j-th column to v, then return *this.
Definition at line 355 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_columns | ( | unsigned | starting_column, |
| vnl_matrix< T > const & | M | ||
| ) | const |
Set columns to those in M, starting at starting_column, then return *this.
Definition at line 381 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_diagonal | ( | vnl_vector< T > const & | diag | ) | const |
Sets the diagonal elements of this matrix to the specified list of values.
Returning "*this" allows "chaining" two or more operations: see the reasoning (and the examples) in the documentation for method fill_diagonal().
Definition at line 45 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_identity | ( | ) | const |
Sets this matrix to an identity matrix, then returns "*this".
Returning "*this" allows e.g. passing an identity matrix as argument to a function f, without having to name the constructed matrix:
Returning "*this" also allows "chaining" two or more operations: e.g., to set a 3x3 matrix to [3 0 0][0 2 0][0 0 1], one could say
If the matrix is not square, anyhow set main diagonal to 1, the rest to 0.
Definition at line 175 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_row | ( | unsigned | i, |
| T const * | v | ||
| ) | const |
Set the elements of the i'th row to v[i] (No bounds checking).
Definition at line 310 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_row | ( | unsigned | i, |
| T | value | ||
| ) | const |
Set the elements of the i'th row to value, then return *this.
Definition at line 335 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_row | ( | unsigned | i, |
| vnl_vector< T > const & | v | ||
| ) | const |
Set the i-th row to v, then return *this.
Definition at line 327 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::set_row | ( | unsigned | i, |
| vnl_vector_fixed< T, ncols > const & | v | ||
| ) | const |
Set the i-th row to v, then return *this.
Definition at line 319 of file vnl_matrix_fixed_ref.hxx.
|
inlineinherited |
Return number of elements.
Definition at line 247 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 373 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 374 of file vnl_matrix_fixed_ref.h.
|
inlinestaticinherited |
Definition at line 375 of file vnl_matrix_fixed_ref.h.
|
inherited |
Return transpose.
Definition at line 94 of file vnl_matrix_fixed_ref.hxx.
| vnl_matrix_fixed_ref< T, nrows, ncols > const & vnl_matrix_fixed_ref< T, nrows, ncols >::update | ( | vnl_matrix< T > const & | m, |
| unsigned | top = 0, |
||
| unsigned | left = 0 |
||
| ) | const |
Set values of this matrix to those of M, starting at [top,left].
Definition at line 116 of file vnl_matrix_fixed_ref.hxx.
|
protectedinherited |
Definition at line 172 of file vnl_matrix_fixed_ref.h.
1.8.15