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

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

Definition at line 27 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()); \
  }

Definition at line 36 of file product_trsolve.cpp.


Function Documentation

Definition at line 91 of file product_trsolve.cpp.

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

Definition at line 45 of file product_trsolve.cpp.



re_vision
Author(s): Dorian Galvez-Lopez
autogenerated on Sun Jan 5 2014 11:33:46