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

Function qr_inplace

src/backend/cpu/qr.cpp:96–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94
95template<typename T>
96Array<T> qr_inplace(Array<T> &in) {
97 dim4 iDims = in.dims();
98 int M = iDims[0];
99 int N = iDims[1];
100 Array<T> t = createEmptyArray<T>(af::dim4(min(M, N), 1, 1, 1));
101
102 auto func = [=](Param<T> in, Param<T> t, int M, int N) {
103 geqrf_func<T>()(AF_LAPACK_COL_MAJOR, M, N, in.get(), in.strides(1),
104 t.get());
105 };
106 getQueue().enqueue(func, in, t, M, N);
107
108 return t;
109}
110
111} // namespace cpu
112} // namespace arrayfire

Callers 1

qrFunction · 0.70

Calls 7

dim4Class · 0.70
minFunction · 0.70
getQueueFunction · 0.50
dimsMethod · 0.45
getMethod · 0.45
stridesMethod · 0.45
enqueueMethod · 0.45

Tested by

no test coverage detected