#include <old_deprecated_matrix.h>
Public Types | |
| typedef TYPE | ScalarType |
Public Member Functions | |
| TYPE | Cofactor (unsigned int i, unsigned int j) const |
| unsigned int | ColumnsNumber () const |
| TYPE | Determinant () const |
| template<int N, int M> | |
| void | DotProduct (Point< N, TYPE > &m, Point< M, TYPE > &result) |
| void | Dump () |
| TYPE | ElementAt (unsigned int i, unsigned int j) |
| TYPE * | GetColumn (const unsigned int j) |
| TYPE * | GetRow (const unsigned int i) |
| Matrix (unsigned int m, unsigned int n) | |
| Matrix (unsigned int m, unsigned int n, TYPE *values) | |
| Matrix () | |
| Matrix (const Matrix< TYPE > &m) | |
| bool | operator!= (const Matrix< TYPE > &m) const |
| Matrix< TYPE > | operator* (const Matrix< TYPE > &m) const |
| ScalarType * | operator* (const ScalarType v[]) const |
| Matrix< TYPE > | operator* (const MatrixDiagBase &m) const |
| Point3< TYPE > | operator* (Point3< TYPE > &p) const |
| Matrix< TYPE > | operator* (const TYPE k) const |
| Matrix< TYPE > & | operator*= (const TYPE k) |
| Matrix< TYPE > | operator+ (const TYPE k) |
| Matrix< TYPE > & | operator+= (const Matrix< TYPE > &m) |
| Matrix< TYPE > & | operator+= (const TYPE k) |
| Matrix< TYPE > | operator- (const TYPE k) |
| Matrix< TYPE > | operator- () const |
| Matrix< TYPE > & | operator-= (const Matrix< TYPE > &m) |
| Matrix< TYPE > & | operator-= (const TYPE k) |
| Matrix< TYPE > | operator/ (const TYPE k) |
| Matrix< TYPE > & | operator/= (const TYPE k) |
| Matrix< TYPE > & | operator= (const Matrix< TYPE > &m) |
| bool | operator== (const Matrix< TYPE > &m) const |
| TYPE * | operator[] (const unsigned int i) |
| const TYPE * | operator[] (const unsigned int i) const |
| template<int N, int M> | |
| void | OuterProduct (const Point< N, TYPE > a, const Point< M, TYPE > b) |
| void | Resize (const unsigned int m, const unsigned int n) |
| unsigned int | RowsNumber () const |
| void | SetColumn (const unsigned int j, TYPE *v) |
| void | SetDiagonal (TYPE *v) |
| void | SetIdentity () |
| void | SetRow (const unsigned int i, TYPE *v) |
| void | SetZero () |
| void | SwapColumns (const unsigned int i, const unsigned int j) |
| void | SwapRows (const unsigned int i, const unsigned int j) |
| void | Transpose () |
| Matrix | transpose () |
| void | transposeInPlace () |
| ~Matrix () | |
Protected Attributes | |
| unsigned int | _columns |
| the number of matrix rows | |
| ScalarType * | _data |
| the matrix elements | |
| unsigned int | _rows |
| the number of matrix rows | |
This class represent a generic m�n matrix. The class is templated over the scalar type field.
| TYPE | (Templete Parameter) Specifies the ScalarType field. |
Definition at line 80 of file old_deprecated_matrix.h.
| typedef TYPE vcg::ndim::Matrix< TYPE >::ScalarType |
Definition at line 84 of file old_deprecated_matrix.h.
| vcg::ndim::Matrix< TYPE >::Matrix | ( | unsigned int | m, |
| unsigned int | n | ||
| ) | [inline] |
Default constructor All the elements are initialized to zero.
| m | the number of matrix rows |
| n | the number of matrix columns |
Definition at line 92 of file old_deprecated_matrix.h.
| vcg::ndim::Matrix< TYPE >::Matrix | ( | unsigned int | m, |
| unsigned int | n, | ||
| TYPE * | values | ||
| ) | [inline] |
Constructor The matrix elements are initialized with the values of the elements in values.
| m | the number of matrix rows |
| n | the number of matrix columns |
| values | the values of the matrix elements |
Definition at line 107 of file old_deprecated_matrix.h.
| vcg::ndim::Matrix< TYPE >::Matrix | ( | ) | [inline] |
Empty constructor Just create the object
Definition at line 123 of file old_deprecated_matrix.h.
| vcg::ndim::Matrix< TYPE >::Matrix | ( | const Matrix< TYPE > & | m | ) | [inline] |
Copy constructor The matrix elements are initialized with the value of the corresponding element in m
| m | the matrix to be copied |
Definition at line 135 of file old_deprecated_matrix.h.
| vcg::ndim::Matrix< TYPE >::~Matrix | ( | ) | [inline] |
Default destructor
Definition at line 151 of file old_deprecated_matrix.h.
| TYPE vcg::ndim::Matrix< TYPE >::Cofactor | ( | unsigned int | i, |
| unsigned int | j | ||
| ) | const [inline] |
Return the cofactor Ai,j of the ai,j element
Definition at line 258 of file old_deprecated_matrix.h.
| unsigned int vcg::ndim::Matrix< TYPE >::ColumnsNumber | ( | ) | const [inline] |
Number of columns
Definition at line 159 of file old_deprecated_matrix.h.
| TYPE vcg::ndim::Matrix< TYPE >::Determinant | ( | ) | const [inline] |
Calculate and return the matrix determinant (Laplace)
Definition at line 224 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::DotProduct | ( | Point< N, TYPE > & | m, |
| Point< M, TYPE > & | result | ||
| ) | [inline] |
Matrix multiplication: calculates the cross product.
| reference | to the matrix to multiply by |
Definition at line 507 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::Dump | ( | ) | [inline] |
Print all matrix elements
Definition at line 736 of file old_deprecated_matrix.h.
| TYPE vcg::ndim::Matrix< TYPE >::ElementAt | ( | unsigned int | i, |
| unsigned int | j | ||
| ) | [inline] |
Return the element stored in the i-th rows at the j-th column
| i | the row index |
| j | the column index |
Definition at line 213 of file old_deprecated_matrix.h.
| TYPE* vcg::ndim::Matrix< TYPE >::GetColumn | ( | const unsigned int | j | ) | [inline] |
Get the j-th column on the matrix.
| j | the column index. |
Definition at line 310 of file old_deprecated_matrix.h.
| TYPE* vcg::ndim::Matrix< TYPE >::GetRow | ( | const unsigned int | i | ) | [inline] |
Get the i-th row on the matrix.
| i | the column index. |
Definition at line 325 of file old_deprecated_matrix.h.
| bool vcg::ndim::Matrix< TYPE >::operator!= | ( | const Matrix< TYPE > & | m | ) | const [inline] |
Inequality operator
| m |
Definition at line 195 of file old_deprecated_matrix.h.
| Matrix<TYPE> vcg::ndim::Matrix< TYPE >::operator* | ( | const Matrix< TYPE > & | m | ) | const [inline] |
Matrix multiplication: calculates the cross product.
| m | reference to the matrix to multiply by |
Definition at line 467 of file old_deprecated_matrix.h.
| ScalarType* vcg::ndim::Matrix< TYPE >::operator* | ( | const ScalarType | v[] | ) | const [inline] |
Matrix-Vector product. Computes the product of the matrix by the vector v.
| v | reference to the vector to multiply by |
Definition at line 489 of file old_deprecated_matrix.h.
| Matrix<TYPE> vcg::ndim::Matrix< TYPE >::operator* | ( | const MatrixDiagBase & | m | ) | const [inline] |
Matrix multiplication by a diagonal matrix
Definition at line 520 of file old_deprecated_matrix.h.
| Point3<TYPE> vcg::ndim::Matrix< TYPE >::operator* | ( | Point3< TYPE > & | p | ) | const [inline] |
Matrix-vector multiplication.
| reference | to the 3-dimensional vector to multiply by |
Definition at line 556 of file old_deprecated_matrix.h.
| Matrix<TYPE> vcg::ndim::Matrix< TYPE >::operator* | ( | const TYPE | k | ) | const [inline] |
Scalar multiplication.
| k | value to multiply every member by |
Definition at line 610 of file old_deprecated_matrix.h.
| Matrix<TYPE>& vcg::ndim::Matrix< TYPE >::operator*= | ( | const TYPE | k | ) | [inline] |
(Modifier) Multiplies each element of this matrix by the scalar constant k.
| k | the scalar constant |
Definition at line 442 of file old_deprecated_matrix.h.
| Matrix<TYPE> vcg::ndim::Matrix< TYPE >::operator+ | ( | const TYPE | k | ) | [inline] |
Scalar sum.
| k |
Definition at line 572 of file old_deprecated_matrix.h.
| Matrix<TYPE>& vcg::ndim::Matrix< TYPE >::operator+= | ( | const Matrix< TYPE > & | m | ) | [inline] |
Adds a matrix m to this matrix.
| m | reference to matrix to add to this |
Definition at line 390 of file old_deprecated_matrix.h.
| Matrix<TYPE>& vcg::ndim::Matrix< TYPE >::operator+= | ( | const TYPE | k | ) | [inline] |
(Modifier) Add to each element of this matrix the scalar constant k.
| k | the scalar constant |
Definition at line 418 of file old_deprecated_matrix.h.
| Matrix<TYPE> vcg::ndim::Matrix< TYPE >::operator- | ( | const TYPE | k | ) | [inline] |
Scalar difference.
| k |
Definition at line 585 of file old_deprecated_matrix.h.
| Matrix<TYPE> vcg::ndim::Matrix< TYPE >::operator- | ( | ) | const [inline] |
Negate all matrix elements
Definition at line 597 of file old_deprecated_matrix.h.
| Matrix<TYPE>& vcg::ndim::Matrix< TYPE >::operator-= | ( | const Matrix< TYPE > & | m | ) | [inline] |
Subtracts a matrix m to this matrix.
| m | reference to matrix to subtract |
Definition at line 404 of file old_deprecated_matrix.h.
| Matrix<TYPE>& vcg::ndim::Matrix< TYPE >::operator-= | ( | const TYPE | k | ) | [inline] |
(Modifier) Subtract from each element of this matrix the scalar constant k.
| k | the scalar constant |
Definition at line 430 of file old_deprecated_matrix.h.
| Matrix<TYPE> vcg::ndim::Matrix< TYPE >::operator/ | ( | const TYPE | k | ) | [inline] |
Scalar division.
| k | value to divide every member by |
Definition at line 623 of file old_deprecated_matrix.h.
| Matrix<TYPE>& vcg::ndim::Matrix< TYPE >::operator/= | ( | const TYPE | k | ) | [inline] |
(Modifier) Divides each element of this matrix by the scalar constant k.
| k | the scalar constant |
Definition at line 454 of file old_deprecated_matrix.h.
| Matrix<TYPE>& vcg::ndim::Matrix< TYPE >::operator= | ( | const Matrix< TYPE > & | m | ) | [inline] |
| bool vcg::ndim::Matrix< TYPE >::operator== | ( | const Matrix< TYPE > & | m | ) | const [inline] |
Equality operator.
| m |
Definition at line 178 of file old_deprecated_matrix.h.
| TYPE* vcg::ndim::Matrix< TYPE >::operator[] | ( | const unsigned int | i | ) | [inline] |
Subscript operator:
| i | the index of the row |
Definition at line 288 of file old_deprecated_matrix.h.
| const TYPE* vcg::ndim::Matrix< TYPE >::operator[] | ( | const unsigned int | i | ) | const [inline] |
Const subscript operator
| i | the index of the row |
Definition at line 299 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::OuterProduct | ( | const Point< N, TYPE > | a, |
| const Point< M, TYPE > | b | ||
| ) | [inline] |
Matrix from outer product.
Definition at line 537 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::Resize | ( | const unsigned int | m, |
| const unsigned int | n | ||
| ) | [inline] |
Resize the current matrix.
| m | the number of matrix rows. |
| n | the number of matrix columns. |
Definition at line 694 of file old_deprecated_matrix.h.
| unsigned int vcg::ndim::Matrix< TYPE >::RowsNumber | ( | ) | const [inline] |
Number of rows
Definition at line 168 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::SetColumn | ( | const unsigned int | j, |
| TYPE * | v | ||
| ) | [inline] |
Set the values of j-th column to v[j]
| j | the column index |
| v | ... |
Definition at line 657 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::SetDiagonal | ( | TYPE * | v | ) | [inline] |
Set the diagonal elements vi,i to v[i]
| v |
Definition at line 682 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::SetIdentity | ( | ) | [inline] |
Set the matrix to identity.
Definition at line 644 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::SetRow | ( | const unsigned int | i, |
| TYPE * | v | ||
| ) | [inline] |
Set the elements of the i-th row to v[j]
| i | the row index |
| v | ... |
Definition at line 670 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::SetZero | ( | ) | [inline] |
Set all the matrix elements to zero.
Definition at line 635 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::SwapColumns | ( | const unsigned int | i, |
| const unsigned int | j | ||
| ) | [inline] |
Swaps the values of the elements between the i-th and the j-th column.
| i | the index of the first column |
| j | the index of the second column |
Definition at line 340 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::SwapRows | ( | const unsigned int | i, |
| const unsigned int | j | ||
| ) | [inline] |
Swaps the values of the elements between the i-th and the j-th row.
| i | the index of the first row |
| j | the index of the second row |
Definition at line 357 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::Transpose | ( | ) | [inline] |
Matrix transposition operation: set the current matrix to its transpose
Definition at line 710 of file old_deprecated_matrix.h.
| Matrix vcg::ndim::Matrix< TYPE >::transpose | ( | ) | [inline] |
Definition at line 724 of file old_deprecated_matrix.h.
| void vcg::ndim::Matrix< TYPE >::transposeInPlace | ( | ) | [inline] |
Definition at line 730 of file old_deprecated_matrix.h.
unsigned int vcg::ndim::Matrix< TYPE >::_columns [protected] |
the number of matrix rows
Definition at line 755 of file old_deprecated_matrix.h.
ScalarType* vcg::ndim::Matrix< TYPE >::_data [protected] |
the matrix elements
Definition at line 758 of file old_deprecated_matrix.h.
unsigned int vcg::ndim::Matrix< TYPE >::_rows [protected] |
the number of matrix rows
Definition at line 748 of file old_deprecated_matrix.h.