Add some comments

release/4.3a0
Sungtae An 2014-11-06 14:26:46 -05:00
parent c212ba0984
commit a89781a9e6
1 changed files with 5 additions and 0 deletions

View File

@ -13,6 +13,7 @@
* @file testPCGSolver.cpp * @file testPCGSolver.cpp
* @brief Unit tests for PCGSolver class * @brief Unit tests for PCGSolver class
* @author Yong-Dian Jian * @author Yong-Dian Jian
* @date Aug 06, 2014
*/ */
#include <tests/smallExample.h> #include <tests/smallExample.h>
@ -51,6 +52,7 @@ using symbol_shorthand::X;
using symbol_shorthand::L; using symbol_shorthand::L;
/* ************************************************************************* */ /* ************************************************************************* */
// Test cholesky decomposition
TEST( PCGSolver, llt ) { TEST( PCGSolver, llt ) {
Matrix R = (Matrix(3,3) << Matrix R = (Matrix(3,3) <<
1., -1., -1., 1., -1., -1.,
@ -90,6 +92,7 @@ TEST( PCGSolver, llt ) {
} }
/* ************************************************************************* */ /* ************************************************************************* */
// Test Dummy Preconditioner
TEST( PCGSolver, dummy ) TEST( PCGSolver, dummy )
{ {
LevenbergMarquardtParams paramsPCG; LevenbergMarquardtParams paramsPCG;
@ -110,6 +113,7 @@ TEST( PCGSolver, dummy )
} }
/* ************************************************************************* */ /* ************************************************************************* */
// Test Block-Jacobi Precondioner
TEST( PCGSolver, blockjacobi ) TEST( PCGSolver, blockjacobi )
{ {
LevenbergMarquardtParams paramsPCG; LevenbergMarquardtParams paramsPCG;
@ -130,6 +134,7 @@ TEST( PCGSolver, blockjacobi )
} }
/* ************************************************************************* */ /* ************************************************************************* */
// Test Incremental Subgraph PCG Solver
TEST( PCGSolver, subgraph ) TEST( PCGSolver, subgraph )
{ {
LevenbergMarquardtParams paramsPCG; LevenbergMarquardtParams paramsPCG;