Modifications
IMS (Manchester) 16 Mar 2001: Tidied up the documentation + added binary_io
Feb.2002 - Peter Vanroose - brief doxygen comment placed on single line
Sep.2002 - Peter Vanroose - Added operator+, operator-, operator*
Mar.2004 - Peter Vanroose - removed deprecated resize()
Definition in file vnl_diag_matrix.h.
#include <vcl_cassert.h>
#include <vcl_iosfwd.h>
#include <vnl/vnl_vector.h>
#include <vnl/vnl_matrix.h>
Go to the source code of this file.
Classes | |
| class | vnl_diag_matrix< T > |
| stores a diagonal matrix as a single vector. More... | |
Functions | |
| template<class T> | |
| vnl_vector< T > | operator * (vnl_diag_matrix< T > const &D, vnl_vector< T > const &A) |
| Multiply a vnl_diag_matrix by a vnl_vector. n flops. | |
| template<class T> | |
| vcl_ostream & | operator<< (vcl_ostream &, vnl_diag_matrix< T > const &) |
| Print in MATLAB diag([1 2 3]) form. | |
| template<class T> | |
| vnl_diag_matrix< T > | operator * (vnl_diag_matrix< T > const &A, vnl_diag_matrix< T > const &B) |
| Multiply two vnl_diag_matrices. Just multiply the diag elements - n flops. | |
| template<class T> | |
| vnl_matrix< T > | operator * (vnl_matrix< T > const &A, vnl_diag_matrix< T > const &D) |
| Multiply a vnl_matrix by a vnl_diag_matrix. Just scales the columns - mn flops. | |
| template<class T> | |
| vnl_matrix< T > | operator * (vnl_diag_matrix< T > const &D, vnl_matrix< T > const &A) |
| Multiply a vnl_diag_matrix by a vnl_matrix. Just scales the rows - mn flops. | |
| template<class T> | |
| vnl_diag_matrix< T > | operator+ (vnl_diag_matrix< T > const &A, vnl_diag_matrix< T > const &B) |
| Add two vnl_diag_matrices. Just add the diag elements - n flops. | |
| template<class T> | |
| vnl_matrix< T > | operator+ (vnl_matrix< T > const &A, vnl_diag_matrix< T > const &D) |
| Add a vnl_diag_matrix to a vnl_matrix. n adds, mn copies. | |
| template<class T> | |
| vnl_matrix< T > | operator+ (vnl_diag_matrix< T > const &D, vnl_matrix< T > const &A) |
| Add a vnl_matrix to a vnl_diag_matrix. n adds, mn copies. | |
| template<class T> | |
| vnl_diag_matrix< T > | operator- (vnl_diag_matrix< T > const &A, vnl_diag_matrix< T > const &B) |
| Subtract two vnl_diag_matrices. Just subtract the diag elements - n flops. | |
| template<class T> | |
| vnl_matrix< T > | operator- (vnl_matrix< T > const &A, vnl_diag_matrix< T > const &D) |
| Subtract a vnl_diag_matrix from a vnl_matrix. n adds, mn copies. | |
| template<class T> | |
| vnl_matrix< T > | operator- (vnl_diag_matrix< T > const &D, vnl_matrix< T > const &A) |
| Subtract a vnl_matrix from a vnl_diag_matrix. n adds, mn copies. | |
| template<class T> | |
| vnl_vector< T > | operator * (vnl_vector< T > const &A, vnl_diag_matrix< T > const &D) |
| Multiply a vnl_vector by a vnl_diag_matrix. n flops. | |
| vnl_vector< T > operator * | ( | vnl_vector< T > const & | A, | |
| vnl_diag_matrix< T > const & | D | |||
| ) | [inline] |
Multiply a vnl_vector by a vnl_diag_matrix. n flops.
Definition at line 333 of file vnl_diag_matrix.h.
| vnl_matrix< T > operator * | ( | vnl_diag_matrix< T > const & | D, | |
| vnl_matrix< T > const & | A | |||
| ) | [inline] |
Multiply a vnl_diag_matrix by a vnl_matrix. Just scales the rows - mn flops.
Definition at line 224 of file vnl_diag_matrix.h.
| vnl_matrix< T > operator * | ( | vnl_matrix< T > const & | A, | |
| vnl_diag_matrix< T > const & | D | |||
| ) | [inline] |
Multiply a vnl_matrix by a vnl_diag_matrix. Just scales the columns - mn flops.
Definition at line 210 of file vnl_diag_matrix.h.
| vnl_diag_matrix< T > operator * | ( | vnl_diag_matrix< T > const & | A, | |
| vnl_diag_matrix< T > const & | B | |||
| ) | [inline] |
Multiply two vnl_diag_matrices. Just multiply the diag elements - n flops.
Definition at line 197 of file vnl_diag_matrix.h.
| vnl_vector< T > operator * | ( | vnl_diag_matrix< T > const & | , | |
| vnl_vector< T > const & | ||||
| ) | [inline] |
Multiply a vnl_diag_matrix by a vnl_vector. n flops.
Definition at line 323 of file vnl_diag_matrix.h.
| vnl_matrix< T > operator+ | ( | vnl_diag_matrix< T > const & | D, | |
| vnl_matrix< T > const & | A | |||
| ) | [inline] |
Add a vnl_matrix to a vnl_diag_matrix. n adds, mn copies.
Definition at line 266 of file vnl_diag_matrix.h.
| vnl_matrix< T > operator+ | ( | vnl_matrix< T > const & | A, | |
| vnl_diag_matrix< T > const & | D | |||
| ) | [inline] |
Add a vnl_diag_matrix to a vnl_matrix. n adds, mn copies.
Definition at line 251 of file vnl_diag_matrix.h.
| vnl_diag_matrix< T > operator+ | ( | vnl_diag_matrix< T > const & | A, | |
| vnl_diag_matrix< T > const & | B | |||
| ) | [inline] |
Add two vnl_diag_matrices. Just add the diag elements - n flops.
Definition at line 238 of file vnl_diag_matrix.h.
| vnl_matrix< T > operator- | ( | vnl_diag_matrix< T > const & | D, | |
| vnl_matrix< T > const & | A | |||
| ) | [inline] |
Subtract a vnl_matrix from a vnl_diag_matrix. n adds, mn copies.
Definition at line 302 of file vnl_diag_matrix.h.
| vnl_matrix< T > operator- | ( | vnl_matrix< T > const & | A, | |
| vnl_diag_matrix< T > const & | D | |||
| ) | [inline] |
Subtract a vnl_diag_matrix from a vnl_matrix. n adds, mn copies.
Definition at line 287 of file vnl_diag_matrix.h.
| vnl_diag_matrix< T > operator- | ( | vnl_diag_matrix< T > const & | A, | |
| vnl_diag_matrix< T > const & | B | |||
| ) | [inline] |
Subtract two vnl_diag_matrices. Just subtract the diag elements - n flops.
Definition at line 274 of file vnl_diag_matrix.h.
| vcl_ostream & operator<< | ( | vcl_ostream & | , | |
| vnl_diag_matrix< T > const & | ||||
| ) |
1.5.1