而且我发现矩阵相乘也有问题,比如val M=DenseMatrix((1.0,2.0,3.0),(4.0,5.0,6.0))
val N=DenseMatrix((1.0,2.0),(3.0,4.0),(5.0,6.0))
val result=N*M,结果计算正确。但是下面的例子计算结果是错误的
val A=DenseMatrix((1.0,0.0,0.000175438596491,0.0),
(1.0,0.000071695151840,0.000095593535786,-0.000128453813713),
(1.0,0.000161047509903,0.000069504714800,0.000003390473893),
(1.0,0.000147342297325,0.000066541682663,-0.000068126008441),
(1.0,0.000120984143693,0.000127033350877,0.000002016402395),
(1.0,0.000149442735812,-0.000091800537713,0.000004269792452),
(1.0,0.000171825300658,-0.000034365060132,0.000008591265033),
(1.0,0.000072337784054,0.000045364373051,-0.000153258017065))
val c=A.t
val result1=c*A这个结果就是错误的,我现在开始怀疑是不是下面这些警告的问题,如果是应该怎么解决呢?我搜了好几天没整明白,我用的是Intellij IDEA,maven的pom文件应该怎么更改呢?跪求大神帮助呀 |