Exemplo n.º 1
0
  public int rank(double effectiveZero) {

    DenseMatrix svdDude;

    if (this instanceof DenseMatrix) {
      svdDude = (DenseMatrix) this;
    } else {
      svdDude = new DenseMatrix(this);
    }

    SingularValueDecomposition svd = SingularValueDecompositionMTJ.create(svdDude);

    return svd.effectiveRank(effectiveZero);
  }