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
-
typedef typename mat_traits<T>: :TSCAL TSCAL
- scalar type of elements (double or Complex)
Public Methods
-
FlatMatrix() throw()
- nothing done in default constructor
-
FlatMatrix(int ah, int aw, T* adata) throw()
- set height, width, and mem
-
FlatMatrix(int ah, T* adata) throw()
- set height = width, and mem
-
FlatMatrix(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
- allocates at local heap
-
FlatMatrix(int ah, LocalHeap & lh) throw(LocalHeapOverflow)
- allocates at local heap
-
FlatMatrix(const FlatMatrix & m) throw()
- copy constructor.
-
template<typename T2> explicit FlatMatrix(const MatExpr<T2> & m)
- useful to put FlatMatrix over other matrix
-
template<int H, int W> FlatMatrix(const Mat<H, W, TSCAL> & m) throw()
- useful to put FlatMatrix over other Mat
-
~FlatMatrix() throw()
- do nothing
-
void AssignMemory(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
- set size, and assign mem
-
void AssignMemory(int ah, int aw, T* mem) throw()
- set size, and assign mem
-
template<typename TB> FlatMatrix& operator= (const Expr<TB> & m)
- assign contents
-
FlatMatrix& operator= (const FlatMatrix & m) throw()
- copy contents
-
FlatMatrix& operator= (TSCAL s) throw()
- assign constant
-
FlatMatrix& Assign(const FlatMatrix & m) throw()
- 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
-
int Height() const throw()
- the height
-
int Width() const throw()
- the width
Public Members
-
typedef T TELEM
- element type
Protected Fields
-
int h
- the height
-
int w
- the width
-
T* data
- the data
Inherited from MatExpr:
Inherited from Expr:
int h
- the height
int w
- the width
T* data
- the data
typedef T TELEM
- element type
typedef typename mat_traits<T>: :TSCAL TSCAL
- scalar type of elements (double or Complex)
FlatMatrix() throw()
- nothing done in default constructor
FlatMatrix(int ah, int aw, T* adata) throw()
- set height, width, and mem
FlatMatrix(int ah, T* adata) throw()
- set height = width, and mem
FlatMatrix(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
- allocates at local heap
FlatMatrix(int ah, LocalHeap & lh) throw(LocalHeapOverflow)
- allocates at local heap
FlatMatrix(const FlatMatrix & m) throw()
- copy constructor. copies pointers, not contents
template<typename T2> explicit FlatMatrix(const MatExpr<T2> & m)
- useful to put FlatMatrix over other matrix
template<int H, int W> FlatMatrix(const Mat<H, W, TSCAL> & m) throw()
- useful to put FlatMatrix over other Mat
~FlatMatrix() throw()
- do nothing
void AssignMemory(int ah, int aw, LocalHeap & lh) throw(LocalHeapOverflow)
- set size, and assign mem
void AssignMemory(int ah, int aw, T* mem) throw()
- set size, and assign mem
template<typename TB> FlatMatrix& operator= (const Expr<TB> & m)
- assign contents
FlatMatrix& operator= (const FlatMatrix & m) throw()
- copy contents
FlatMatrix& operator= (TSCAL s) throw()
- assign constant
FlatMatrix& Assign(const FlatMatrix & m) throw()
- 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
int Height() const throw()
- the height
int 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++.