NeoPZ
Classes | Macros | Functions
pzfmatrix.h File Reference

Contains TPZMatrixclass which implements full matrix (using column major representation). More...

#include <math.h>
#include <string.h>
#include <complex>
#include <iostream>
#include <list>
#include <sstream>
#include "pzmatrix.h"
#include "pzerror.h"
#include "pzmanvector.h"
#include "pzreal.h"
#include "pzvec.h"
#include "tpzautopointer.h"
#include <cstdlib>
Include dependency graph for pzfmatrix.h:

Go to the source code of this file.

Classes

class  TPZFMatrix< TVar >
 Full matrix class. Matrix. More...
 
class  TPZVerySparseMatrix< TVar >
 Implements a matrix whose nonzero elements are stored in binary tree. Matrix. More...
 
class  TPZVec< T >
 This class implements a simple vector storage scheme for a templated class T. Utility. More...
 
class  TPZFMatrix< TVar >
 Full matrix class. Matrix. More...
 
class  TPZFNMatrix< N, TVar >
 Non abstract class which implements full matrices with preallocated storage with (N+1) entries. Matrix. More...
 

Macros

#define GETVAL(MAT, rows, row, col)
 MACRO to get MAT(row,col) entry. More...
 
#define PUTVAL(MAT, rows, row, col, val)
 MACRO to put value val into MAT(row,col) entry. More...
 
#define SELECTEL(ptr, rows, row, col)
 MACRO to get the entry of the vector (ptr[col*rows+row]) as matrix ( ptr(row,col) ) More...
 

Functions

template<class TVar >
TVar Dot (const TPZFMatrix< TVar > &A, const TPZFMatrix< TVar > &B)
 Returns a dot product to matrices. More...
 
template<class TVar >
TVar Norm (const TPZFMatrix< TVar > &A)
 Returns the norm of the matrix A. More...
 
template<class TVar >
TPZFMatrix< TVar > operator* (TVar val, const TPZFMatrix< TVar > &A)
 Implements a scalar product val*A. More...
 
int64_t Norm (const TPZFMatrix< int64_t > &A)
 
int Norm (const TPZFMatrix< int > &A)
 
float Norm (const TPZFMatrix< float > &A)
 
double Norm (const TPZFMatrix< double > &A)
 
long double Norm (const TPZFMatrix< long double > &A)
 
float Norm (const TPZFMatrix< std::complex< float > > &A)
 
double Norm (const TPZFMatrix< std::complex< double > > &A)
 
long double Norm (const TPZFMatrix< std::complex< long double > > &A)
 
TPZFlopCounter Norm (const TPZFMatrix< TPZFlopCounter > &A)
 

Detailed Description

Contains TPZMatrixclass which implements full matrix (using column major representation).

Definition in file pzfmatrix.h.

Function Documentation

◆ Norm() [1/9]

int64_t Norm ( const TPZFMatrix< int64_t > &  A)
inline

Definition at line 661 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ Norm() [2/9]

int Norm ( const TPZFMatrix< int > &  A)
inline

Definition at line 665 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ Norm() [3/9]

float Norm ( const TPZFMatrix< float > &  A)
inline

Definition at line 669 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ Norm() [4/9]

double Norm ( const TPZFMatrix< double > &  A)
inline

Definition at line 673 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ Norm() [5/9]

long double Norm ( const TPZFMatrix< long double > &  A)
inline

Definition at line 677 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ Norm() [6/9]

float Norm ( const TPZFMatrix< std::complex< float > > &  A)
inline

Definition at line 681 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ Norm() [7/9]

double Norm ( const TPZFMatrix< std::complex< double > > &  A)
inline

Definition at line 685 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ Norm() [8/9]

long double Norm ( const TPZFMatrix< std::complex< long double > > &  A)
inline

Definition at line 689 of file pzfmatrix.h.

References Dot(), Norm(), sqrt, and TPZExtractVal::val().

◆ Norm() [9/9]

TPZFlopCounter Norm ( const TPZFMatrix< TPZFlopCounter > &  A)
inline

Definition at line 707 of file pzfmatrix.h.

References Dot(), and sqrt.

◆ operator*()

template<class TVar >
TPZFMatrix<TVar> operator* ( TVar  val,
const TPZFMatrix< TVar > &  A 
)
inline

Implements a scalar product val*A.

Definition at line 526 of file pzfmatrix.h.

References val().