| 38 | |
| 39 | template<typename T> |
| 40 | Array<T> cholesky(int *info, const Array<T> &in, const bool is_upper) { |
| 41 | if (OpenCLCPUOffload()) { return cpu::cholesky(info, in, is_upper); } |
| 42 | |
| 43 | Array<T> out = copyArray<T>(in); |
| 44 | *info = cholesky_inplace(out, is_upper); |
| 45 | |
| 46 | triangle<T>(out, out, is_upper, false); |
| 47 | |
| 48 | return out; |
| 49 | } |
| 50 | |
| 51 | #define INSTANTIATE_CH(T) \ |
| 52 | template int cholesky_inplace<T>(Array<T> & in, const bool is_upper); \ |
nothing calls this directly
no test coverage detected