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

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

本文整理了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

/**
 * Returns the one-norm of matrix <tt>A</tt>, which is the maximum absolute column sum.
 */
public double norm1(DoubleMatrix2D A) {
  double max = 0;
  for (int column = A.columns(); --column >=0; ) {
    max = Math.max(max, norm1(A.viewColumn(column)));
  }
  return max;
}
/**

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

/**
 * Returns the infinity norm of matrix <tt>A</tt>, which is the maximum absolute row sum.
 */
public double normInfinity(DoubleMatrix2D A) {
  double max = 0;
  for (int row = A.rows(); --row >=0; ) {
    //max = Math.max(max, normInfinity(A.viewRow(row)));
    max = Math.max(max, norm1(A.viewRow(row)));
  }
  return max;
}
/**

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

/**
 * Returns the one-norm of matrix <tt>A</tt>, which is the maximum absolute column sum.
 */
public double norm1(DoubleMatrix2D A) {
  double max = 0;
  for (int column = A.columns(); --column >=0; ) {
    max = Math.max(max, norm1(A.viewColumn(column)));
  }
  return max;
}
/**

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

/**
 * Returns the infinity norm of matrix <tt>A</tt>, which is the maximum absolute row sum.
 */
public double normInfinity(DoubleMatrix2D A) {
  double max = 0;
  for (int row = A.rows(); --row >=0; ) {
    //max = Math.max(max, normInfinity(A.viewRow(row)));
    max = Math.max(max, norm1(A.viewRow(row)));
  }
  return max;
}
/**

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

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

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

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

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

double diff = algebra.norm1(a32);

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

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

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

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

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

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

相关文章