| 56 | |
| 57 | template<typename T> |
| 58 | int cholesky_inplace(Array<T> &in, const bool is_upper) { |
| 59 | dim4 iDims = in.dims(); |
| 60 | int N = iDims[0]; |
| 61 | |
| 62 | char uplo = 'L'; |
| 63 | if (is_upper) { uplo = 'U'; } |
| 64 | |
| 65 | mapped_ptr<T> inPtr = in.getMappedPtr(); |
| 66 | |
| 67 | int info = potrf_func<T>()(AF_LAPACK_COL_MAJOR, uplo, N, inPtr.get(), |
| 68 | in.strides()[1]); |
| 69 | |
| 70 | return info; |
| 71 | } |
| 72 | |
| 73 | #define INSTANTIATE_CH(T) \ |
| 74 | template int cholesky_inplace<T>(Array<T> & in, const bool is_upper); \ |
no test coverage detected