kenweezy / scalalab

Automatically exported from code.google.com/p/scalalab
0 stars 0 forks source link

Can I use BigDecimal in Matrix #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Hi,

The matrix is Array[Array[Double]], Could I use BigDecimal?

Original issue reported on code.google.com by pool...@gmail.com on 29 May 2012 at 7:20

GoogleCodeExporter commented 9 years ago
Java is not generic in primitive types, and since all the basic Matrix classes 
of ScalaSci operate with Double, I do not see it possible to use BigDecimal, 
without an explicit conversion. 
I do not trying it, but it seems to me that BigDecimal matrices will be much 
slower than Double matrices, aren't they?

Original comment by st...@teikav.edu.gr on 31 May 2012 at 12:50