Calculates the 3x3 skew symmetric cross product matrix from a vector. More...
#include <vnl_cross_product_matrix.h>

Public Types | |
| typedef vnl_double_3x3 | base |
| typedef vnl_matrix_fixed< T, num_rows, num_cols > | self |
| typedef size_t | size_type |
| typedef vnl_c_vector< T >::abs_t | abs_t |
| Type def for norms. More... | |
| typedef T | element_type |
| typedef T * | iterator |
| Iterators. More... | |
| typedef T const * | const_iterator |
| Const iterators. More... | |
Public Member Functions | |
| vnl_cross_product_matrix (vnl_vector_fixed< double, 3 > const &v) | |
| vnl_cross_product_matrix (vnl_vector< double > const &v) | |
| vnl_cross_product_matrix (const double *v) | |
| vnl_cross_product_matrix (vnl_cross_product_matrix const &that)=default | |
| ~vnl_cross_product_matrix ()=default | |
| vnl_cross_product_matrix & | operator= (const vnl_cross_product_matrix &that) |
| vnl_cross_product_matrix & | set (const double *v) |
| Construct a vnl_cross_product_matrix from a C-array of 3 doubles. More... | |
| unsigned int | size () const |
| Return the total number of elements stored by the matrix. More... | |
| unsigned int | rows () const |
| Return the number of rows. More... | |
| unsigned int | cols () const |
| Return the number of columns. More... | |
| unsigned int | columns () const |
| Return the number of columns. More... | |
| void | put (unsigned r, unsigned c, T const &v) |
| set element. More... | |
| T | get (unsigned r, unsigned c) const |
| get element. More... | |
| vnl_matrix_fixed & | set (unsigned r, unsigned c, T const &v) |
| set element, and return *this. More... | |
| vnl_matrix_fixed & | set (T const *d) |
| Fills (laminates) this matrix with the given data, then returns it. More... | |
| T * | operator[] (unsigned r) |
| return pointer to given row. More... | |
| T const * | operator[] (unsigned r) const |
| return pointer to given row. More... | |
| T & | operator() (unsigned r, unsigned c) |
| Access an element for reading or writing. More... | |
| T const & | operator() (unsigned r, unsigned c) const |
| Access an element for reading. More... | |
| vnl_matrix_fixed & | fill (T) |
| Sets all elements of matrix to specified value, and returns "*this". More... | |
| vnl_matrix_fixed & | fill_diagonal (T) |
| Sets all diagonal elements of matrix to specified value; returns "*this". More... | |
| vnl_matrix_fixed & | set_diagonal (vnl_vector< T > const &) |
| Sets the diagonal elements of this matrix to the specified list of values. More... | |
| vnl_matrix_fixed & | copy_in (T const *) |
| Fills (laminates) this matrix with the given data, then returns it. More... | |
| void | copy_out (T *) const |
| Fills the given array with this matrix. More... | |
| vnl_matrix_fixed & | inplace_transpose () |
| Transposes this matrix efficiently, if it is square, and returns it. More... | |
| vnl_matrix_fixed & | operator+= (T s) |
| Add s to each element of lhs matrix in situ. More... | |
| vnl_matrix_fixed & | operator+= (vnl_matrix_fixed const &m) |
| vnl_matrix_fixed & | operator+= (vnl_matrix< T > const &m) |
| vnl_matrix_fixed & | operator-= (T s) |
| Subtract s from each element of lhs matrix in situ. More... | |
| vnl_matrix_fixed & | operator-= (vnl_matrix_fixed const &m) |
| vnl_matrix_fixed & | operator-= (vnl_matrix< T > const &m) |
| vnl_matrix_fixed & | operator *= (T s) |
| vnl_matrix_fixed & | operator *= (vnl_matrix_fixed< T, num_cols, num_cols > const &s) |
| vnl_matrix_fixed & | operator/= (T s) |
| vnl_matrix_fixed | operator- () const |
| Negate all elements of matrix. More... | |
| vnl_matrix_fixed | apply (T(*f)(T)) const |
| Make a new matrix by applying function to each element. More... | |
| vnl_matrix_fixed | apply (T(*f)(T const &)) const |
| Make a new matrix by applying function to each element. More... | |
| vnl_vector_fixed< T, num_rows > | apply_rowwise (T(*f)(vnl_vector_fixed< T, num_cols > const &)) const |
| Make a vector by applying a function across rows. More... | |
| vnl_vector_fixed< T, num_cols > | apply_columnwise (T(*f)(vnl_vector_fixed< T, num_rows > const &)) const |
| Make a vector by applying a function across columns. 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_fixed & | update (vnl_matrix< T > const &, unsigned top=0, unsigned left=0) |
| Set values of this matrix to those of M, starting at [top,left]. More... | |
| vnl_matrix_fixed & | set_column (unsigned i, T const *v) |
| Set the elements of the i'th column to v[i] (No bounds checking). More... | |
| vnl_matrix_fixed & | set_column (unsigned i, T value) |
| Set the elements of the i'th column to value, then return *this. More... | |
| vnl_matrix_fixed & | set_column (unsigned j, vnl_vector< T > const &v) |
| Set j-th column to v, then return *this. More... | |
| vnl_matrix_fixed & | set_column (unsigned j, vnl_vector_fixed< T, num_rows > const &v) |
| Set j-th column to v, then return *this. More... | |
| vnl_matrix_fixed & | set_columns (unsigned starting_column, vnl_matrix< T > const &M) |
| Set columns to those in M, starting at starting_column, then return *this. More... | |
| vnl_matrix_fixed & | set_row (unsigned i, T const *v) |
| Set the elements of the i'th row to v[i] (No bounds checking). More... | |
| vnl_matrix_fixed & | set_row (unsigned i, T value) |
| Set the elements of the i'th row to value, then return *this. More... | |
| vnl_matrix_fixed & | set_row (unsigned i, vnl_vector< T > const &) |
| Set the i-th row, then return *this. More... | |
| vnl_matrix_fixed & | set_row (unsigned i, vnl_vector_fixed< T, num_cols > const &) |
| Set the i-th row, then return *this. More... | |
| vnl_matrix< T > | extract (unsigned r, unsigned c, unsigned top=0, unsigned left=0) const |
| Extract a sub-matrix of size r x c, starting at (top,left). More... | |
| void | extract (vnl_matrix< T > &sub_matrix, unsigned top=0, unsigned left=0) const |
| Extract a sub-matrix starting at (top,left). More... | |
| vnl_vector_fixed< T, num_cols > | get_row (unsigned row) const |
| Get a vector equal to the given row. More... | |
| vnl_vector_fixed< T, num_rows > | get_column (unsigned col) const |
| Get a vector equal to the given column. More... | |
| vnl_matrix< T > | get_rows (vnl_vector< unsigned int > i) const |
| Get a matrix composed of rows from the indices specified in the supplied vector. More... | |
| vnl_matrix< T > | get_columns (vnl_vector< unsigned int > i) const |
| Get a matrix composed of columns from the indices specified in the supplied vector. 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... | |
| vnl_vector< T > | get_diagonal () const |
| Return a vector with the content of the (main) diagonal. More... | |
| vnl_vector_fixed< T, num_rows *num_cols > | flatten_row_major () const |
| Flatten row-major (C-style). More... | |
| vnl_vector_fixed< T, num_rows *num_cols > | flatten_column_major () const |
| Flatten column-major (Fortran-style). More... | |
| vnl_matrix_fixed & | set_identity () |
| Sets this matrix to an identity matrix, then returns "*this". More... | |
| vnl_matrix_fixed & | flipud () |
| Reverses the order of rows, and returns "*this". More... | |
| vnl_matrix_fixed & | fliplr () |
| Reverses the order of columns, and returns "*this". More... | |
| vnl_matrix_fixed & | normalize_rows () |
| Normalizes each row so it is a unit vector, and returns "*this". More... | |
| vnl_matrix_fixed & | normalize_columns () |
| Normalizes each column so it is a unit vector, and returns "*this". More... | |
| vnl_matrix_fixed & | scale_row (unsigned row, T value) |
| Scales elements in given row by a factor T, and returns "*this". More... | |
| vnl_matrix_fixed & | scale_column (unsigned col, T value) |
| Scales elements in given column by a factor T, and returns "*this". More... | |
| void | swap (vnl_matrix_fixed< T, num_rows, num_cols > &that) |
| Swap this matrix with that matrix. 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_equal (vnl_matrix_fixed< T, num_rows, num_cols > const &rhs, double tol) const |
| Return true if all elements of both matrices are equal, 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 VXL_USED_IN_DEBUG(nr_rows), unsigned VXL_USED_IN_DEBUG(nr_cols)) const |
| abort if size is not as expected. More... | |
| void | assert_finite () const |
| abort if matrix contains any INFs or NANs. More... | |
| bool | read_ascii (std::istream &s) |
| T const * | data_block () const |
| Access the contiguous block storing the elements in the matrix row-wise. O(1). More... | |
| T * | data_block () |
| Access the contiguous block storing the elements in the matrix row-wise. O(1). More... | |
| 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 () |
| Iterator pointing to start of data. More... | |
| const_iterator | begin () const |
| Iterator pointing to start of data. More... | |
| iterator | end () |
| Iterator pointing to element beyond end of data. More... | |
| const_iterator | end () const |
| Iterator pointing to element beyond end of data. More... | |
| bool | operator_eq (vnl_matrix_fixed const &rhs) const |
| Return true if *this == rhs. More... | |
| bool | operator== (vnl_matrix_fixed const &that) const |
| Equality operator. More... | |
| bool | operator== (vnl_matrix< T > const &that) const |
| Equality operator. More... | |
| bool | operator!= (vnl_matrix_fixed const &that) const |
| Inequality operator. More... | |
| bool | operator!= (vnl_matrix< T > const &that) const |
| Inequality operator. More... | |
| void | print (std::ostream &os) const |
| Print matrix to os in some hopefully sensible format. 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) |
Related Functions | |
(Note that these are not member functions.) | |
| template<class T , unsigned m, unsigned n> | |
| T | vnl_determinant (vnl_matrix_fixed< T, m, n > const &M, bool balance=false) |
| evaluation using direct methods for sizes of 2x2, 3x3, and 4x4 or qr decomposition for other matrices. More... | |
| template<class T , unsigned m, unsigned n> | |
| void | vsl_b_write (vsl_b_ostream &os, const vnl_matrix_fixed< T, m, n > &v) |
| Binary save vnl_matrix_fixed to stream. More... | |
| template<class T , unsigned m, unsigned n> | |
| void | vsl_b_read (vsl_b_istream &is, vnl_matrix_fixed< T, m, n > &v) |
| Binary load vnl_matrix_fixed from stream. More... | |
| template<class T , unsigned m, unsigned n> | |
| void | vsl_print_summary (std::ostream &os, const vnl_matrix_fixed< T, m, n > &b) |
| Print human readable summary of object to a stream. More... | |
| template<class T , unsigned int r, unsigned int c> | |
| VNL_EXPORT vnl_matrix_fixed< std::complex< T >, r, c > | vnl_complexify (vnl_matrix_fixed< T, r, c > const &R) |
| Return complexified version of real fixed matrix R. More... | |
| template<class T , unsigned int r, unsigned int c> | |
| vnl_matrix_fixed< std::complex< T >, r, c > | vnl_complexify (vnl_matrix_fixed< T, r, c > const &R, vnl_matrix_fixed< T, r, c > const &I) |
| Return complex fixed matrix R+j*I from two real fixed matrices R and I. More... | |
| template<class T , unsigned int n> | |
| vnl_diag_matrix_fixed< std::complex< T >, n > | vnl_complexify (vnl_diag_matrix_fixed< T, n > const &R, vnl_diag_matrix_fixed< T, n > const &I) |
| Return complex fixed diagonal matrix R+j*I from two real fixed diagonal matrices R and I. More... | |
| template<class T > | |
| T | vnl_det (vnl_matrix_fixed< T, 1, 1 > const &m) |
| Determinant of small size matrices. More... | |
| template<class T > | |
| T | vnl_det (vnl_matrix_fixed< T, 2, 2 > const &m) |
| Determinant of small size matrices. More... | |
| template<class T > | |
| T | vnl_det (vnl_matrix_fixed< T, 3, 3 > const &m) |
| Determinant of small size matrices. More... | |
| template<class T > | |
| T | vnl_det (vnl_matrix_fixed< T, 4, 4 > const &m) |
| Determinant of small size matrices. More... | |
| template<class T , unsigned int NRow, unsigned int NCol> | |
| vnl_matrix_fixed< T, NRow, NCol > | vnl_imag (vnl_matrix_fixed< std::complex< T >, NRow, NCol > const &C) |
| Matrix of imaginary parts of vnl_matrix_fixed<std::complex<T>,NRow,NCol >. More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 1, 1 > | vnl_inverse (vnl_matrix_fixed< T, 1, 1 > const &m) |
| Calculates inverse of a small vnl_matrix_fixed (not using svd). More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 2, 2 > | vnl_inverse (vnl_matrix_fixed< T, 2, 2 > const &m) |
| Calculates inverse of a small vnl_matrix_fixed (not using svd). More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 3, 3 > | vnl_inverse (vnl_matrix_fixed< T, 3, 3 > const &m) |
| Calculates inverse of a small vnl_matrix_fixed (not using svd). More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 4, 4 > | vnl_inverse (vnl_matrix_fixed< T, 4, 4 > const &m) |
| Calculates inverse of a small vnl_matrix_fixed (not using svd). More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 1, 1 > | vnl_inverse_transpose (vnl_matrix_fixed< T, 1, 1 > const &m) |
| Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd). More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 2, 2 > | vnl_inverse_transpose (vnl_matrix_fixed< T, 2, 2 > const &m) |
| Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd). More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 3, 3 > | vnl_inverse_transpose (vnl_matrix_fixed< T, 3, 3 > const &m) |
| Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd). More... | |
| template<class T > | |
| vnl_matrix_fixed< T, 4, 4 > | vnl_inverse_transpose (vnl_matrix_fixed< T, 4, 4 > const &m) |
| Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd). More... | |
| vnl_double_3 | operator * (const vnl_double_3x3 &A, const vnl_double_3 &x) |
| The binary multiplication operator. More... | |
| template<class T , unsigned M, unsigned N> | |
| vnl_vector_fixed< T, M > | operator * (const vnl_matrix_fixed< T, M, N > &a, const vnl_vector_fixed< T, N > &b) |
| Multiply conformant vnl_matrix_fixed (M x N) and vector_fixed (N). More... | |
| template<class T , unsigned M, unsigned N> | |
| vnl_vector_fixed< T, N > | operator * (const vnl_vector_fixed< T, M > &a, const vnl_matrix_fixed< T, M, N > &b) |
| Multiply conformant vector_fixed (M) and vnl_matrix_fixed (M x N). More... | |
| template<class T , unsigned M, unsigned N, unsigned O> | |
| vnl_matrix_fixed< T, M, O > | operator * (const vnl_matrix_fixed< T, M, N > &a, const vnl_matrix_fixed< T, N, O > &b) |
| Multiply two conformant vnl_matrix_fixed (M x N) times (N x O). More... | |
| template<class T , unsigned M, unsigned N> | |
| vnl_vector_fixed< T, M > | operator * (const vnl_matrix_fixed_ref_const< T, M, N > &a, const vnl_vector_fixed_ref_const< T, N > &b) |
| Multiply conformant vnl_matrix_fixed (M x N) and vector_fixed (N). More... | |
| template<class T , unsigned M, unsigned N, unsigned O> | |
| vnl_matrix_fixed< T, M, O > | operator * (const vnl_matrix_fixed_ref_const< T, M, N > &a, const vnl_matrix_fixed_ref_const< T, N, O > &b) |
| Multiply two conformant vnl_matrix_fixed (M x N) times (N x O). More... | |
| template<class T , unsigned int n, unsigned int m> | |
| VNL_EXPORT std::ostream & | vnl_matlab_print (std::ostream &, vnl_matrix_fixed< T, n, m > const &, char const *variable_name=nullptr, vnl_matlab_print_format=vnl_matlab_print_format_default) |
| print a vnl_matrix_fixed<T>. More... | |
| template<class SquareMatrix > | |
| VNL_EXPORT bool | vnl_matrix_exp (SquareMatrix const &X, SquareMatrix &expX, double max_err) |
| Compute the exponential of a square matrix - fiddly form. More... | |
| template<class SquareMatrix > | |
| VNL_EXPORT SquareMatrix | vnl_matrix_exp (SquareMatrix const &X) |
| Compute the exponential of a square matrix - easy form. More... | |
| template<class T , unsigned int n, unsigned int m> | |
| VNL_EXPORT bool | operator< (vnl_matrix_fixed< T, n, m > const &lhs, vnl_matrix_fixed< T, n, m > const &rhs) |
| Define a complete ordering on vnl_matrix_fixed. More... | |
| template<class T , unsigned int d> | |
| vnl_matrix_fixed< T, d, d > | vnl_power (vnl_matrix_fixed< T, d, d > const &m, int n) |
| Calculates nth power of a vnl_matrix_fixed (not using svd). More... | |
| template<class T , unsigned int NRow, unsigned int NCol> | |
| vnl_matrix_fixed< T, NRow, NCol > | vnl_real (vnl_matrix_fixed< std::complex< T >, NRow, NCol > const &C) |
| Matrix of real parts of vnl_matrix_fixed<std::complex<T>,NRow,NCol >. More... | |
| VNL_EXPORT vnl_matrix_fixed< double, 3, 3 > | vnl_rotation_matrix (vnl_vector_fixed< double, 3 > const &axis) |
| Returns an orthogonal 3x3 matrix which is a rotation about the axis, by an angle equal to ||axis||. More... | |
| template<class T , unsigned int N1, unsigned int N2> | |
| T | vnl_trace (vnl_matrix_fixed< T, N1, N2 > const &M) |
| Calculate trace of a matrix. More... | |
| template<class T , unsigned m, unsigned n> | |
| void | x_write (std::ostream &os, vnl_matrix_fixed< T, m, n > const &v, std::string name="vnl_matrix_fixed") |
| XML save vnl_matrix_fixed to stream. More... | |
| template<class T , unsigned m, unsigned n> | |
| void | x_write_tree (std::ostream &os, vnl_matrix_fixed< T, m, n > const &v, std::string name="vnl_matrix_fixed") |
| XML save vnl_matrix_fixed as a 3-level tree to stream. More... | |
Calculates the 3x3 skew symmetric cross product matrix from a vector.
vnl_cross_product_matrix(e) is the matrix [e]_ x:
0 -e_3 e_2
e_3 0 -e_1
-e_2 e_1 0
Definition at line 30 of file vnl_cross_product_matrix.h.
|
inherited |
Type def for norms.
Definition at line 542 of file vnl_matrix_fixed.h.
Definition at line 33 of file vnl_cross_product_matrix.h.
|
inherited |
Const iterators.
Definition at line 692 of file vnl_matrix_fixed.h.
|
inherited |
Definition at line 682 of file vnl_matrix_fixed.h.
|
inherited |
Iterators.
Definition at line 685 of file vnl_matrix_fixed.h.
|
inherited |
Definition at line 108 of file vnl_matrix_fixed.h.
|
inherited |
Definition at line 109 of file vnl_matrix_fixed.h.
|
inline |
Definition at line 35 of file vnl_cross_product_matrix.h.
|
inline |
Definition at line 36 of file vnl_cross_product_matrix.h.
|
inline |
Definition at line 37 of file vnl_cross_product_matrix.h.
|
default |
|
default |
|
inlineinherited |
Return largest absolute value.
Definition at line 557 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return sum of absolute values of elements.
Definition at line 554 of file vnl_matrix_fixed.h.
|
staticinherited |
Definition at line 61 of file vnl_matrix_fixed.hxx.
|
staticinherited |
Definition at line 71 of file vnl_matrix_fixed.hxx.
|
inherited |
Make a new matrix by applying function to each element.
Definition at line 216 of file vnl_matrix_fixed.hxx.
|
inherited |
Make a new matrix by applying function to each element.
Definition at line 206 of file vnl_matrix_fixed.hxx.
|
inherited |
Make a vector by applying a function across columns.
Definition at line 239 of file vnl_matrix_fixed.hxx.
|
inherited |
Make a vector by applying a function across rows.
Definition at line 227 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Return location of maximum value of elements.
Definition at line 584 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return location of minimum value of elements.
Definition at line 581 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return largest absolute element value.
Definition at line 551 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return sum of absolute values of elements.
Definition at line 545 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return square root of sum of squared absolute element values.
Definition at line 548 of file vnl_matrix_fixed.h.
|
inlineinherited |
Convert to a vnl_matrix.
Definition at line 678 of file vnl_matrix_fixed.h.
|
inlineinherited |
Explicit conversion to a vnl_matrix_ref.
This is a cheap conversion for those functions that have an interface for vnl_matrix but not for vnl_matrix_fixed. There is also a conversion operator that should work most of the time.
Definition at line 662 of file vnl_matrix_fixed.h.
|
inlineinherited |
Explicit conversion to a vnl_matrix_ref.
This is a cheap conversion for those functions that have an interface for vnl_matrix but not for vnl_matrix_fixed. There is also a conversion operator that should work most of the time.
Definition at line 669 of file vnl_matrix_fixed.h.
|
inlineinherited |
abort if matrix contains any INFs or NANs.
This function does or tests nothing if NDEBUG is defined
Definition at line 626 of file vnl_matrix_fixed.h.
|
inlineinherited |
abort if size is not as expected.
This function does or tests nothing if NDEBUG is defined
Definition at line 617 of file vnl_matrix_fixed.h.
|
inlineinherited |
Iterator pointing to start of data.
Definition at line 687 of file vnl_matrix_fixed.h.
|
inlineinherited |
Iterator pointing to start of data.
Definition at line 694 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return the number of columns.
A synonym for columns().
Definition at line 177 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return the number of columns.
A synonym for cols().
Definition at line 181 of file vnl_matrix_fixed.h.
|
inherited |
Return conjugate transpose.
Definition at line 263 of file vnl_matrix_fixed.hxx.
|
inherited |
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 324 of file vnl_matrix_fixed.hxx.
|
inherited |
Fills the given array with this matrix.
We assume that the argument points to a contiguous rows*cols array, stored rowwise. No bounds checking on the array.
Definition at line 332 of file vnl_matrix_fixed.hxx.
|
inherited |
Access the contiguous block storing the elements in the matrix row-wise. O(1).
1d array, row-major order.
Definition at line 889 of file vnl_matrix_fixed.hxx.
|
inherited |
Access the contiguous block storing the elements in the matrix row-wise. O(1).
1d array, row-major order.
Definition at line 896 of file vnl_matrix_fixed.hxx.
|
staticinherited |
Definition at line 125 of file vnl_matrix_fixed.hxx.
|
staticinherited |
Definition at line 134 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Return true iff the size is zero.
Definition at line 592 of file vnl_matrix_fixed.h.
|
inlineinherited |
Iterator pointing to element beyond end of data.
Definition at line 689 of file vnl_matrix_fixed.h.
|
inlineinherited |
Iterator pointing to element beyond end of data.
Definition at line 696 of file vnl_matrix_fixed.h.
|
staticinherited |
Definition at line 143 of file vnl_matrix_fixed.hxx.
|
inherited |
Extract a sub-matrix of size r x c, starting at (top,left).
Thus it contains elements [top,top+r-1][left,left+c-1]
Definition at line 293 of file vnl_matrix_fixed.hxx.
|
inherited |
Extract a sub-matrix starting at (top,left).
The output is stored in sub_matrix, and it should have the required size on entry. Thus the result will contain elements [top,top+sub_matrix.rows()-1][left,left+sub_matrix.cols()-1]
Definition at line 304 of file vnl_matrix_fixed.hxx.
|
inherited |
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 156 of file vnl_matrix_fixed.hxx.
|
inherited |
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 167 of file vnl_matrix_fixed.hxx.
|
inherited |
Flatten column-major (Fortran-style).
Definition at line 548 of file vnl_matrix_fixed.hxx.
|
inherited |
Flatten row-major (C-style).
Definition at line 539 of file vnl_matrix_fixed.hxx.
|
inherited |
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 826 of file vnl_matrix_fixed.hxx.
|
inherited |
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 810 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Return Frobenius norm of matrix (sqrt of sum of squares of its elements).
Definition at line 569 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return Frobenius norm of matrix (sqrt of sum of squares of its elements).
Definition at line 566 of file vnl_matrix_fixed.h.
|
inlineinherited |
get element.
Definition at line 196 of file vnl_matrix_fixed.h.
|
inherited |
Get a vector equal to the given column.
Create a vector out of column[column_index].
Definition at line 490 of file vnl_matrix_fixed.hxx.
|
inherited |
Get a matrix composed of columns from the indices specified in the supplied vector.
Create a vector out of column[column_index].
Definition at line 519 of file vnl_matrix_fixed.hxx.
|
inherited |
Return a vector with the content of the (main) diagonal.
Definition at line 529 of file vnl_matrix_fixed.hxx.
|
inherited |
Get n columns beginning at colstart.
Definition at line 459 of file vnl_matrix_fixed.hxx.
|
inherited |
Get n rows beginning at rowstart.
Returns a copy of n rows, starting from "row".
Definition at line 446 of file vnl_matrix_fixed.hxx.
|
inherited |
Get a vector equal to the given row.
Create a vector out of row[row_index].
Definition at line 475 of file vnl_matrix_fixed.hxx.
|
inherited |
Get a matrix composed of rows from the indices specified in the supplied vector.
Create a vector out of row[row_index].
Definition at line 507 of file vnl_matrix_fixed.hxx.
|
inherited |
Return true if matrix contains NaNs.
Definition at line 727 of file vnl_matrix_fixed.hxx.
|
inherited |
Transposes this matrix efficiently, if it is square, and returns it.
Transpose square matrix M in place.
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 874 of file vnl_matrix_fixed.hxx.
|
inherited |
Return true if all elements of both matrices are equal, within given tolerance.
Definition at line 697 of file vnl_matrix_fixed.hxx.
|
inherited |
Return true if finite.
Definition at line 739 of file vnl_matrix_fixed.hxx.
|
inherited |
Return true if all elements equal to identity.
Definition at line 651 of file vnl_matrix_fixed.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 668 of file vnl_matrix_fixed.hxx.
|
inherited |
Return true if all elements equal to zero.
Definition at line 684 of file vnl_matrix_fixed.hxx.
|
inherited |
Return true if all elements equal to zero, within given tolerance.
Definition at line 715 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Return maximum value of elements.
Definition at line 578 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return mean of all matrix elements.
Definition at line 587 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return minimum value of elements.
Definition at line 575 of file vnl_matrix_fixed.h.
|
staticinherited |
Definition at line 107 of file vnl_matrix_fixed.hxx.
|
staticinherited |
Definition at line 116 of file vnl_matrix_fixed.hxx.
|
inherited |
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 381 of file vnl_matrix_fixed.hxx.
|
inherited |
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 356 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Definition at line 311 of file vnl_matrix_fixed.h.
|
inlineinherited |
Definition at line 358 of file vnl_matrix_fixed.h.
|
inlineinherited |
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 675 of file vnl_matrix_fixed.h.
|
inlineinherited |
Inequality operator.
Definition at line 710 of file vnl_matrix_fixed.h.
|
inlineinherited |
Inequality operator.
Definition at line 716 of file vnl_matrix_fixed.h.
|
inherited |
Access an element for reading or writing.
There are assert style boundary checks - #define NDEBUG to turn them off.
Definition at line 39 of file vnl_matrix_fixed.hxx.
|
inherited |
Access an element for reading.
There are assert style boundary checks - #define NDEBUG to turn them off.
Definition at line 50 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Add s to each element of lhs matrix in situ.
Definition at line 299 of file vnl_matrix_fixed.h.
|
inlineinherited |
Definition at line 323 of file vnl_matrix_fixed.h.
|
inlineinherited |
Definition at line 329 of file vnl_matrix_fixed.h.
|
inlineinherited |
Negate all elements of matrix.
Definition at line 350 of file vnl_matrix_fixed.h.
|
inlineinherited |
Subtract s from each element of lhs matrix in situ.
Definition at line 305 of file vnl_matrix_fixed.h.
|
inlineinherited |
Definition at line 336 of file vnl_matrix_fixed.h.
|
inlineinherited |
Definition at line 342 of file vnl_matrix_fixed.h.
|
inlineinherited |
Definition at line 317 of file vnl_matrix_fixed.h.
|
inline |
Definition at line 41 of file vnl_cross_product_matrix.h.
|
inlineinherited |
Equality operator.
Definition at line 707 of file vnl_matrix_fixed.h.
|
inlineinherited |
Equality operator.
Definition at line 713 of file vnl_matrix_fixed.h.
|
inlineinherited |
return pointer to given row.
No boundary checking here.
Definition at line 212 of file vnl_matrix_fixed.h.
|
inlineinherited |
return pointer to given row.
No boundary checking here.
Definition at line 216 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return true if *this == rhs.
Definition at line 701 of file vnl_matrix_fixed.h.
|
inherited |
Definition at line 857 of file vnl_matrix_fixed.hxx.
|
inherited |
Definition at line 841 of file vnl_matrix_fixed.hxx.
|
inherited |
Print matrix to os in some hopefully sensible format.
Definition at line 191 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
set element.
Definition at line 184 of file vnl_matrix_fixed.h.
|
inherited |
Definition at line 792 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Return RMS of all elements.
Definition at line 572 of file vnl_matrix_fixed.h.
|
inlineinherited |
Return the number of rows.
Definition at line 173 of file vnl_matrix_fixed.h.
|
inherited |
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 418 of file vnl_matrix_fixed.hxx.
|
inherited |
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 405 of file vnl_matrix_fixed.hxx.
|
inline |
Construct a vnl_cross_product_matrix from a C-array of 3 doubles.
Overrides a method in vnl_matrix.
Definition at line 48 of file vnl_cross_product_matrix.h.
|
inlineinherited |
set element, and return *this.
Definition at line 208 of file vnl_matrix_fixed.h.
|
inlineinherited |
Fills (laminates) this matrix with the given data, then returns it.
A synonym for copy_in()
Definition at line 279 of file vnl_matrix_fixed.h.
|
inherited |
Set the elements of the i'th column to v[i] (No bounds checking).
Definition at line 601 of file vnl_matrix_fixed.hxx.
|
inherited |
Set the elements of the i'th column to value, then return *this.
Definition at line 630 of file vnl_matrix_fixed.hxx.
|
inherited |
Set j-th column to v, then return *this.
Definition at line 610 of file vnl_matrix_fixed.hxx.
|
inherited |
Set j-th column to v, then return *this.
Definition at line 622 of file vnl_matrix_fixed.hxx.
|
inherited |
Set columns to those in M, starting at starting_column, then return *this.
Definition at line 640 of file vnl_matrix_fixed.hxx.
|
inherited |
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 177 of file vnl_matrix_fixed.hxx.
|
inherited |
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 340 of file vnl_matrix_fixed.hxx.
|
inherited |
Set the elements of the i'th row to v[i] (No bounds checking).
Definition at line 561 of file vnl_matrix_fixed.hxx.
|
inherited |
Set the elements of the i'th row to value, then return *this.
Definition at line 590 of file vnl_matrix_fixed.hxx.
|
inherited |
Set the i-th row, then return *this.
Definition at line 570 of file vnl_matrix_fixed.hxx.
|
inherited |
Set the i-th row, then return *this.
Definition at line 582 of file vnl_matrix_fixed.hxx.
|
inlineinherited |
Return the total number of elements stored by the matrix.
Definition at line 170 of file vnl_matrix_fixed.h.
|
staticinherited |
Definition at line 80 of file vnl_matrix_fixed.hxx.
|
staticinherited |
Definition at line 89 of file vnl_matrix_fixed.hxx.
|
staticinherited |
Definition at line 98 of file vnl_matrix_fixed.hxx.
|
inherited |
Swap this matrix with that matrix.
Definition at line 432 of file vnl_matrix_fixed.hxx.
|
inherited |
Return transpose.
Definition at line 252 of file vnl_matrix_fixed.hxx.
|
inherited |
Set values of this matrix to those of M, starting at [top,left].
Definition at line 274 of file vnl_matrix_fixed.hxx.
|
related |
The binary multiplication operator.
Definition at line 25 of file vnl_linear_operators_3.h.
|
related |
Multiply conformant vnl_matrix_fixed (M x N) and vector_fixed (N).
Definition at line 919 of file vnl_matrix_fixed_ref.h.
|
related |
Multiply conformant vnl_matrix_fixed (M x N) and vector_fixed (N).
Definition at line 922 of file vnl_matrix_fixed.h.
|
related |
Multiply two conformant vnl_matrix_fixed (M x N) times (N x O).
Definition at line 928 of file vnl_matrix_fixed_ref.h.
|
related |
Multiply conformant vector_fixed (M) and vnl_matrix_fixed (M x N).
Definition at line 932 of file vnl_matrix_fixed.h.
|
related |
Multiply two conformant vnl_matrix_fixed (M x N) times (N x O).
Definition at line 941 of file vnl_matrix_fixed.h.
|
related |
Define a complete ordering on vnl_matrix_fixed.
This is useful to create a set, or map of matrices.
Definition at line 82 of file vnl_operators.h.
|
related |
Return complexified version of real fixed matrix R.
|
related |
Return complex fixed matrix R+j*I from two real fixed matrices R and I.
Definition at line 149 of file vnl_complexify.h.
|
related |
Return complex fixed diagonal matrix R+j*I from two real fixed diagonal matrices R and I.
Definition at line 166 of file vnl_complexify.h.
|
related |
|
related |
|
related |
|
related |
|
related |
evaluation using direct methods for sizes of 2x2, 3x3, and 4x4 or qr decomposition for other matrices.
convenience overload from vnl_matrix<T> variant
Definition at line 55 of file vnl_determinant.h.
|
related |
Matrix of imaginary parts of vnl_matrix_fixed<std::complex<T>,NRow,NCol >.
Definition at line 69 of file vnl_imag.h.
|
related |
Calculates inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd.
Definition at line 39 of file vnl_inverse.h.
|
related |
Calculates inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd.
Definition at line 56 of file vnl_inverse.h.
|
related |
Calculates inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd.
Definition at line 82 of file vnl_inverse.h.
|
related |
Calculates inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd.
Definition at line 115 of file vnl_inverse.h.
|
related |
Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse_transpose(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd. This is also faster than using
x = vnl_inverse(A).transpose() * b;
Definition at line 199 of file vnl_inverse.h.
|
related |
Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse_transpose(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd. This is also faster than using
x = vnl_inverse(A).transpose() * b;
Definition at line 218 of file vnl_inverse.h.
|
related |
Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse_transpose(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd. This is also faster than using
x = vnl_inverse(A).transpose() * b;
Definition at line 246 of file vnl_inverse.h.
|
related |
Calculates transpose of the inverse of a small vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_inverse_transpose(A) * b;
Note that this function is inlined (except for the call to vnl_det()), which makes it much faster than the vnl_matrix_inverse class in vnl/algo since that one is using svd. This is also faster than using
x = vnl_inverse(A).transpose() * b;
Definition at line 281 of file vnl_inverse.h.
|
related |
print a vnl_matrix_fixed<T>.
|
related |
Compute the exponential of a square matrix - fiddly form.
|
related |
Compute the exponential of a square matrix - easy form.
|
related |
Calculates nth power of a vnl_matrix_fixed (not using svd).
This allows you to write e.g.
x = vnl_power(A,7) * vnl_power(B,-4) * b;
Note that this function is inlined (except for the call to vnl_inverse()), which makes it much faster than a full-fledged square matrix power implementation using svd, which belongs in vnl/algo.
Definition at line 36 of file vnl_power.h.
|
related |
Matrix of real parts of vnl_matrix_fixed<std::complex<T>,NRow,NCol >.
Definition at line 69 of file vnl_real.h.
|
related |
Returns an orthogonal 3x3 matrix which is a rotation about the axis, by an angle equal to ||axis||.
Definition at line 57 of file vnl_rotation_matrix.cxx.
|
related |
Calculate trace of a matrix.
Definition at line 34 of file vnl_trace.h.
|
related |
Binary load vnl_matrix_fixed from stream.
|
related |
Binary save vnl_matrix_fixed to stream.
|
related |
Print human readable summary of object to a stream.
|
related |
XML save vnl_matrix_fixed to stream.
|
related |
XML save vnl_matrix_fixed as a 3-level tree to stream.
1.8.15