private DenseMatrix solve(DenseMatrix B, Transpose trans) throws MatrixSingularException { if (singular) throw new MatrixSingularException(); if (B.numRows() != n) throw new IllegalArgumentException("B.numRows() != n"); intW info = new intW(0); LAPACK.getInstance().dgbtrs(trans.netlib(), n, kl, ku, B.numColumns(), LU.getData(), 2 * kl + ku + 1, ipiv, B.getData(), Matrices.ld(n), info); if (info.val < 0) throw new IllegalArgumentException(); return B; } }
private DenseMatrix solve(DenseMatrix B, Transpose trans) throws MatrixSingularException { if (singular) throw new MatrixSingularException(); if (B.numRows() != n) throw new IllegalArgumentException("B.numRows() != n"); intW info = new intW(0); LAPACK.getInstance().dgbtrs(trans.netlib(), n, kl, ku, B.numColumns(), LU.getData(), 2 * kl + ku + 1, ipiv, B.getData(), Matrices.ld(n), info); if (info.val < 0) throw new IllegalArgumentException(); return B; } }