NGSolve  4.9
Public Types | Public Member Functions | Static Public Member Functions | Protected Attributes
ngbla::FlatBandCholeskyFactors< T > Class Template Reference

Cholesky factors of a band matrix. More...

#include <bandmatrix.hpp>

Inheritance diagram for ngbla::FlatBandCholeskyFactors< T >:
ngbla::BandCholeskyFactors< T >

List of all members.

Public Types

typedef mat_traits< T >::TSCAL TSCAL

Public Member Functions

 FlatBandCholeskyFactors (int an, int abw, T *amem)
 assign dimension, bandwith and memory
 FlatBandCholeskyFactors ()
 default constructor
NGS_DLL_HEADER void Factor (const FlatSymBandMatrix< T > &a)
 factor bandmatrix a
template<class TVX , class TVY >
void Mult (const FlatVector< TVX > &x, FlatVector< TVY > &y) const
 solve with factored matrices
ostream & Print (ostream &ost) const
 print matrix factors
int Index (int i, int j) const
 compute linear position of matrix element (i,j)
const T & operator() (int i, int j) const
 matrix element (i,j), (i,j) must be a valid position
T & operator() (int i, int j)
 matrix element (i,j), (i,j) must be a valid position
int Size () const
 matrix size
int BandWidth () const
 band-width of triangular matrix

Static Public Member Functions

static int RequiredMem (int n, int bw)
 computes required memory

Protected Attributes

int n
 matrix dimension
int bw
 number of bands in the triangular matrix
T * mem
 matrix matrix data, first diags, than lfact

Detailed Description

template<class T = double>
class ngbla::FlatBandCholeskyFactors< T >

Cholesky factors of a band matrix.

This class does not provide memory management.

storage:

lfact (bw = 3)

{verbatim} d0 0 d1 1 2 d2 3 4 d3 {verbatim}


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