5#include <Eigen/src/Core/Matrix.h>
26 const bool cyclicCommunication =
false;
28 Eigen::VectorXd a1(2);
29 Eigen::VectorXd a2(2);
30 Eigen::VectorXd a3(2);
31 Eigen::VectorXd b1(3);
32 Eigen::VectorXd b2(3);
33 Eigen::VectorXd b3(3);
42 singleValues(0) = 12.;
63 BOOST_TEST(svd_1.
rank() == 2);
BOOST_AUTO_TEST_SUITE(PreProcess)
BOOST_AUTO_TEST_SUITE_END()
BOOST_AUTO_TEST_CASE(testSVDFactorization)
#define PRECICE_TEST_SETUP(...)
Creates and attaches a TestSetup to a Boost test case.
void initialize(const bool needCyclicComm)
Initializes the acceleration.
Class that provides functionality to maintain a SVD decomposition of a matrix via successive rank-1 u...
void initialize(PtrParMatrixOps parMatOps, int globalRowsA, int globalRowsB)
: initializes the updated SVD factorization, i.e., sets the object for parallel matrix-matrix operati...
Vector & singularValues()
: returns a matrix representation of the orthogonal matrix Sigma, A = Psi * Sigma * Phi^T
Rank rank()
: returns the rank of the truncated SVD factorization
void update(const Eigen::MatrixBase< Derived1 > &A, const Eigen::MatrixBase< Derived2 > &B)
: updates the SVD decomposition with the rank-1 update A*B^T, i.e., _psi * _sigma * _phi^T + A*B^T an...
contains implementations of acceleration schemes.
boost::test_tools::predicate_result equals(const std::vector< float > &VectorA, const std::vector< float > &VectorB, float tolerance)
equals to be used in tests. Compares two std::vectors using a given tolerance. Prints both operands o...
Main namespace of the precice library.