Package org.jblas.exceptions

Examples of org.jblas.exceptions.LapackConvergenceException


        DoubleMatrix V = new DoubleMatrix(n, n);

        int info = NativeBlas.dgesvd('A', 'A', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, n);

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return new DoubleMatrix[]{U, S, V.transpose()};
    }
View Full Code Here


        DoubleMatrix V = new DoubleMatrix(min(m, n), n);

        int info = NativeBlas.dgesvd('S', 'S', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, min(m, n));

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return new DoubleMatrix[]{U, S, V.transpose()};
    }
View Full Code Here

        double[] rwork = new double[5*min(m,n)];

        int info = NativeBlas.zgesvd('S', 'S', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, min(m, n), rwork, 0);

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return new ComplexDoubleMatrix[]{U, new ComplexDoubleMatrix(S), V.hermitian()};
    }
View Full Code Here

      double[] rwork = new double[5*min(m,n)];

      int info = NativeBlas.zgesvd('A', 'A', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, n, rwork, 0);

      if (info > 0) {
        throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
      }

      return new ComplexDoubleMatrix[]{U, new ComplexDoubleMatrix(S), V.hermitian()};
    }
View Full Code Here

        DoubleMatrix S = new DoubleMatrix(min(m, n));

        int info = NativeBlas.dgesvd('N', 'N', m, n, A.dup().data, 0, m, S.data, 0, null, 0, 1, null, 0, 1);

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return S;
    }
View Full Code Here

        double[] rwork = new double[5*min(m,n)];

        int info = NativeBlas.zgesvd('N', 'N', m, n, A.dup().data, 0, m, S.data, 0, null, 0, 1, null, 0, min(m,n), rwork, 0);

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return S;
    }
View Full Code Here

        FloatMatrix V = new FloatMatrix(n, n);

        int info = NativeBlas.sgesvd('A', 'A', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, n);

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return new FloatMatrix[]{U, S, V.transpose()};
    }
View Full Code Here

        FloatMatrix V = new FloatMatrix(min(m, n), n);

        int info = NativeBlas.sgesvd('S', 'S', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, min(m, n));

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return new FloatMatrix[]{U, S, V.transpose()};
    }
View Full Code Here

        float[] rwork = new float[5*min(m,n)];

        int info = NativeBlas.cgesvd('S', 'S', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, min(m, n), rwork, 0);

        if (info > 0) {
          throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
        }

        return new ComplexFloatMatrix[]{U, new ComplexFloatMatrix(S), V.hermitian()};
    }
View Full Code Here

      float[] rwork = new float[5*min(m,n)];

      int info = NativeBlas.cgesvd('A', 'A', m, n, A.dup().data, 0, m, S.data, 0, U.data, 0, m, V.data, 0, n, rwork, 0);

      if (info > 0) {
        throw new LapackConvergenceException("GESVD", info + " superdiagonals of an intermediate bidiagonal form failed to converge.");
      }

      return new ComplexFloatMatrix[]{U, new ComplexFloatMatrix(S), V.hermitian()};
    }
View Full Code Here

TOP

Related Classes of org.jblas.exceptions.LapackConvergenceException

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.