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

Function diag

src/api/cpp/data.cpp:191–200  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

189}
190
191array diag(const array &in, const int num, const bool extract) {
192 af_array res;
193 if (extract) {
194 AF_THROW(af_diag_extract(&res, in.get(), num));
195 } else {
196 AF_THROW(af_diag_create(&res, in.get(), num));
197 }
198
199 return array(res);
200}
201
202array moddims(const array &in, const unsigned ndims, const dim_t *const dims) {
203 af_array out = 0;

Callers 9

TESTFunction · 0.85
TYPED_TESTFunction · 0.85
gforFunction · 0.85
TESTFunction · 0.85
gforFunction · 0.85
svdTestFunction · 0.85
svdInPlaceTestFunction · 0.85
TESTFunction · 0.85
mainFunction · 0.85

Calls 4

af_diag_extractFunction · 0.50
af_diag_createFunction · 0.50
arrayClass · 0.50
getMethod · 0.45

Tested by

no test coverage detected