1 #include "../../../include/monolish_blas.hpp"
2 #include "../../../include/monolish_equation.hpp"
3 #include "../../internal/lapack/monolish_lapack.hpp"
4 #include "../../internal/monolish_internal.hpp"
19 throw std::runtime_error(
"error sparse Lu is not impl.");
33 throw std::runtime_error(
"error sparse Lu is not impl.");
47 if (internal::lapack::getrf(A, ipiv) != 0) {
51 if (internal::lapack::getrs(A, XB, ipiv) != 0) {
57 throw std::runtime_error(
"error solver.lib is not 1");
74 if (internal::lapack::getrf(A, ipiv) != 0) {
78 if (internal::lapack::getrs(A, XB, ipiv) != 0) {
83 throw std::runtime_error(
"error solver.lib is not 1");
103 if (internal::lapack::getrf(A, ipiv) != 0) {
107 if (internal::lapack::getrs(A, x, ipiv) != 0) {
113 throw std::runtime_error(
"error solver.lib is not 1");
133 if (internal::lapack::getrf(A, ipiv) != 0) {
137 if (internal::lapack::getrs(A, x, ipiv) != 0) {
142 throw std::runtime_error(
"error solver.lib is not 1");