In file matrix.hpp:

template<typename T = double> class FlatMatrix

A simple matrix.

Documentation

A simple matrix. Has height, width and data-pointer. No memory allocation/deallocation. User must provide memory.

Inheritance:


Public Fields

[more]typedef typename mat_traits<T>: :TSCAL TSCAL
scalar type of elements (double or Complex)

Public Methods

[more] FlatMatrix() throw()
nothing done in default constructor
[more] FlatMatrix(int ah, int aw, T* adata) throw()
set height, width, and mem
[more] FlatMatrix(int ah, T* adata) throw()
set height = width, and mem
[more] FlatMatrix(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
allocates at local heap
[more] FlatMatrix(int ah, LocalHeap & lh) throw(LocalHeapOverflow)
allocates at local heap
[more] FlatMatrix(const FlatMatrix & m) throw()
copy constructor.
[more]template<typename T2> explicit FlatMatrix(const MatExpr<T2> & m)
useful to put FlatMatrix over other matrix
[more]template<int H, int W> FlatMatrix(const Mat<H, W, TSCAL> & m) throw()
useful to put FlatMatrix over other Mat
[more] ~FlatMatrix() throw()
do nothing
[more]void AssignMemory(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
set size, and assign mem
[more]void AssignMemory(int ah, int aw, T* mem) throw()
set size, and assign mem
[more]template<typename TB> FlatMatrix& operator= (const Expr<TB> & m)
assign contents
[more]FlatMatrix& operator= (const FlatMatrix & m) throw()
copy contents
[more]FlatMatrix& operator= (TSCAL s) throw()
assign constant
[more]FlatMatrix& Assign(const FlatMatrix & m) throw()
copy size and pointers
[more]TELEM& operator() (int i)
access operator, linear access
[more]TELEM& operator() (int i, int j)
access operator
[more]const TELEM& operator() (int i) const
access operator, linear access
[more]const TELEM& operator() (int i, int j) const
access operator
[more]int Height() const throw()
the height
[more]int Width() const throw()
the width

Public Members

[more]typedef T TELEM
element type

Protected Fields

[more]int h
the height
[more]int w
the width
[more]T* data
the data


Inherited from MatExpr:


Inherited from Expr:

oint h
the height

oint w
the width

oT* data
the data

otypedef T TELEM
element type

otypedef typename mat_traits<T>: :TSCAL TSCAL
scalar type of elements (double or Complex)

o FlatMatrix() throw()
nothing done in default constructor

o FlatMatrix(int ah, int aw, T* adata) throw()
set height, width, and mem

o FlatMatrix(int ah, T* adata) throw()
set height = width, and mem

o FlatMatrix(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
allocates at local heap

o FlatMatrix(int ah, LocalHeap & lh) throw(LocalHeapOverflow)
allocates at local heap

o FlatMatrix(const FlatMatrix & m) throw()
copy constructor. copies pointers, not contents

otemplate<typename T2> explicit FlatMatrix(const MatExpr<T2> & m)
useful to put FlatMatrix over other matrix

otemplate<int H, int W> FlatMatrix(const Mat<H, W, TSCAL> & m) throw()
useful to put FlatMatrix over other Mat

o ~FlatMatrix() throw()
do nothing

ovoid AssignMemory(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
set size, and assign mem

ovoid AssignMemory(int ah, int aw, T* mem) throw()
set size, and assign mem

otemplate<typename TB> FlatMatrix& operator= (const Expr<TB> & m)
assign contents

oFlatMatrix& operator= (const FlatMatrix & m) throw()
copy contents

oFlatMatrix& operator= (TSCAL s) throw()
assign constant

oFlatMatrix& Assign(const FlatMatrix & m) throw()
copy size and pointers

oTELEM& operator() (int i)
access operator, linear access

oTELEM& operator() (int i, int j)
access operator

oconst TELEM& operator() (int i) const
access operator, linear access

oconst TELEM& operator() (int i, int j) const
access operator

oint Height() const throw()
the height

oint Width() const throw()
the width


Direct child classes:
Matrix

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.