|
| | Matrix () |
| | Empty constructor. More...
|
| |
| | Matrix (int M, int N) |
| | Constructor (known size). More...
|
| |
| | Matrix (T *t, int M, int N, bool handleDelete=false) |
| | Constructor (pre-allocated). More...
|
| |
| | Matrix (const Base &A) |
| | Copy constructor. More...
|
| |
| | Matrix (const SymMatrix< T > &A) |
| | Conversion from SymMatrix. More...
|
| |
| | ~Matrix () |
| | Destructor. More...
|
| |
| Matrix | clone () const |
| | Cloning. More...
|
| |
| Matrix & | fill (T x) |
| | Filling. More...
|
| |
| Vector< T > | getCol (int j) const |
| | Get column. More...
|
| |
| Vector< T > | getColRef (int j) |
| | Get column by reference. More...
|
| |
| Matrix | getColsRef (int j0, int n) |
| | Get part of columns by reference. More...
|
| |
| Vector< T > | getDiagonal () const |
| | Get diagonal. More...
|
| |
| Vector< T > | getRow (int i) const |
| | Get row. More...
|
| |
| Vector< T > | getSubColRef (int j, int i0, int m) |
| | Get sub column by reference. More...
|
| |
| Matrix | getSubMat (int i0, int m, int j0, int n) const |
| | Get sub matrix. More...
|
| |
| int | ncol () const |
| | Number of columns. More...
|
| |
| int | nrow () const |
| | Number of rows. More...
|
| |
| Vector< T > | operator* (const Vector< T > &v) const |
| | Product with vector. More...
|
| |
| Matrix | operator* (const Matrix &B) const |
| | Product. More...
|
| |
| Matrix | operator* (const SymMatrix< T > &B) const |
| | Product. More...
|
| |
| Matrix | operator* (T x) const |
| | Scalar multiplication. More...
|
| |
| Matrix & | operator*= (T x) |
| | Scalar in place multiplication. More...
|
| |
| Matrix | operator+ (const Matrix &B) const |
| | Addition. More...
|
| |
| Matrix & | operator+= (const Matrix &B) |
| | In place Addition. More...
|
| |
| Matrix | operator- (const Matrix &B) const |
| | Substraction. More...
|
| |
| Matrix | operator- () const |
| | Opposite. More...
|
| |
| Matrix & | operator-= (const Matrix &B) |
| | In place Substraction. More...
|
| |
| Matrix | operator/ (T x) const |
| | Scalar division. More...
|
| |
| Matrix & | operator/= (T x) |
| | Scalar in place division. More...
|
| |
| Matrix & | operator= (const Matrix &A) |
| | Assignment. More...
|
| |
| Matrix & | setCol (int j, const Vector< T > &v) |
| | Set column. More...
|
| |
| Matrix & | setDiagonal (const Vector< T > &v) |
| | Set diagonal. More...
|
| |
| Matrix & | setRow (int i, const Vector< T > &v) |
| | Set row. More...
|
| |
| | MultiArray () |
| | Empty constructor. More...
|
| |
| | MultiArray (const Coords< dim > &sz) |
| | Constructor (known size). More...
|
| |
| | MultiArray (int s0, int s1) |
| | Constructor (2D shorcut). More...
|
| |
| | MultiArray (int s0, int s1, int s2) |
| | Constructor (3D shorcut). More...
|
| |
| | MultiArray (T *ptr, const Coords< dim > &sz, bool handleDelete=false) |
| | Constructor (pre-allocated). More...
|
| |
| | MultiArray (T *ptr, int s0, int s1, bool handleDelete=false) |
| | Constructor (pre-allocated) 2D alias. More...
|
| |
| | MultiArray (T *ptr, int s0, int s1, int s2, bool handleDelete=false) |
| | Constructor (pre-allocated) 3D alias. More...
|
| |
| | MultiArray (const MultiArray &A) |
| | Copy constructor. More...
|
| |
| | MultiArray (const MultiArray< T2, dim > &A) |
| | Constructor (different type). More...
|
| |
| virtual | ~MultiArray () |
| | Destructor. More...
|
| |
| MultiArray | clone () const |
| | Cloning. More...
|
| |
| CoordsIterator< dim > | coordsBegin () const |
| | Begin coords iterator. More...
|
| |
| CoordsIterator< dim > | coordsEnd () const |
| | End coords iterator. More...
|
| |
| int | depth () const |
| | Size alias 2. More...
|
| |
| MultiArray & | fill (T x) |
| | Filling. More...
|
| |
| MultiArray | getSubArray (const Coords< dim > &offset, const Coords< dim > &sz) const |
| | Sub array. More...
|
| |
| int | height () const |
| | Size alias 1. More...
|
| |
| size_t | offset (const Coords< dim > &c) const |
| | Offset. More...
|
| |
| size_t | offset (int x, int y) const |
| | Offset (2D alias). More...
|
| |
| size_t | offset (int x, int y, int z) const |
| | Offset (3D alias). More...
|
| |
| const T & | operator() (const Coords< dim > &c) const |
| | Read access. More...
|
| |
| T & | operator() (const Coords< dim > &c) |
| | Write access. More...
|
| |
| const T & | operator() (int x, int y) const |
| | Read access 2D alias. More...
|
| |
| T & | operator() (int x, int y) |
| | Write access 2D alias. More...
|
| |
| const T & | operator() (int x, int y, int z) const |
| | Read access 3D alias. More...
|
| |
| T & | operator() (int x, int y, int z) |
| | Write access 3D alias. More...
|
| |
| MultiArray & | operator= (const MultiArray &A) |
| | Assignment. More...
|
| |
| MultiArray & | operator= (const MultiArray< T2, dim > &A) |
| | Assignment (different type). More...
|
| |
| void | setSize (const Coords< dim > &sz) |
| | Change sizes. More...
|
| |
| void | setSize (int s0, int s1) |
| | Change size 2D alias. More...
|
| |
| void | setSize (int s0, int s1, int s2) |
| | Change size 3D alias. More...
|
| |
| int | size (int i) const |
| | ith size. More...
|
| |
| Coords< dim > | sizes () const |
| | Sizes. More...
|
| |
| FArray< size_t, dim > | stride () const |
| | Stride. More...
|
| |
| size_t | stride (int i) const |
| | ith stride. More...
|
| |
| size_t | totalSize () const |
| | Total Size. More...
|
| |
| int | width () const |
| | Size alias 0. More...
|
| |
| | Array () |
| | Empty constructor. More...
|
| |
| | Array (size_t size) |
| | Constructor (known size). More...
|
| |
| | Array (T *ptr, size_t size, bool handleDelete=false) |
| | Constructor (pre-allocated). More...
|
| |
| | Array (const Array &A) |
| | Copy constructor. More...
|
| |
| template<typename T2 > |
| | Array (const Array< T2 > &A) |
| | Constructor (different type). More...
|
| |
| | Array (const std::list< T > &L) |
| | Constructor (from list). More...
|
| |
| virtual | ~Array () |
| | Destructor. More...
|
| |
| iterator | begin () |
| | Begin iterator. More...
|
| |
| const_iterator | begin () const |
| | Begin const iterator. More...
|
| |
| Array | clone () const |
| | Cloning. More...
|
| |
| T * | data () |
| | Data pointer (read/write). More...
|
| |
| const T * | data () const |
| | Data pointer (read). More...
|
| |
| bool | empty () const |
| | Is empty. More...
|
| |
| iterator | end () |
| | End iterator. More...
|
| |
| const_iterator | end () const |
| | End const iterator. More...
|
| |
| Array & | fill (const T &x) |
| | Filling. More...
|
| |
| Array | getSubArray (size_t offset, size_t size) const |
| | Sub array. More...
|
| |
| bool | operator!= (const Array &A) const |
| | Inequality test. More...
|
| |
| Array & | operator= (const Array &A) |
| | Assignment. More...
|
| |
| template<typename T2 > |
| Array & | operator= (const Array< T2 > &A) |
| | Assignment (different type). More...
|
| |
| bool | operator== (const Array &A) const |
| | Equality test. More...
|
| |
| const T & | operator[] (size_t i) const |
| | Read access. More...
|
| |
| T & | operator[] (size_t i) |
| | Write access. More...
|
| |
| void | setSize (size_t size) |
| | Change size. More...
|
| |
| size_t | size () const |
| | Size. More...
|
| |
|
| Matrix | cholesky (const Matrix &A, bool low=true) |
| | Cholesky decomposition. More...
|
| |
| T | det (const Matrix &A) |
| | Determinant. More...
|
| |
| T | dot (const Matrix &a, const Matrix &b) |
| | Scalar product. More...
|
| |
| Matrix | inverse (const Matrix &A) |
| | Inverse. More...
|
| |
| Vector< T > | linSolve (const Matrix &A, const Vector< T > &b) |
| | Linear system. More...
|
| |
| Matrix | multt (const Matrix &A, const Matrix &B) |
| | Product. More...
|
| |
| T | norm (const Matrix &A, char type='F') |
| | Norm. More...
|
| |
| Matrix | operator* (T x, const Matrix &B) |
| | Scalar multiplication. More...
|
| |
| std::ostream & | operator<< (std::ostream &out, const Matrix &A) |
| | ASCII write. More...
|
| |
| std::istream & | operator>> (std::istream &in, Matrix &A) |
| | ASCII read. More...
|
| |
| Matrix | pseudoInverse (const Matrix &A, T tolrel=0) |
| | Pseudo inverse. More...
|
| |
| bool | QR (const Matrix &A, Matrix &Q, Matrix &R, bool all=false) |
| | QR decomposition. More...
|
| |
| T | rcond (const Matrix &A) |
| | Reciprocal condition number. More...
|
| |
| void | svd (const Matrix &A, Matrix &U, Vector< T > &S, Matrix &Vt, bool all=false) |
| | SVD. More...
|
| |
| Vector< T > | tmult (const Matrix &A, const Vector< T > &v) |
| | Product with vector. More...
|
| |
| Matrix | tmult (const Matrix &A, const Matrix &B) |
| | Product. More...
|
| |
| Matrix | tmultt (const Matrix &A, const Matrix &B) |
| | Product. More...
|
| |
| Matrix | transpose (const Matrix &A) |
| | Transpose. More...
|
| |
template<typename T>
singleton Imagine::Matrix< T >
Matrix of variable size. Memory is reference counted, i.e.:
- a=b results in a and b sharing the same memory
- the last object using memory frees it when it dies
- use clone() when this sharing is not desired
- Parameters
-
- Examples:
- LinAlg/test/test.cpp.