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

Function qr_inplace

src/backend/opencl/cpu/cpu_qr.cpp:91–105  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

89
90template<typename T>
91Array<T> qr_inplace(Array<T> &in) {
92 dim4 iDims = in.dims();
93 int M = iDims[0];
94 int N = iDims[1];
95
96 Array<T> t = createEmptyArray<T>(af::dim4(min(M, N), 1, 1, 1));
97
98 mapped_ptr<T> iPtr = in.getMappedPtr();
99 mapped_ptr<T> tPtr = t.getMappedPtr();
100
101 geqrf_func<T>()(AF_LAPACK_COL_MAJOR, M, N, iPtr.get(), in.strides()[1],
102 tPtr.get());
103
104 return t;
105}
106
107#define INSTANTIATE_QR(T) \
108 template Array<T> qr_inplace<T>(Array<T> & in); \

Callers 1

qrFunction · 0.70

Calls 6

dim4Class · 0.50
minFunction · 0.50
dimsMethod · 0.45
getMappedPtrMethod · 0.45
getMethod · 0.45
stridesMethod · 0.45

Tested by

no test coverage detected