| 83 | |
| 84 | template<typename T> |
| 85 | Array<T> cholesky(int *info, const Array<T> &in, const bool is_upper) { |
| 86 | Array<T> out = copyArray<T>(in); |
| 87 | *info = cholesky_inplace(out, is_upper); |
| 88 | |
| 89 | triangle<T>(out, out, is_upper, false); |
| 90 | |
| 91 | return out; |
| 92 | } |
| 93 | |
| 94 | template<typename T> |
| 95 | int cholesky_inplace(Array<T> &in, const bool is_upper) { |
nothing calls this directly
no test coverage detected