#include "main.h"
Go to the source code of this file.
Defines | |
#define | VERIFY_TRSM(TRI, XB) |
#define | VERIFY_TRSM_ONTHERIGHT(TRI, XB) |
Functions | |
void | test_product_trsolve () |
template<typename Scalar , int Size, int Cols> | |
void | trsolve (int size=Size, int cols=Cols) |
#define VERIFY_TRSM | ( | TRI, | |
XB | |||
) |
{ \ (XB).setRandom(); ref = (XB); \ (TRI).solveInPlace(XB); \ VERIFY_IS_APPROX((TRI).toDenseMatrix() * (XB), ref); \ (XB).setRandom(); ref = (XB); \ (XB) = (TRI).solve(XB); \ VERIFY_IS_APPROX((TRI).toDenseMatrix() * (XB), ref); \ }
Definition at line 27 of file product_trsolve.cpp.
#define VERIFY_TRSM_ONTHERIGHT | ( | TRI, | |
XB | |||
) |
{ \ (XB).setRandom(); ref = (XB); \ (TRI).transpose().template solveInPlace<OnTheRight>(XB.transpose()); \ VERIFY_IS_APPROX((XB).transpose() * (TRI).transpose().toDenseMatrix(), ref.transpose()); \ (XB).setRandom(); ref = (XB); \ (XB).transpose() = (TRI).transpose().template solve<OnTheRight>(XB.transpose()); \ VERIFY_IS_APPROX((XB).transpose() * (TRI).transpose().toDenseMatrix(), ref.transpose()); \ }
Definition at line 36 of file product_trsolve.cpp.
void test_product_trsolve | ( | ) |
Definition at line 91 of file product_trsolve.cpp.
void trsolve | ( | int | size = Size , |
int | cols = Cols |
||
) |
Definition at line 45 of file product_trsolve.cpp.