python - Numpy Matrix inverse with float128 type -
i got matrix 'x' of float128 values , getting next error when:
> q = (inv(xt * x) * xt) * n > array type float128 unsupported in linalg
where xt transposed x , n other float128 matrix. other operations matrix handled correctly transposing or matrix product.
yes need float128 case, otherwise results differing ones closer real values taking reference.
there no float128 data type in numpy. supported numpy data types can found here: http://docs.scipy.org/doc/numpy-1.10.1/user/basics.types.html
if need work around try use npy_longdouble
numpy c api http://docs.scipy.org/doc/numpy-1.10.0/reference/c-api.dtype.html
Comments
Post a Comment