mpmath icon indicating copy to clipboard operation
mpmath copied to clipboard

How to run svd_r_raw?

Open pygabc1 opened this issue 3 years ago • 1 comments

I like to run svd_r_raw, and how to run it? Also, in svd_r_raw(ctx, ...) what is ctx? How to call ctx? Thanks.

pygabc1 avatar Oct 09 '20 03:10 pygabc1

svd_r_raw is not meant to be called directly. use svd_r instead: >>> from mpmath import mp >>> A = mp.matrix([[2, -2, -1], [3, 4, -2], [-2, -2, 0]]) >>> S = mp.svd_r(A, compute_uv = False) If you really, really want to use svd_r_raw directly (ctx has to be mp): >>> from mpmath.matrices.eigen_symmetric import svd_r_raw; >>> svd_r_raw(mp,A)

thartmann15 avatar Oct 11 '20 19:10 thartmann15