Package org.jblas.ranges

Examples of org.jblas.ranges.IntervalRange


    DoubleMatrix Z = new DoubleMatrix(A.rows, A.rows);
    SimpleBlas.sygvx(1, 'N', 'V', 'U', A.dup(), B.dup(), vl, vu, 0, 0, abstol, m, W, Z);
    if (m[0] == 0) {
      throw new NoEigenResultException("No eigenvalues found for selected range");
    }
    return W.get(new IntervalRange(0, m[0]), 0);
  }
View Full Code Here


    double abstol = (double) 1e-9;    // What is a good tolerance?
    int[] m = new int[1];
    DoubleMatrix W = new DoubleMatrix(A.rows);
    DoubleMatrix Z = new DoubleMatrix(A.rows, A.columns);
    SimpleBlas.sygvx(1, 'N', 'I', 'U', A.dup(), B.dup(), 0.0, 0.0, il + 1, iu + 1, abstol, m, W, Z);
    return W.get(new IntervalRange(0, m[0]), 0);
  }
View Full Code Here

    SimpleBlas.sygvx(1, 'V', 'V', 'U', A.dup(), B.dup(), vl, vu, 0, 0, abstol, m, W, Z);
    if (m[0] == 0) {
      throw new NoEigenResultException("No eigenvalues found for selected range");
    }
    DoubleMatrix[] result = new DoubleMatrix[2];
    Range r = new IntervalRange(0, m[0]);
    result[0] = Z.get(new IntervalRange(0, A.rows), r);
    result[1] = W.get(r, 0);
    return result;
  }
View Full Code Here

    int[] m = new int[1];
    DoubleMatrix W = new DoubleMatrix(A.rows);
    DoubleMatrix Z = new DoubleMatrix(A.rows, A.columns);
    SimpleBlas.sygvx(1, 'V', 'I', 'U', A.dup(), B.dup(), 0, 0, il + 1, iu + 1, abstol, m, W, Z);
    DoubleMatrix[] result = new DoubleMatrix[2];
    Range r = new IntervalRange(0, m[0]);
    result[0] = Z.get(new IntervalRange(0, A.rows), r);
    result[1] = W.get(r, 0);
    return result;
  }
View Full Code Here

    FloatMatrix Z = new FloatMatrix(A.rows, A.rows);
    SimpleBlas.sygvx(1, 'N', 'V', 'U', A.dup(), B.dup(), vl, vu, 0, 0, abstol, m, W, Z);
    if (m[0] == 0) {
      throw new NoEigenResultException("No eigenvalues found for selected range");
    }
    return W.get(new IntervalRange(0, m[0]), 0);
  }
View Full Code Here

    float abstol = (float) 1e-9;    // What is a good tolerance?
    int[] m = new int[1];
    FloatMatrix W = new FloatMatrix(A.rows);
    FloatMatrix Z = new FloatMatrix(A.rows, A.columns);
    SimpleBlas.sygvx(1, 'N', 'I', 'U', A.dup(), B.dup(), 0.0f, 0.0f, il + 1, iu + 1, abstol, m, W, Z);
    return W.get(new IntervalRange(0, m[0]), 0);
  }
View Full Code Here

    SimpleBlas.sygvx(1, 'V', 'V', 'U', A.dup(), B.dup(), vl, vu, 0, 0, abstol, m, W, Z);
    if (m[0] == 0) {
      throw new NoEigenResultException("No eigenvalues found for selected range");
    }
    FloatMatrix[] result = new FloatMatrix[2];
    Range r = new IntervalRange(0, m[0]);
    result[0] = Z.get(new IntervalRange(0, A.rows), r);
    result[1] = W.get(r, 0);
    return result;
  }
View Full Code Here

    int[] m = new int[1];
    FloatMatrix W = new FloatMatrix(A.rows);
    FloatMatrix Z = new FloatMatrix(A.rows, A.columns);
    SimpleBlas.sygvx(1, 'V', 'I', 'U', A.dup(), B.dup(), 0, 0, il + 1, iu + 1, abstol, m, W, Z);
    FloatMatrix[] result = new FloatMatrix[2];
    Range r = new IntervalRange(0, m[0]);
    result[0] = Z.get(new IntervalRange(0, A.rows), r);
    result[1] = W.get(r, 0);
    return result;
  }
View Full Code Here

TOP

Related Classes of org.jblas.ranges.IntervalRange

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.