Namespaces | Functions | Variables
testMatrix.cpp File Reference

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>
Include dependency graph for testMatrix.cpp:

Go to the source code of this file.

Namespaces

 cholesky
 

Functions

int main ()
 
 TEST (Matrix, AbsoluteError)
 
 TEST (Matrix, addition)
 
 TEST (Matrix, addition_in_place)
 
 TEST (Matrix, backsubtitution)
 
 TEST (Matrix, cholesky_inverse)
 
 TEST (Matrix, col_major)
 
 TEST (Matrix, col_major_access)
 
 TEST (Matrix, collect1)
 
 TEST (Matrix, collect2)
 
 TEST (Matrix, collect3)
 
 TEST (Matrix, column)
 
 TEST (Matrix, constructor_data)
 
 TEST (Matrix, diagMatrices)
 
 TEST (Matrix, DLT)
 
 TEST (Matrix, eigen_QR)
 
 TEST (Matrix, equal)
 
 TEST (Matrix, equal_nan)
 
 TEST (Matrix, householder)
 
 TEST (Matrix, householder_colMajor)
 
 TEST (Matrix, insert_sub)
 
 TEST (Matrix, inverse)
 
 TEST (Matrix, inverse2)
 
 TEST (Matrix, inverse_square_root)
 
 TEST (Matrix, linear_dependent)
 
 TEST (Matrix, linear_dependent2)
 
 TEST (Matrix, linear_dependent3)
 
 TEST (Matrix, LLt)
 
 TEST (Matrix, Matrix24IsVectorSpace)
 
 TEST (Matrix, Matrix_)
 
 TEST (Matrix, matrix_vector_multiplication)
 
 TEST (Matrix, MatrixIsVectorSpace)
 
 TEST (Matrix, MatrixRef)
 
 TEST (Matrix, multiplication)
 
 TEST (Matrix, nrRowsAndnrCols)
 
 TEST (Matrix, qr)
 
 TEST (Matrix, row)
 
 TEST (Matrix, RowMajorIsVectorSpace)
 
 TEST (Matrix, RowVectorIsVectorSpace)
 
 TEST (Matrix, RtR)
 
 TEST (Matrix, scalar_divide)
 
 TEST (Matrix, scalar_matrix_multiplication)
 
 TEST (Matrix, scale_columns)
 
 TEST (Matrix, scale_rows)
 
 TEST (Matrix, scale_rows_mask)
 
 TEST (Matrix, skewSymmetric)
 
 TEST (Matrix, special_comma_initializer)
 
 TEST (Matrix, stack)
 
 TEST (Matrix, stream_read)
 
 TEST (Matrix, sub)
 
 TEST (Matrix, subtraction)
 
 TEST (Matrix, subtraction_in_place)
 
 TEST (Matrix, svd1)
 
 TEST (Matrix, svd2)
 
 TEST (Matrix, svd3)
 
 TEST (Matrix, svd4)
 
 TEST (Matrix, trans)
 
 TEST (Matrix, VectorIsVectorSpace)
 
 TEST (Matrix, weighted_elimination)
 
 TEST (Matrix, zero_below_diagonal)
 

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
 

Detailed Description

Unit test for Matrix Library.

Author
Christian Potthast
Carlos Nieto

Definition in file testMatrix.cpp.

Function Documentation

◆ main()

int main ( )

Definition at line 1202 of file testMatrix.cpp.

◆ TEST() [1/59]

TEST ( Matrix  ,
AbsoluteError   
)

Definition at line 1177 of file testMatrix.cpp.

◆ TEST() [2/59]

TEST ( Matrix  ,
addition   
)

Definition at line 482 of file testMatrix.cpp.

◆ TEST() [3/59]

TEST ( Matrix  ,
addition_in_place   
)

Definition at line 491 of file testMatrix.cpp.

◆ TEST() [4/59]

TEST ( Matrix  ,
backsubtitution   
)

Definition at line 731 of file testMatrix.cpp.

◆ TEST() [5/59]

TEST ( Matrix  ,
cholesky_inverse   
)

Definition at line 987 of file testMatrix.cpp.

◆ TEST() [6/59]

TEST ( Matrix  ,
col_major   
)

Definition at line 108 of file testMatrix.cpp.

◆ TEST() [7/59]

TEST ( Matrix  ,
col_major_access   
)

Definition at line 887 of file testMatrix.cpp.

◆ TEST() [8/59]

TEST ( Matrix  ,
collect1   
)

Definition at line 119 of file testMatrix.cpp.

◆ TEST() [9/59]

TEST ( Matrix  ,
collect2   
)

Definition at line 136 of file testMatrix.cpp.

◆ TEST() [10/59]

TEST ( Matrix  ,
collect3   
)

Definition at line 156 of file testMatrix.cpp.

◆ TEST() [11/59]

TEST ( Matrix  ,
column   
)

Definition at line 196 of file testMatrix.cpp.

◆ TEST() [12/59]

TEST ( Matrix  ,
constructor_data   
)

Definition at line 35 of file testMatrix.cpp.

◆ TEST() [13/59]

TEST ( Matrix  ,
diagMatrices   
)

Definition at line 249 of file testMatrix.cpp.

◆ TEST() [14/59]

TEST ( Matrix  ,
DLT   
)

Definition at line 1129 of file testMatrix.cpp.

◆ TEST() [15/59]

TEST ( Matrix  ,
eigen_QR   
)

Definition at line 814 of file testMatrix.cpp.

◆ TEST() [16/59]

TEST ( Matrix  ,
equal   
)

Definition at line 423 of file testMatrix.cpp.

◆ TEST() [17/59]

TEST ( Matrix  ,
equal_nan   
)

Definition at line 453 of file testMatrix.cpp.

◆ TEST() [18/59]

TEST ( Matrix  ,
householder   
)

Definition at line 756 of file testMatrix.cpp.

◆ TEST() [19/59]

TEST ( Matrix  ,
householder_colMajor   
)

Definition at line 785 of file testMatrix.cpp.

◆ TEST() [20/59]

TEST ( Matrix  ,
insert_sub   
)

Definition at line 234 of file testMatrix.cpp.

◆ TEST() [21/59]

TEST ( Matrix  ,
inverse   
)

Definition at line 655 of file testMatrix.cpp.

◆ TEST() [22/59]

TEST ( Matrix  ,
inverse2   
)

Definition at line 701 of file testMatrix.cpp.

◆ TEST() [23/59]

TEST ( Matrix  ,
inverse_square_root   
)

Definition at line 926 of file testMatrix.cpp.

◆ TEST() [24/59]

TEST ( Matrix  ,
linear_dependent   
)

Definition at line 993 of file testMatrix.cpp.

◆ TEST() [25/59]

TEST ( Matrix  ,
linear_dependent2   
)

Definition at line 1001 of file testMatrix.cpp.

◆ TEST() [26/59]

TEST ( Matrix  ,
linear_dependent3   
)

Definition at line 1009 of file testMatrix.cpp.

◆ TEST() [27/59]

TEST ( Matrix  ,
LLt   
)

Definition at line 978 of file testMatrix.cpp.

◆ TEST() [28/59]

TEST ( Matrix  ,
Matrix24IsVectorSpace   
)

Definition at line 1149 of file testMatrix.cpp.

◆ TEST() [29/59]

TEST ( Matrix  ,
Matrix_   
)

Definition at line 49 of file testMatrix.cpp.

◆ TEST() [30/59]

TEST ( Matrix  ,
matrix_vector_multiplication   
)

Definition at line 560 of file testMatrix.cpp.

◆ TEST() [31/59]

TEST ( Matrix  ,
MatrixIsVectorSpace   
)

Definition at line 1160 of file testMatrix.cpp.

◆ TEST() [32/59]

TEST ( Matrix  ,
MatrixRef   
)

Definition at line 1192 of file testMatrix.cpp.

◆ TEST() [33/59]

TEST ( Matrix  ,
multiplication   
)

Definition at line 520 of file testMatrix.cpp.

◆ TEST() [34/59]

TEST ( Matrix  ,
nrRowsAndnrCols   
)

Definition at line 574 of file testMatrix.cpp.

◆ TEST() [35/59]

TEST ( Matrix  ,
qr   
)

Definition at line 845 of file testMatrix.cpp.

◆ TEST() [36/59]

TEST ( Matrix  ,
row   
)

Definition at line 215 of file testMatrix.cpp.

◆ TEST() [37/59]

TEST ( Matrix  ,
RowMajorIsVectorSpace   
)

Definition at line 1153 of file testMatrix.cpp.

◆ TEST() [38/59]

TEST ( Matrix  ,
RowVectorIsVectorSpace   
)

Definition at line 1168 of file testMatrix.cpp.

◆ TEST() [39/59]

TEST ( Matrix  ,
RtR   
)

Definition at line 982 of file testMatrix.cpp.

◆ TEST() [40/59]

TEST ( Matrix  ,
scalar_divide   
)

Definition at line 582 of file testMatrix.cpp.

◆ TEST() [41/59]

TEST ( Matrix  ,
scalar_matrix_multiplication   
)

Definition at line 540 of file testMatrix.cpp.

◆ TEST() [42/59]

TEST ( Matrix  ,
scale_columns   
)

Definition at line 293 of file testMatrix.cpp.

◆ TEST() [43/59]

TEST ( Matrix  ,
scale_rows   
)

Definition at line 331 of file testMatrix.cpp.

◆ TEST() [44/59]

TEST ( Matrix  ,
scale_rows_mask   
)

Definition at line 369 of file testMatrix.cpp.

◆ TEST() [45/59]

TEST ( Matrix  ,
skewSymmetric   
)

Definition at line 407 of file testMatrix.cpp.

◆ TEST() [46/59]

TEST ( Matrix  ,
special_comma_initializer   
)

Definition at line 79 of file testMatrix.cpp.

◆ TEST() [47/59]

TEST ( Matrix  ,
stack   
)

Definition at line 173 of file testMatrix.cpp.

◆ TEST() [48/59]

TEST ( Matrix  ,
stream_read   
)

Definition at line 273 of file testMatrix.cpp.

◆ TEST() [49/59]

TEST ( Matrix  ,
sub   
)

Definition at line 867 of file testMatrix.cpp.

◆ TEST() [50/59]

TEST ( Matrix  ,
subtraction   
)

Definition at line 501 of file testMatrix.cpp.

◆ TEST() [51/59]

TEST ( Matrix  ,
subtraction_in_place   
)

Definition at line 510 of file testMatrix.cpp.

◆ TEST() [52/59]

TEST ( Matrix  ,
svd1   
)

Definition at line 1017 of file testMatrix.cpp.

◆ TEST() [53/59]

TEST ( Matrix  ,
svd2   
)

Definition at line 1036 of file testMatrix.cpp.

◆ TEST() [54/59]

TEST ( Matrix  ,
svd3   
)

Definition at line 1059 of file testMatrix.cpp.

◆ TEST() [55/59]

TEST ( Matrix  ,
svd4   
)

Definition at line 1087 of file testMatrix.cpp.

◆ TEST() [56/59]

TEST ( Matrix  ,
trans   
)

Definition at line 879 of file testMatrix.cpp.

◆ TEST() [57/59]

TEST ( Matrix  ,
VectorIsVectorSpace   
)

Definition at line 1164 of file testMatrix.cpp.

◆ TEST() [58/59]

TEST ( Matrix  ,
weighted_elimination   
)

Definition at line 895 of file testMatrix.cpp.

◆ TEST() [59/59]

TEST ( Matrix  ,
zero_below_diagonal   
)

Definition at line 600 of file testMatrix.cpp.

Variable Documentation

◆ inf

double inf = std::numeric_limits<double>::infinity()
static

Definition at line 31 of file testMatrix.cpp.

◆ sampleA

Matrix sampleA = (Matrix(3, 2) << 0.,-2., 0., 0., 3., 0.).finished()
static

Sample A matrix for SVD.

Definition at line 1032 of file testMatrix.cpp.

◆ sampleAt

Matrix sampleAt = trans(sampleA)
static

Definition at line 1033 of file testMatrix.cpp.

◆ tol

const double tol = 1e-9
static

Definition at line 32 of file testMatrix.cpp.



gtsam
Author(s):
autogenerated on Sun Dec 22 2024 04:18:35