In file matrix.hpp:

template<typename T = double> class FlatMatrix

A simple matrix.

Documentation

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

Inheritance:


Public Methods

[more] FlatMatrix()
[more] FlatMatrix(int ah, int aw, T* adata)
set height, width, and mem
[more] FlatMatrix(int ah, T* adata)
set height = width, and mem
[more] FlatMatrix(int ah, int aw, LocalHeap & lh)
allocates at local heap
[more] FlatMatrix(int ah, LocalHeap & lh)
allocates at local heap
[more] FlatMatrix(const FlatMatrix & m)
copy constructor.
[more]template<typename T2> explicit FlatMatrix(const MatExpr<T2> & m)
useful to put FlatMatrix over Mat
[more] ~FlatMatrix()
do nothing
[more]void AssignMemory(int ah, int aw, LocalHeap & lh)
set size, and assign mem
[more]void AssignMemory(int ah, int aw, T* mem)
set size, and assign mem
[more]template<typename TB> FlatMatrix& operator= (const Expr<TB> & m)
assign contents
[more]FlatMatrix& operator= (const FlatMatrix & m)
copy contents
[more]FlatMatrix& operator= (TSCAL s)
assign constant
[more]FlatMatrix& Assign(const FlatMatrix & m)
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]TELEM Eval(int i) const
access operator for expression templates
[more]TELEM Eval(int i, int j) const
access operator for expression templates
[more]const TELEM& REval(int i) const
access operator for expression templates
[more]const TELEM& REval(int i, int j) const
access operator for expression templates
[more]int Height() const
the height
[more]int Width() const
the width

Protected Fields

[more]T* data
the data


Inherited from MatExpr:


Inherited from Expr:


Inherited from BaseFlatMatrix:

Protected Fields

oint h
oint w

Protected Methods

ovoid CheckRange(int i) const
ovoid CheckRange(int i, int j) const

oT* data
the data

o FlatMatrix()

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

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

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

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

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

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

o ~FlatMatrix()
do nothing

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

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

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

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

oFlatMatrix& operator= (TSCAL s)
assign constant

oFlatMatrix& Assign(const FlatMatrix & m)
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

oTELEM Eval(int i) const
access operator for expression templates

oTELEM Eval(int i, int j) const
access operator for expression templates

oconst TELEM& REval(int i) const
access operator for expression templates

oconst TELEM& REval(int i, int j) const
access operator for expression templates

oint Height() const
the height

oint Width() const
the width


Direct child classes:
Matrix

Alphabetic index HTML hierarchy of classes or Java



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