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 <iostream>
#include <sstream>
#include <optional>
#include <functional>
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, Matrix24IsVectorSpace) | |
TEST (Matrix, RowMajorIsVectorSpace) | |
TEST (Matrix, MatrixIsVectorSpace) | |
TEST (Matrix, VectorIsVectorSpace) | |
TEST (Matrix, RowVectorIsVectorSpace) | |
TEST (Matrix, AbsoluteError) | |
TEST (Matrix, MatrixRef) | |
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 1202 of file testMatrix.cpp.
TEST | ( | Matrix | , |
constructor_data | |||
) |
Definition at line 35 of file testMatrix.cpp.
TEST | ( | Matrix | , |
Matrix_ | |||
) |
Definition at line 49 of file testMatrix.cpp.
TEST | ( | Matrix | , |
special_comma_initializer | |||
) |
Definition at line 79 of file testMatrix.cpp.
TEST | ( | Matrix | , |
col_major | |||
) |
Definition at line 108 of file testMatrix.cpp.
TEST | ( | Matrix | , |
collect1 | |||
) |
Definition at line 119 of file testMatrix.cpp.
TEST | ( | Matrix | , |
collect2 | |||
) |
Definition at line 136 of file testMatrix.cpp.
TEST | ( | Matrix | , |
collect3 | |||
) |
Definition at line 156 of file testMatrix.cpp.
TEST | ( | Matrix | , |
stack | |||
) |
Definition at line 173 of file testMatrix.cpp.
TEST | ( | Matrix | , |
column | |||
) |
Definition at line 196 of file testMatrix.cpp.
Definition at line 215 of file testMatrix.cpp.
TEST | ( | Matrix | , |
insert_sub | |||
) |
Definition at line 234 of file testMatrix.cpp.
TEST | ( | Matrix | , |
diagMatrices | |||
) |
Definition at line 249 of file testMatrix.cpp.
TEST | ( | Matrix | , |
stream_read | |||
) |
Definition at line 273 of file testMatrix.cpp.
TEST | ( | Matrix | , |
scale_columns | |||
) |
Definition at line 293 of file testMatrix.cpp.
TEST | ( | Matrix | , |
scale_rows | |||
) |
Definition at line 331 of file testMatrix.cpp.
TEST | ( | Matrix | , |
scale_rows_mask | |||
) |
Definition at line 369 of file testMatrix.cpp.
TEST | ( | Matrix | , |
skewSymmetric | |||
) |
Definition at line 407 of file testMatrix.cpp.
TEST | ( | Matrix | , |
equal | |||
) |
Definition at line 423 of file testMatrix.cpp.
TEST | ( | Matrix | , |
equal_nan | |||
) |
Definition at line 453 of file testMatrix.cpp.
TEST | ( | Matrix | , |
addition | |||
) |
Definition at line 482 of file testMatrix.cpp.
TEST | ( | Matrix | , |
addition_in_place | |||
) |
Definition at line 491 of file testMatrix.cpp.
TEST | ( | Matrix | , |
subtraction | |||
) |
Definition at line 501 of file testMatrix.cpp.
TEST | ( | Matrix | , |
subtraction_in_place | |||
) |
Definition at line 510 of file testMatrix.cpp.
TEST | ( | Matrix | , |
multiplication | |||
) |
Definition at line 520 of file testMatrix.cpp.
TEST | ( | Matrix | , |
scalar_matrix_multiplication | |||
) |
Definition at line 540 of file testMatrix.cpp.
TEST | ( | Matrix | , |
matrix_vector_multiplication | |||
) |
Definition at line 560 of file testMatrix.cpp.
TEST | ( | Matrix | , |
nrRowsAndnrCols | |||
) |
Definition at line 574 of file testMatrix.cpp.
TEST | ( | Matrix | , |
scalar_divide | |||
) |
Definition at line 582 of file testMatrix.cpp.
TEST | ( | Matrix | , |
zero_below_diagonal | |||
) |
Definition at line 600 of file testMatrix.cpp.
Definition at line 655 of file testMatrix.cpp.
TEST | ( | Matrix | , |
inverse2 | |||
) |
Definition at line 701 of file testMatrix.cpp.
TEST | ( | Matrix | , |
backsubtitution | |||
) |
Definition at line 731 of file testMatrix.cpp.
TEST | ( | Matrix | , |
householder | |||
) |
Definition at line 756 of file testMatrix.cpp.
TEST | ( | Matrix | , |
householder_colMajor | |||
) |
Definition at line 785 of file testMatrix.cpp.
TEST | ( | Matrix | , |
eigen_QR | |||
) |
Definition at line 814 of file testMatrix.cpp.
Definition at line 845 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 926 of file testMatrix.cpp.
TEST | ( | Matrix | , |
LLt | |||
) |
Definition at line 978 of file testMatrix.cpp.
TEST | ( | Matrix | , |
RtR | |||
) |
Definition at line 982 of file testMatrix.cpp.
TEST | ( | Matrix | , |
cholesky_inverse | |||
) |
Definition at line 987 of file testMatrix.cpp.
TEST | ( | Matrix | , |
linear_dependent | |||
) |
Definition at line 993 of file testMatrix.cpp.
TEST | ( | Matrix | , |
linear_dependent2 | |||
) |
Definition at line 1001 of file testMatrix.cpp.
TEST | ( | Matrix | , |
linear_dependent3 | |||
) |
Definition at line 1009 of file testMatrix.cpp.
TEST | ( | Matrix | , |
svd1 | |||
) |
Definition at line 1017 of file testMatrix.cpp.
TEST | ( | Matrix | , |
svd2 | |||
) |
Definition at line 1036 of file testMatrix.cpp.
TEST | ( | Matrix | , |
svd3 | |||
) |
Definition at line 1059 of file testMatrix.cpp.
TEST | ( | Matrix | , |
svd4 | |||
) |
Definition at line 1087 of file testMatrix.cpp.
TEST | ( | Matrix | , |
DLT | |||
) |
Definition at line 1129 of file testMatrix.cpp.
TEST | ( | Matrix | , |
Matrix24IsVectorSpace | |||
) |
Definition at line 1149 of file testMatrix.cpp.
TEST | ( | Matrix | , |
RowMajorIsVectorSpace | |||
) |
Definition at line 1153 of file testMatrix.cpp.
TEST | ( | Matrix | , |
MatrixIsVectorSpace | |||
) |
Definition at line 1160 of file testMatrix.cpp.
TEST | ( | Matrix | , |
VectorIsVectorSpace | |||
) |
Definition at line 1164 of file testMatrix.cpp.
TEST | ( | Matrix | , |
RowVectorIsVectorSpace | |||
) |
Definition at line 1168 of file testMatrix.cpp.
TEST | ( | Matrix | , |
AbsoluteError | |||
) |
Definition at line 1177 of file testMatrix.cpp.
TEST | ( | Matrix | , |
MatrixRef | |||
) |
Definition at line 1192 of file testMatrix.cpp.
|
static |
Definition at line 31 of file testMatrix.cpp.
Sample A matrix for SVD.
Definition at line 1032 of file testMatrix.cpp.
Definition at line 1033 of file testMatrix.cpp.
|
static |
Definition at line 32 of file testMatrix.cpp.