Constructors
- A is a 3-by-3 matrix, with a plain float[9] array of uninitialized coefficients.
- B is a dynamic-size matrix whose size is currently 0-by-0, and whose array of coefficients hasn't yet been allocated at all.
- C is a 10x15 dynamic-size matrix, with allocated but currently uninitialized coefficients.
- d is a dynamic-size vector of size 30, with allocated but currently uninitialized coefficients.
rows()
cols()
size()
resize() : destructive; the values of the coefficients may change
conservativeResize() : does not change the coefficients
Arithmetic
transpose()
conjugate()
adjoint() : conjugate transpose
operator * : matrix * matrix multiplication
dot() : inner product
cross() : cross product
sum() : summation of elements
prod() : multiplication
mean() : avg
maxCoeff()
minCoeff()
trace() : sum of diagonal elements; same with = a.diagonal().sum()
Catalogue of dense decompositions
http://eigen.tuxfamily.org/dox/group__TopicLinearAlgebraDecompositions.html
Sparse Linear Algebra
mat.rows()
mat.cols()
vec.size()
mat.innerSize()
mat.outerSize()
mat.nonZeros()
vec.nonZeros()
Solving Sparse Linear Systems
http://eigen.tuxfamily.org/dox/group__TopicSparseSystems.html
Quick Reference Guide For Sparse Matrices
http://eigen.tuxfamily.org/dox/group__SparseQuickRefPage.html
'프로그래밍' 카테고리의 다른 글
리눅스 쉘 단축키 Keyboard shortcuts for bash (0) | 2015.04.09 |
---|---|
C++ 파일 입출력 ofstream / ifstream (0) | 2015.04.09 |
STL vector class (0) | 2015.03.25 |
STL set class (0) | 2015.03.25 |
STL map class (0) | 2015.03.25 |