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

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

Macro Definition Documentation

◆ VERIFY_TRSM

#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); \
}

Definition at line 12 of file product_trsolve.cpp.

◆ VERIFY_TRSM_ONTHERIGHT

#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()); \
}

Definition at line 21 of file product_trsolve.cpp.

Function Documentation

◆ EIGEN_DECLARE_TEST()

EIGEN_DECLARE_TEST ( product_trsolve  )

Definition at line 102 of file product_trsolve.cpp.

◆ trsolve()

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

Definition at line 30 of file product_trsolve.cpp.

setRandom
A setRandom()
ref
Reference counting helper.
Definition: object.h:67


gtsam
Author(s):
autogenerated on Fri Nov 1 2024 03:43:20