Matrix< Rows, Columns, T > Class Template Reference

Matrix is a column vector of row vectors. More...

#include <Matrix.h>

Inheritance diagram for Matrix< Rows, Columns, T >:
Vector< Rows, Vector< Columns, T > >

Public Member Functions

 Matrix ()
 Null constructor.
 
 Matrix (T s)
 Scalar constructor (identity times scalar)
 
template<typename U >
 Matrix (const Vector< Rows, Vector< Columns, U > > &s)
 Construct from another Vector of Vector<U> instance.
 
template<typename U >
Matrixoperator= (const Vector< Rows, Vector< Columns, U > > &s)
 Set this instance equal to another Matrix<U> instance.
 
void zero ()
 
- Public Member Functions inherited from Vector< Rows, Vector< Columns, T > >
 Vector ()
 Default constructor.
 
 Vector (Vector< Columns, T > x0)
 
 Vector (Vector< Columns, T > x0, Vector< Columns, T > x1)
 
 Vector (Vector< Columns, T > x0, Vector< Columns, T > x1, Vector< Columns, T > x2)
 
 Vector (Vector< Columns, T > x0, Vector< Columns, T > x1, Vector< Columns, T > x2, Vector< Columns, T > x3)
 
 Vector (const Vector< N, U > &s)
 Construct from another Vector<U> instance.
 
Vectoroperator= (const Vector< N, U > &s)
 Set this instance equal to another Vector<U> instance.
 
Vectoroperator= (const Vector< Columns, T > &scalar)
 Set this instance equal to a scalar.
 
Vectoroperator+= (const Vector &s)
 Vector addition.
 
Vectoroperator-= (const Vector &s)
 Vector subtraction.
 
Vectoroperator*= (const U &a)
 Scalar multiplication. More...
 
Vectoroperator/= (const U &a)
 Scalar division.
 
bool operator== (const Vector &b) const
 Equality.
 
bool operator!= (const Vector &b) const
 Inequality.
 
Vector< Columns, T > & operator[] (unsigned n)
 Access to elements.
 
const Vector< Columns, T > operator[] (unsigned n) const
 Alternative access to elements.
 
unsigned size () const
 Dimension of data.
 

Friends

const friend Matrix operator- (Matrix s)
 Negation.
 

Additional Inherited Members

- Static Public Member Functions inherited from Vector< Rows, Vector< Columns, T > >
static const Vector basis (unsigned i)
 Return the basis vector.
 
- Public Attributes inherited from Vector< Rows, Vector< Columns, T > >
Vector< Columns, T > x [N]
 

Detailed Description

template<unsigned Rows, unsigned Columns, typename T>
class Matrix< Rows, Columns, T >

Matrix is a column vector of row vectors.


The documentation for this class was generated from the following file:

Generated using doxygen 1.8.14