# C:/programs/SCPPNT/src/include/cmat.h File Reference

Definition of a simple concrete dense matrix class. More...

#include "scppnt/scppnt.h"
#include "scppnt/slice_pointer.h"
#include "scppnt/scppnt_error.h"
#include "scppnt/matop.h"
#include "scppnt/vec.h"
#include <string>
#include <iostream>
#include <strstream>

Include dependency graph for cmat.h:

Go to the source code of this file.

## Namespaces

namespace  SCPPNT

## Classes

class  SCPPNT::Matrix< T >
Simple concrete dense matrix class for numerical computation. More...

## Functions

template<class T>
std::ostream & SCPPNT::operator<< (std::ostream &s, const Matrix< T > &A)
Write a matrix to an output stream.
template<class T>
std::istream & SCPPNT::operator>> (std::istream &s, Matrix< T > &A)
Read elements of a matrix to an input stream.
template<class T, class M>
Matrix< T > SCPPNT::operator+ (const Matrix< T > &A, const M &B)
Add two matrices and return new matrix giving sum.
template<class T, class M>
Matrix< T > SCPPNT::operator- (const Matrix< T > &A, const M &B)
Subtract matrix B from matrix A and return matrix giving difference.
template<class T, class M>
Matrix< T > SCPPNT::operator * (const Matrix< T > &A, const M &B)
Multiplication operator returning a new matrix containing the matrix product A*B.
template<class T>
Vector< T > SCPPNT::operator * (const Matrix< T > &A, const Vector< T > &x)
Return a new vector containing the product of the matrix A and the vector x.

## Detailed Description

Definition of a simple concrete dense matrix class.

Templated numerical matrix class based on Template Numerical Toolkit (http://math.nist.gov/tnt) Matrix class. This class adds the following to the TNT Matrix class:

1. Row, column, and diagonal iterators.
2. Assignment operators (+=, -=, *=, /=)
3. Errors result in an exception being thrown rather than the program being aborted.

Definition in file cmat.h.

Generated on Tue Dec 18 23:34:11 2007 for SCPPNT by  1.5.4