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

Function inverse

src/backend/opencl/inverse.cpp:22–28  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20
21template<typename T>
22Array<T> inverse(const Array<T> &in) {
23 if (OpenCLCPUOffload()) {
24 if (in.dims()[0] == in.dims()[1]) { return cpu::inverse(in); }
25 }
26 Array<T> I = identity<T>(in.dims());
27 return solve<T>(in, I);
28}
29
30#define INSTANTIATE(T) template Array<T> inverse<T>(const Array<T> &in);
31

Callers

nothing calls this directly

Calls 2

OpenCLCPUOffloadFunction · 0.85
dimsMethod · 0.45

Tested by

no test coverage detected