Macros | Functions
product_trsolve.cpp File Reference
#include "main.h"
Include dependency graph for product_trsolve.cpp:

Go to the source code of this file.

Macros

#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)
 

Macro Definition Documentation

#define VERIFY_TRSM (   TRI,
  XB 
)
Value:
{ \
(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); \
}
#define VERIFY_IS_APPROX(a, b)
A setRandom()

Definition at line 12 of file product_trsolve.cpp.

#define VERIFY_TRSM_ONTHERIGHT (   TRI,
  XB 
)
Value:
{ \
(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()); \
}
#define VERIFY_IS_APPROX(a, b)
A setRandom()

Definition at line 21 of file product_trsolve.cpp.

Function Documentation

void test_product_trsolve ( )

Definition at line 76 of file product_trsolve.cpp.

template<typename Scalar , int Size, int Cols>
void trsolve ( int  size = Size,
int  cols = Cols 
)

Definition at line 30 of file product_trsolve.cpp.



gtsam
Author(s):
autogenerated on Sat May 8 2021 02:51:32