
I noticed that hmatrix defines the auxiliary type 'Element', and provides instances for Double and Complex, but not Float. Then Vector and Matrix are defined in terms of Element... is there any reason why Float is intentionally left out. I'd like to use Numeric.LinearAlgebra with both single and double precision so as to compare results and times... could I?

MAN wrote:
I noticed that hmatrix defines the auxiliary type 'Element', and provides instances for Double and Complex, but not Float. Then Vector and Matrix are defined in terms of Element... is there any reason why Float is intentionally left out.
No, it is just that other improvements have higher priority... Float elements could be included in the future if really required.
I'd like to use Numeric.LinearAlgebra with both single and double precision so as to compare results and times... could I?
I am not an expert, but it looks like Float computations are not faster than Double in typical cpus. For big arrays, differences are caused by memory/cache usage. http://stackoverflow.com/questions/158889/are-doubles-faster-than-floats-in-... Alberto
participants (2)
-
Alberto Ruiz
-
MAN