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

A symmetric band-matrix. More...

#include <bandmatrix.hpp>

Inheritance diagram for ngbla::FlatSymBandMatrix< T >:
ngbla::SymBandMatrix< T >

List of all members.

Public Types

typedef mat_traits< T >::TV_COL TV
 the accoring vector type

Public Member Functions

 FlatSymBandMatrix (int an, int abw, T *adata)
 Construction of FlatSymBandMatirx.
void Mult (const FlatVector< TV > &x, FlatVector< TV > &y) const
 Matrix vector multiplication.
ostream & Print (ostream &ost) const
 Print matrix to stream.
int Height () const
 matrix height
int BandWidth () const
 matrix width
const T & operator() (int i, int j) const
 access operator. Assumes that $i j$ referes to an element in the band
T & operator() (int i, int j)
 access operator. Assumes that $i j$ referes to an element in the band
bool Used (int i, int j) const
 check whether i, j refers to a valid element
FlatSymBandMatrixoperator= (const T &val)
 assignes a constant value

Static Public Member Functions

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

Protected Attributes

int n
 the matrix size
int bw
 number of bands in the triangular matrix
T * data
 the matrix entries

Detailed Description

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

A symmetric band-matrix.


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