mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
fix 168 : now TriangularView::solve returns by value making TriangularView::solveInPlace less important.
Also fix the very outdated documentation of this function.
This commit is contained in:
@@ -28,12 +28,18 @@
|
||||
(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_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()); \
|
||||
}
|
||||
|
||||
template<typename Scalar,int Size, int Cols> void trsolve(int size=Size,int cols=Cols)
|
||||
|
||||
Reference in New Issue
Block a user