本文整理了Java中cern.colt.matrix.linalg.Algebra.trace()
方法的一些代码示例,展示了Algebra.trace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Algebra.trace()
方法的具体详情如下:
包路径:cern.colt.matrix.linalg.Algebra
类名称:Algebra
方法名:trace
[英]Returns the sum of the diagonal elements of matrix A; Sum(A[i,i]).
[中]返回矩阵A的对角元素之和;总和(A[i,i])。
代码示例来源:origin: cmu-phil/tetrad
private double lik(DoubleMatrix2D K, DoubleMatrix2D S, int n, int k) {
Algebra algebra = new Algebra();
DoubleMatrix2D SK = algebra.mult(S, K);
return (algebra.trace(SK) - Math.log(algebra.det(SK)) - k) * n;
}
代码示例来源:origin: blazegraph/database
try { values.add(String.valueOf(trace(matrix)));}
catch (IllegalArgumentException exc) { values.add(unknown+exc.getMessage()); }
代码示例来源:origin: com.blazegraph/colt
try { values.add(String.valueOf(trace(matrix)));}
catch (IllegalArgumentException exc) { values.add(unknown+exc.getMessage()); }
代码示例来源:origin: ca.umontreal.iro/ssj
final int n = B.rows();
Algebra alge = new Algebra();
final double mu = alge.trace(B) / n;
double x;
代码示例来源:origin: ca.umontreal.iro/ssj
int n = B.rows();
Algebra alge = new Algebra();
final double mu = alge.trace(B) / n;
double x;
内容来源于网络,如有侵权,请联系作者删除!