NGSolve  4.9
Public Types | Public Member Functions
ngbla::Mat< H, W, T > Class Template Reference

A matrix of fixed size. More...

#include <matrix.hpp>

Inheritance diagram for ngbla::Mat< H, W, T >:
ngbla::MatExpr< Mat< H, W, T > > ngbla::Expr< Mat< H, W, T > >

List of all members.

Public Types

enum  { HEIGHT = H }
enum  { WIDTH = W }
typedef T TELEM
typedef mat_traits< T >::TSCAL TSCAL
typedef Vec< H, typename
mat_traits< T >::TV_COL
TV_COL
typedef Vec< W, typename
mat_traits< T >::TV_ROW
TV_ROW

Public Member Functions

 Mat () throw ()
 do not initialize
 Mat (const Mat &m) throw ()
 copy matrix
template<typename TB >
 Mat (const Expr< TB > &m)
 assign values
 Mat (TSCAL s) throw ()
 fill with scalar
template<typename TB >
Matoperator= (const Expr< TB > &m)
 assign values
Matoperator= (const Mat &m) throw ()
 copy matrix
Matoperator= (TSCAL s) throw ()
 fill values
TELEM & operator() (int i)
 linear access
TELEM & operator() (int i, int j)
 access element
const TELEM & operator() (int i) const
 linear access
const TELEM & operator() (int i, int j) const
 access element
int Height () const throw ()
 the height
int Width () const throw ()
 the width
const FlatVec< W, T > Row (int i)
const FlatVec< W, const T > Row (int i) const
const FixSliceVector< W, T > Col (int i)

Detailed Description

template<int H, int W = H, typename T = double>
class ngbla::Mat< H, W, T >

A matrix of fixed size.

Useful as entry type in system matrices,...


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