cern.colt.matrix.linalg.Algebra.norm1()方法的使用及代码示例

x33g5p2x  于2022-01-17 转载在 其他  
字(2.2k)|赞(0)|评价(0)|浏览(90)

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

Algebra.norm1介绍

[英]Returns the one-norm of vector x, which is Sum(abs(x[i])).
[中]返回向量x的一个范数,即Sum(abs(x[i])。

代码示例

代码示例来源:origin: com.blazegraph/colt

  1. /**
  2. * Returns the one-norm of matrix <tt>A</tt>, which is the maximum absolute column sum.
  3. */
  4. public double norm1(DoubleMatrix2D A) {
  5. double max = 0;
  6. for (int column = A.columns(); --column >=0; ) {
  7. max = Math.max(max, norm1(A.viewColumn(column)));
  8. }
  9. return max;
  10. }
  11. /**

代码示例来源:origin: com.blazegraph/colt

  1. /**
  2. * Returns the infinity norm of matrix <tt>A</tt>, which is the maximum absolute row sum.
  3. */
  4. public double normInfinity(DoubleMatrix2D A) {
  5. double max = 0;
  6. for (int row = A.rows(); --row >=0; ) {
  7. //max = Math.max(max, normInfinity(A.viewRow(row)));
  8. max = Math.max(max, norm1(A.viewRow(row)));
  9. }
  10. return max;
  11. }
  12. /**

代码示例来源:origin: blazegraph/database

  1. /**
  2. * Returns the one-norm of matrix <tt>A</tt>, which is the maximum absolute column sum.
  3. */
  4. public double norm1(DoubleMatrix2D A) {
  5. double max = 0;
  6. for (int column = A.columns(); --column >=0; ) {
  7. max = Math.max(max, norm1(A.viewColumn(column)));
  8. }
  9. return max;
  10. }
  11. /**

代码示例来源:origin: blazegraph/database

  1. /**
  2. * Returns the infinity norm of matrix <tt>A</tt>, which is the maximum absolute row sum.
  3. */
  4. public double normInfinity(DoubleMatrix2D A) {
  5. double max = 0;
  6. for (int row = A.rows(); --row >=0; ) {
  7. //max = Math.max(max, normInfinity(A.viewRow(row)));
  8. max = Math.max(max, norm1(A.viewRow(row)));
  9. }
  10. return max;
  11. }
  12. /**

代码示例来源:origin: blazegraph/database

  1. try { values.add(String.valueOf(norm1(matrix)));}
  2. catch (IllegalArgumentException exc) { values.add(unknown+exc.getMessage()); }

代码示例来源:origin: com.blazegraph/colt

  1. try { values.add(String.valueOf(norm1(matrix)));}
  2. catch (IllegalArgumentException exc) { values.add(unknown+exc.getMessage()); }

代码示例来源:origin: cmu-phil/tetrad

  1. double diff = algebra.norm1(a32);

代码示例来源:origin: ca.umontreal.iro/ssj

  1. final double norm = alge.norm1(B) / THETA9;
  2. int s;
  3. if (norm > 1)

代码示例来源:origin: cmu-phil/tetrad

  1. double diff1 = algebra.norm1(a32);
  2. double diff2 = algebra.norm1(a32);

代码示例来源:origin: cmu-phil/tetrad

  1. double diff1 = algebra.norm1(a32);
  2. double diff2 = algebra.norm1(a32);

相关文章