MCPcopy Create free account
hub / github.com/arrayfire/arrayfire / cholesky_inplace

Function cholesky_inplace

src/backend/opencl/cpu/cpu_cholesky.cpp:58–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

56
57template<typename T>
58int 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); \

Callers 1

choleskyFunction · 0.70

Calls 4

dimsMethod · 0.45
getMappedPtrMethod · 0.45
getMethod · 0.45
stridesMethod · 0.45

Tested by

no test coverage detected