Unit test for Matrix Library. More...
#include <gtsam/base/Matrix.h>#include <gtsam/base/VectorSpace.h>#include <gtsam/base/testLie.h>#include <CppUnitLite/TestHarness.h>#include <boost/tuple/tuple.hpp>#include <iostream>#include <sstream>
Go to the source code of this file.
Namespaces | |
| cholesky | |
Functions | |
| int | main () |
| TEST (Matrix, constructor_data) | |
| TEST (Matrix, Matrix_) | |
| TEST (Matrix, special_comma_initializer) | |
| TEST (Matrix, col_major) | |
| TEST (Matrix, collect1) | |
| TEST (Matrix, collect2) | |
| TEST (Matrix, collect3) | |
| TEST (Matrix, stack) | |
| TEST (Matrix, column) | |
| TEST (Matrix, row) | |
| TEST (Matrix, insert_sub) | |
| TEST (Matrix, diagMatrices) | |
| TEST (Matrix, stream_read) | |
| TEST (Matrix, scale_columns) | |
| TEST (Matrix, scale_rows) | |
| TEST (Matrix, scale_rows_mask) | |
| TEST (Matrix, skewSymmetric) | |
| TEST (Matrix, equal) | |
| TEST (Matrix, equal_nan) | |
| TEST (Matrix, addition) | |
| TEST (Matrix, addition_in_place) | |
| TEST (Matrix, subtraction) | |
| TEST (Matrix, subtraction_in_place) | |
| TEST (Matrix, multiplication) | |
| TEST (Matrix, scalar_matrix_multiplication) | |
| TEST (Matrix, matrix_vector_multiplication) | |
| TEST (Matrix, nrRowsAndnrCols) | |
| TEST (Matrix, scalar_divide) | |
| TEST (Matrix, zero_below_diagonal) | |
| TEST (Matrix, inverse) | |
| TEST (Matrix, inverse2) | |
| TEST (Matrix, backsubtitution) | |
| TEST (Matrix, householder) | |
| TEST (Matrix, householder_colMajor) | |
| TEST (Matrix, eigen_QR) | |
| TEST (Matrix, qr) | |
| TEST (Matrix, sub) | |
| TEST (Matrix, trans) | |
| TEST (Matrix, col_major_access) | |
| TEST (Matrix, weighted_elimination) | |
| TEST (Matrix, inverse_square_root) | |
| TEST (Matrix, LLt) | |
| TEST (Matrix, RtR) | |
| TEST (Matrix, cholesky_inverse) | |
| TEST (Matrix, linear_dependent) | |
| TEST (Matrix, linear_dependent2) | |
| TEST (Matrix, linear_dependent3) | |
| TEST (Matrix, svd1) | |
| TEST (Matrix, svd2) | |
| TEST (Matrix, svd3) | |
| TEST (Matrix, svd4) | |
| TEST (Matrix, DLT) | |
| TEST (Matrix, IsVectorSpace) | |
| TEST (Matrix, AbsoluteError) | |
Variables | |
| Matrix | cholesky::expected |
| static double | inf = std::numeric_limits<double>::infinity() |
| Matrix | cholesky::M |
| static Matrix | sampleA = (Matrix(3, 2) << 0.,-2., 0., 0., 3., 0.).finished() |
| Sample A matrix for SVD. More... | |
| static Matrix | sampleAt = trans(sampleA) |
| static const double | tol = 1e-9 |
Unit test for Matrix Library.
Definition in file testMatrix.cpp.
| int main | ( | void | ) |
Definition at line 1180 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| constructor_data | |||
| ) |
Definition at line 34 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| Matrix_ | |||
| ) |
Definition at line 48 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| special_comma_initializer | |||
| ) |
Definition at line 78 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| col_major | |||
| ) |
Definition at line 107 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| collect1 | |||
| ) |
Definition at line 118 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| collect2 | |||
| ) |
Definition at line 135 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| collect3 | |||
| ) |
Definition at line 155 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| stack | |||
| ) |
Definition at line 172 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| column | |||
| ) |
Definition at line 195 of file testMatrix.cpp.
Definition at line 214 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| insert_sub | |||
| ) |
Definition at line 233 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| diagMatrices | |||
| ) |
Definition at line 248 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| stream_read | |||
| ) |
Definition at line 272 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| scale_columns | |||
| ) |
Definition at line 292 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| scale_rows | |||
| ) |
Definition at line 330 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| scale_rows_mask | |||
| ) |
Definition at line 368 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| skewSymmetric | |||
| ) |
Definition at line 406 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| equal | |||
| ) |
Definition at line 422 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| equal_nan | |||
| ) |
Definition at line 452 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| addition | |||
| ) |
Definition at line 481 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| addition_in_place | |||
| ) |
Definition at line 490 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| subtraction | |||
| ) |
Definition at line 500 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| subtraction_in_place | |||
| ) |
Definition at line 509 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| multiplication | |||
| ) |
Definition at line 519 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| scalar_matrix_multiplication | |||
| ) |
Definition at line 539 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| matrix_vector_multiplication | |||
| ) |
Definition at line 559 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| nrRowsAndnrCols | |||
| ) |
Definition at line 573 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| scalar_divide | |||
| ) |
Definition at line 581 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| zero_below_diagonal | |||
| ) |
Definition at line 599 of file testMatrix.cpp.
Definition at line 654 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| inverse2 | |||
| ) |
Definition at line 700 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| backsubtitution | |||
| ) |
Definition at line 730 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| householder | |||
| ) |
Definition at line 755 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| householder_colMajor | |||
| ) |
Definition at line 784 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| eigen_QR | |||
| ) |
Definition at line 813 of file testMatrix.cpp.
Definition at line 844 of file testMatrix.cpp.
Definition at line 867 of file testMatrix.cpp.
Definition at line 879 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| col_major_access | |||
| ) |
Definition at line 887 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| weighted_elimination | |||
| ) |
Definition at line 895 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| inverse_square_root | |||
| ) |
Definition at line 929 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| LLt | |||
| ) |
Definition at line 981 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| RtR | |||
| ) |
Definition at line 985 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| cholesky_inverse | |||
| ) |
Definition at line 990 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| linear_dependent | |||
| ) |
Definition at line 996 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| linear_dependent2 | |||
| ) |
Definition at line 1004 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| linear_dependent3 | |||
| ) |
Definition at line 1012 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| svd1 | |||
| ) |
Definition at line 1020 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| svd2 | |||
| ) |
Definition at line 1039 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| svd3 | |||
| ) |
Definition at line 1062 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| svd4 | |||
| ) |
Definition at line 1090 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| DLT | |||
| ) |
Definition at line 1132 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| IsVectorSpace | |||
| ) |
Definition at line 1155 of file testMatrix.cpp.
| TEST | ( | Matrix | , |
| AbsoluteError | |||
| ) |
Definition at line 1166 of file testMatrix.cpp.
|
static |
Definition at line 30 of file testMatrix.cpp.
Sample A matrix for SVD.
Definition at line 1035 of file testMatrix.cpp.
Definition at line 1036 of file testMatrix.cpp.
|
static |
Definition at line 31 of file testMatrix.cpp.