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

Function lu

src/api/c/lu.cpp:27–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

25
26template<typename T>
27static inline void lu(af_array *lower, af_array *upper, af_array *pivot,
28 const af_array in) {
29 Array<T> lowerArray = createEmptyArray<T>(af::dim4());
30 Array<T> upperArray = createEmptyArray<T>(af::dim4());
31 Array<int> pivotArray = createEmptyArray<int>(af::dim4());
32
33 lu<T>(lowerArray, upperArray, pivotArray, getArray<T>(in));
34
35 *lower = getHandle(lowerArray);
36 *upper = getHandle(upperArray);
37 *pivot = getHandle(pivotArray);
38}
39
40template<typename T>
41static inline af_array lu_inplace(af_array in, bool is_lapack_piv) {

Callers 8

TESTFunction · 0.50
solveLUTesterFunction · 0.50
solveTriangleTesterFunction · 0.50
solveLUTesterFunction · 0.50
solveTriangleTesterFunction · 0.50
TESTFunction · 0.50
luTesterFunction · 0.50
mainFunction · 0.50

Calls 2

getHandleFunction · 0.70
dim4Class · 0.50

Tested by

no test coverage detected