org.apache.mahout.math.Matrix.determinant()方法的使用及代码示例

x33g5p2x  于2022-01-25 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(131)

本文整理了Java中org.apache.mahout.math.Matrix.determinant()方法的一些代码示例,展示了Matrix.determinant()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.determinant()方法的具体详情如下:
包路径:org.apache.mahout.math.Matrix
类名称:Matrix
方法名:determinant

Matrix.determinant介绍

[英]Returns matrix determinator using Laplace theorem
[中]使用拉普拉斯定理返回矩阵确定器

代码示例

代码示例来源:origin: apache/mahout

@Test
public void testDeterminant() {
 Matrix m = matrixFactory(new double[][]{{1, 3, 4}, {5, 2, 3},
   {1, 4, 2}});
 assertEquals("determinant", 43.0, m.determinant(), EPSILON);
}

代码示例来源:origin: apache/mahout

ret += getQuick(0, i) * sign * minor.determinant();
sign *= -1;

代码示例来源:origin: stackoverflow.com

Matrix a = new CRSMatrix(Matrices.asMatrixMarketSource(
              new FileInputStream(new File("matrix.mm"))));

System.out.println("DET(A) = " + a.determinant());

代码示例来源:origin: cloudera/mahout

@Test
public void testDeterminant() {
 Matrix m = matrixFactory(new double[][]{{1, 3, 4}, {5, 2, 3},
   {1, 4, 2}});
 assertEquals("determinant", 43.0, m.determinant(), EPSILON);
}

代码示例来源:origin: cloudera/mahout

ret += getQuick(0, i) * sign * minor.determinant();
sign *= -1;

代码示例来源:origin: org.apache.mahout/mahout-math

ret += getQuick(0, i) * sign * minor.determinant();
sign *= -1;

相关文章