| 25 | |
| 26 | template<typename T> |
| 27 | static 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 | |
| 40 | template<typename T> |
| 41 | static inline af_array lu_inplace(af_array in, bool is_lapack_piv) { |
no test coverage detected