Classes | Functions | Variables
vnl_matrix.h File Reference

An ordinary mathematical matrix. More...

#include <iosfwd>
#include <vcl_compiler.h>
#include <vnl/vnl_tag.h>
#include <vnl/vnl_c_vector.h>
#include <vnl/vnl_config.h>
#include <vnl/vnl_error.h>
#include "vnl/vnl_export.h"

Go to the source code of this file.

Classes

class  vnl_vector< T >
 Mathematical vector class, templated by type of element. More...
 
class  vnl_matrix< T >
 An ordinary mathematical matrix. More...
 
class  vnl_matrix< T >
 An ordinary mathematical matrix. More...
 

Functions

template<class T >
VNL_EXPORT m operator+ (T const &, m const &)
 
template<class T >
VNL_EXPORT m operator- (T const &, m const &)
 
template<class T >
VNL_EXPORT m operator * (T const &, m const &)
 
template<class T >
VNL_EXPORT m element_product (m const &, m const &)
 
template<class T >
VNL_EXPORT m element_quotient (m const &, m const &)
 
template<class T >
VNL_EXPORT T dot_product (m const &, m const &)
 
template<class T >
VNL_EXPORT T inner_product (m const &, m const &)
 
template<class T >
VNL_EXPORT T cos_angle (m const &, m const &)
 
template<class T >
VNL_EXPORT std::ostream & operator<< (std::ostream &, m const &)
 
template<class T >
VNL_EXPORT std::istream & operator>> (std::istream &, m &)
 
template<class T >
vnl_matrix< T > operator * (T const &value, vnl_matrix< T > const &m)
 
template<class T >
vnl_matrix< T > operator+ (T const &value, vnl_matrix< T > const &m)
 
template<class T >
void swap (vnl_matrix< T > &A, vnl_matrix< T > &B)
 Swap two matrices. More...
 

Variables

enum VNL_EXPORT vnl_matrix_type
 
 vnl_matrix_null
 

Detailed Description

An ordinary mathematical matrix.

  Modifications
   Apr 21, 1989 - MBN - Initial design and implementation
   Jun 22, 1989 - MBN - Removed non-destructive methods
   Aug 09, 1989 - LGO - Inherit from Generic
   Aug 20, 1989 - MBN - Changed template usage to reflect new syntax
   Sep 11, 1989 - MBN - Added conditional exception handling and base class
   Oct 05, 1989 - LGO - Don't re-allocate data in operator= when same size
   Oct 19, 1989 - LGO - Add extra parameter to varargs constructor
   Oct 19, 1989 - MBN - Added optional argument to set_compare method
   Dec 08, 1989 - LGO - Allocate column data in one chunk
   Dec 08, 1989 - LGO - Clean-up get and put, add const everywhere.
   Dec 19, 1989 - LGO - Remove the map and reduce methods
   Feb 22, 1990 - MBN - Changed size arguments from int to unsigned int
   Jun 30, 1990 - MJF - Added base class name to constructor initializer
   Feb 21, 1992 - VDN - New lite version
   May 05, 1992 - VDN - Use envelope to avoid unnecessary copying
   Sep 30, 1992 - VDN - Matrix inversion with singular value decomposition
   Aug 21, 1996 - AWF - set_identity, normalize_rows, scale_row.
   Sep 30, 1996 - AWF - set_row/column methods. Const-correct data_block().
   14 Feb 1997  - AWF - get_n_rows, get_n_columns.
   20 Mar 1997  - PVR - get_row, get_column.
   24-Oct-2010 - Peter Vanroose - mutators and filling methods now return *this
   18-Jan-2011 - Peter Vanroose - added methods set_diagonal() & get_diagonal()

Definition in file vnl_matrix.h.

Function Documentation

◆ cos_angle()

template<class T >
VNL_EXPORT T cos_angle ( m const &  ,
m const &   
)

◆ dot_product()

template<class T >
VNL_EXPORT T dot_product ( m const &  ,
m const &   
)

◆ element_product()

template<class T >
VNL_EXPORT m element_product ( m const &  ,
m const &   
)

◆ element_quotient()

template<class T >
VNL_EXPORT m element_quotient ( m const &  ,
m const &   
)

◆ inner_product()

template<class T >
VNL_EXPORT T inner_product ( m const &  ,
m const &   
)

◆ operator *() [1/2]

template<class T >
VNL_EXPORT m operator * ( T const &  ,
m const &   
)

◆ operator *() [2/2]

template<class T >
vnl_matrix< T > operator * ( T const &  value,
vnl_matrix< T > const &  m 
)
inline

Definition at line 717 of file vnl_matrix.h.

◆ operator+() [1/2]

template<class T >
VNL_EXPORT m operator+ ( T const &  ,
m const &   
)

◆ operator+() [2/2]

template<class T >
vnl_matrix< T > operator+ ( T const &  value,
vnl_matrix< T > const &  m 
)
inline

Definition at line 725 of file vnl_matrix.h.

◆ operator-()

template<class T >
VNL_EXPORT m operator- ( T const &  ,
m const &   
)

◆ operator<<()

template<class T >
VNL_EXPORT std::ostream& operator<< ( std::ostream &  ,
m const &   
)

◆ operator>>()

template<class T >
VNL_EXPORT std::istream& operator>> ( std::istream &  ,
m  
)

◆ swap()

template<class T >
void swap ( vnl_matrix< T > &  A,
vnl_matrix< T > &  B 
)
inline

Swap two matrices.

Definition at line 733 of file vnl_matrix.h.

Variable Documentation

◆ vnl_matrix_null

vnl_matrix_null

Definition at line 82 of file vnl_matrix.h.

◆ vnl_matrix_type

enum VNL_EXPORT vnl_matrix_type

Definition at line 80 of file vnl_matrix.h.