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