test_LLT.py
Go to the documentation of this file.
1 import eigenpy
2 eigenpy.switchToNumpyArray()
3 
4 import numpy as np
5 import numpy.linalg as la
6 
7 dim = 100
8 A = np.random.rand(dim,dim)
9 
10 A = (A + A.T)*0.5 + np.diag(10. + np.random.rand(dim))
11 
12 llt = eigenpy.LLT(A)
13 
14 L = llt.matrixL()
15 
16 assert eigenpy.is_approx(L.dot(np.transpose(L)),A)
EIGEN_DONT_INLINE bool is_approx(const Eigen::MatrixBase< MatrixType1 > &mat1, const Eigen::MatrixBase< MatrixType2 > &mat2)
Definition: is-approx.hpp:21


eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Apr 17 2021 02:37:59