NeoPZ
Functions
pzmatrix.cpp File Reference

Contains the implementation of the TPZMatrix<>methods. More...

#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include <memory.h>
#include <sstream>
#include <set>
#include "pzmatrix.h"
#include "pzsolve.h"
#include "pzvec.h"
#include "pzextractval.h"
#include <exception>
#include "pzlog.h"
#include <complex>
#include "cg.h"
#include "gmres.h"
#include "pzstepsolver.h"
#include "bicg.h"
#include "bicgstab.h"
#include "ir.h"
Include dependency graph for pzmatrix.cpp:

Go to the source code of this file.

Functions

template<class TVar >
TPZFMatrix< TVar > operator+ (const TPZMatrix< TVar > &A, const TPZMatrix< TVar > &B)
 Implements sum of matrices: $ A+B $. More...
 
template<class TVar >
TPZFMatrix< TVar > operator- (const TPZMatrix< TVar > &A, const TPZMatrix< TVar > &B)
 Implements difference of matrices: $ A-B $. More...
 
template<class TVar >
TPZFMatrix< TVar > operator* (TPZMatrix< TVar > &A, const TPZFMatrix< TVar > &B)
 Implements product of matrices: $ A*B $. More...
 
template<class TVar >
std::istream & operator>> (std::istream &in, TPZMatrix< TVar > &A)
 Overload >> operator to input data of the matrix. More...
 
template<class TVar >
std::ostream & operator<< (std::ostream &out, const TPZMatrix< TVar > &A)
 Overload << operator to output entries of the matrix. More...
 
template std::ostream & operator<< (std::ostream &out, const TPZMatrix< int > &A)
 
template std::ostream & operator<< (std::ostream &out, const TPZMatrix< float > &A)
 
template std::ostream & operator<< (std::ostream &out, const TPZMatrix< double > &A)
 
template std::ostream & operator<< (std::ostream &out, const TPZMatrix< long double > &A)
 
template std::ostream & operator<< (std::ostream &out, const TPZMatrix< std::complex< float > > &A)
 
template std::ostream & operator<< (std::ostream &out, const TPZMatrix< std::complex< double > > &A)
 

Detailed Description

Contains the implementation of the TPZMatrix<>methods.

Definition in file pzmatrix.cpp.

Function Documentation

◆ operator*()

template<class TVar >
TPZFMatrix<TVar> operator* ( TPZMatrix< TVar > &  A,
const TPZFMatrix< TVar > &  B 
)

Implements product of matrices: $ A*B $.

Definition at line 128 of file pzmatrix.cpp.

References TPZMatrix< TVar >::Cols(), TPZMatrix< TVar >::Multiply(), TPZFMatrix< TVar >::Redim(), test::res, and TPZMatrix< TVar >::Rows().

◆ operator+()

template<class TVar >
TPZFMatrix<TVar> operator+ ( const TPZMatrix< TVar > &  A,
const TPZMatrix< TVar > &  B 
)

Implements sum of matrices: $ A+B $.

Definition at line 108 of file pzmatrix.cpp.

References TPZMatrix< TVar >::Add(), TPZMatrix< TVar >::Cols(), TPZFMatrix< TVar >::Redim(), and TPZMatrix< TVar >::Rows().

◆ operator-()

template<class TVar >
TPZFMatrix<TVar> operator- ( const TPZMatrix< TVar > &  A,
const TPZMatrix< TVar > &  B 
)

Implements difference of matrices: $ A-B $.

Definition at line 118 of file pzmatrix.cpp.

References TPZMatrix< TVar >::Cols(), TPZFMatrix< TVar >::Redim(), test::res, TPZMatrix< TVar >::Rows(), and TPZMatrix< TVar >::Substract().

◆ operator<<() [1/7]

template<class TVar >
std::ostream& operator<< ( std::ostream &  out,
const TPZMatrix< TVar > &  A 
)

Overload << operator to output entries of the matrix.

Overload << operator to print entries of the matrix.

Definition at line 2058 of file pzmatrix.cpp.

References TPZMatrix< TVar >::Print().

◆ operator<<() [2/7]

template std::ostream& operator<< ( std::ostream &  out,
const TPZMatrix< int > &  A 
)

◆ operator<<() [3/7]

template std::ostream& operator<< ( std::ostream &  out,
const TPZMatrix< float > &  A 
)

◆ operator<<() [4/7]

template std::ostream& operator<< ( std::ostream &  out,
const TPZMatrix< double > &  A 
)

◆ operator<<() [5/7]

template std::ostream& operator<< ( std::ostream &  out,
const TPZMatrix< long double > &  A 
)

◆ operator<<() [6/7]

template std::ostream& operator<< ( std::ostream &  out,
const TPZMatrix< std::complex< float > > &  A 
)

◆ operator<<() [7/7]

template std::ostream& operator<< ( std::ostream &  out,
const TPZMatrix< std::complex< double > > &  A 
)

◆ operator>>()

template<class TVar >
std::istream& operator>> ( std::istream &  in,
TPZMatrix< TVar > &  A 
)

Overload >> operator to input data of the matrix.

Definition at line 246 of file pzmatrix.cpp.

References TPZMatrix< TVar >::fCol, TPZMatrix< TVar >::fRow, TPZMatrix< TVar >::Get(), TPZMatrix< TVar >::Input(), and TPZMatRed< TVar, TSideMatrix >::Print().