|
| template<int R, int C, typename Precision , typename Base > |
| Precision | TooN::determinant_gaussian_elimination (const Matrix< R, C, Precision, Base > &A_) |
| | Compute the determinant using Gaussian elimination. More...
|
| |
| template<int R, int C, class P , class B > |
| P | TooN::determinant (const Matrix< R, C, P, B > &A) |
| | Compute the determinant of a matrix using an appropriate method. More...
|
| |
| template<int Size, class Precision , class Base > |
| void | TooN::Fill (Vector< Size, Precision, Base > &v, const Precision &p) |
| |
| template<int Rows, int Cols, class Precision , class Base > |
| void | TooN::Fill (Matrix< Rows, Cols, Precision, Base > &m, const Precision &p) |
| |
| template<int Size, class Precision , class Base > |
| Precision | TooN::norm (const Vector< Size, Precision, Base > &v) |
| | Compute the \(L_2\) norm of v. More...
|
| |
| template<int Size, class Precision , class Base > |
| Precision | TooN::norm_sq (const Vector< Size, Precision, Base > &v) |
| | Compute the \(L_2^2\) norm of v. More...
|
| |
| template<int Size, class Precision , class Base > |
| Precision | TooN::norm_1 (const Vector< Size, Precision, Base > &v) |
| | Compute the \(L_1\) norm of v. More...
|
| |
| template<int Size, class Precision , class Base > |
| Precision | TooN::norm_inf (const Vector< Size, Precision, Base > &v) |
| | Compute the \(L_\infty\) norm of v. More...
|
| |
| template<int Size, class Precision , class Base > |
| Precision | TooN::norm_2 (const Vector< Size, Precision, Base > &v) |
| | Compute the \(L_2\) norm of v. More...
|
| |
| template<int Size, class Precision , class Base > |
| Vector< Size, Precision > | TooN::unit (const Vector< Size, Precision, Base > &v) |
| | Compute a the unit vector \(\hat{v}\). More...
|
| |
| template<int Size, class Precision , class Base > |
| void | TooN::normalize (Vector< Size, Precision, Base > &&v) |
| | Normalize a vector in place. More...
|
| |
| template<int Size, typename Precision , typename Base > |
| Vector<(Size==Dynamic?Dynamic:Size-1)+0, Precision > | TooN::project (const Vector< Size, Precision, Base > &v) |
| | For a vector v of length i, return \([v_1, v_2, \cdots, v_{i-1}] / v_i \). More...
|
| |
| template<int Size, typename Precision , typename Base > |
| Vector<(Size==Dynamic?Dynamic:Size+1)+0, Precision > | TooN::unproject (const Vector< Size, Precision, Base > &v) |
| | For a vector v of length i, return \([v_1, v_2, \cdots, v_{i}, 1]\). More...
|
| |
| template<int R, int C, typename P , typename B > |
| P | TooN::norm_fro (const Matrix< R, C, P, B > &m) |
| | Frobenius (root of sum of squares) norm of input matrix m. More...
|
| |
|
template<int R, int C, typename P , typename B > |
| P | TooN::norm_inf (const Matrix< R, C, P, B > &m) |
| | L∞ (row sum) norm of input matrix m computes the maximum of the sums of absolute values over rows
|
| |
|
template<int R, int C, typename P , typename B > |
| P | TooN::norm_1 (const Matrix< R, C, P, B > &m) |
| | L1 (col sum) norm of input matrix m computes the maximum of the sums of absolute values over columns
|
| |
| template<int R, int C, typename P , typename B > |
| Matrix< R, C, P > | TooN::exp (const Matrix< R, C, P, B > &m) |
| | computes the matrix exponential of a matrix m by scaling m by 1/(powers of 2), using Taylor series and squaring again. More...
|
| |
| template<int R, int C, typename P , typename B > |
| Matrix< R, C, P > | TooN::sqrt (const Matrix< R, C, P, B > &m) |
| | computes a matrix square root of a matrix m by the product form of the Denman and Beavers iteration as given in Chen et al. More...
|
| |
| template<int R, int C, typename P , typename B > |
| Matrix< R, C, P > | TooN::log (const Matrix< R, C, P, B > &m) |
| | computes the matrix logarithm of a matrix m using the inverse scaling and squaring method. More...
|
| |
|
template<int S, class P , class B > |
| bool | TooN::isfinite (const Vector< S, P, B > &v) |
| | Returns true if every element is finite.
|
| |
|
template<int S, class P , class B > |
| bool | TooN::isnan (const Vector< S, P, B > &v) |
| | Returns true if any element is NaN.
|
| |
| template<int Rows, int Cols, typename Precision , typename Base > |
| void | TooN::Symmetrize (Matrix< Rows, Cols, Precision, Base > &m) |
| | Symmetrize a matrix. More...
|
| |
|
template<int Rows, int Cols, typename Precision , typename Base > |
| Precision | TooN::trace (const Matrix< Rows, Cols, Precision, Base > &m) |
| | computes the trace of a square matrix
|
| |
| template<int Size, class P , class B > |
| TooN::Matrix< 3, 3, P > | TooN::cross_product_matrix (const Vector< Size, P, B > &vec) |
| | creates an returns a cross product matrix M from a 3 vector v, such that for all vectors w, the following holds: v ^ w = M * w More...
|
| |
| template<int R, int C, class Precision , class Base > |
| Internal::MatrixStartFill< R, C, Precision, Base > | TooN::Fill (Matrix< R, C, Precision, Base > &m) |
| | Set up a matrix for filling. More...
|
| |
| template<int Size, class Precision , class Base > |
| Internal::VectorStartFill< Size, Precision, Base > | TooN::Fill (Vector< Size, Precision, Base > &v) |
| | Set up a vector for filling. More...
|
| |
|
template<int Rows, int Cols> |
| Matrix< Rows, Cols, double, Reference::RowMajor > | TooN::wrapMatrix (double *data) |
| | Wrap external data as a Matrix As usual, if template sizes are provided, then the run-time size is only used if the template size is not Dynamic.
|
| |
|
template<int Rows, int Cols> |
| const Matrix< Rows, Cols, const double, Reference::RowMajor > | TooN::wrapMatrix (const double *data) |
| |
|
template<int Rows, int Cols, class Precision > |
| Matrix< Rows, Cols, Precision, Reference::RowMajor > | TooN::wrapMatrix (Precision *data) |
| |
|
template<int Rows, int Cols, class Precision > |
| const Matrix< Rows, Cols, const Precision, Reference::RowMajor > | TooN::wrapMatrix (const Precision *data) |
| |
|
template<int Rows, int Cols> |
| Matrix< Rows, Cols, double, Reference::RowMajor > | TooN::wrapMatrix (double *data, int rows, int cols) |
| |
|
template<int Rows, int Cols> |
| const Matrix< Rows, Cols, const double, Reference::RowMajor > | TooN::wrapMatrix (const double *data, int rows, int cols) |
| |
|
template<int Rows, int Cols, class Precision > |
| Matrix< Rows, Cols, Precision, Reference::RowMajor > | TooN::wrapMatrix (Precision *data, int rows, int cols) |
| |
|
template<int Rows, int Cols, class Precision > |
| const Matrix< Rows, Cols, const Precision, Reference::RowMajor > | TooN::wrapMatrix (const Precision *data, int rows, int cols) |
| |
|
template<class Precision > |
| Matrix< Dynamic, Dynamic, Precision, Reference::RowMajor > | TooN::wrapMatrix (Precision *data, int rows, int cols) |
| |
|
template<class Precision > |
| const Matrix< Dynamic, Dynamic, const Precision, Reference::RowMajor > | TooN::wrapMatrix (const Precision *data, int rows, int cols) |
| |