C:/programs/SCPPNT/src/include/region2d.h File Reference

Two dimensional regions for arrays and matrices (Region2D, const_Region2D, Region2D_iterator). More...

#include "scppnt/scppnt.h"
#include "scppnt/slice_pointer.h"
#include "scppnt/scppnt_error.h"
#include "scppnt/matop.h"
#include "scppnt/index.h"
#include <iostream>

Include dependency graph for region2d.h:

Go to the source code of this file.

Namespaces

namespace  SCPPNT

Classes

class  SCPPNT::Region2D_iterator< T, IT2D >
 Foward iterator over all elements of a matrix region. More...
class  SCPPNT::Region2D< Array2D >
 A rectangular subset of a matrix. More...
class  SCPPNT::const_Region2D< Array2D >
 Constant version of Region2D. More...

Functions

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


Detailed Description

Two dimensional regions for arrays and matrices (Region2D, const_Region2D, Region2D_iterator).

Contains definitions of Region2D and const_Region2D classes which allow working with a rectangular region of a matrix without creating a new matrix, and the definition of the class Region2D_iterator which defines an iterator over all elements of a Region2D.

Definition in file region2d.h.


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