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

Function identity

src/api/cpp/data.cpp:167–171  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167array identity(const dim4 &dims, const af::dtype type) {
168 af_array res;
169 AF_THROW(af_identity(&res, dims.ndims(), dims.get(), type));
170 return array(res);
171}
172
173array identity(const dim_t d0, const af::dtype ty) {
174 return identity(dim4(d0), ty);

Callers 14

TESTFunction · 0.50
choleskyTesterFunction · 0.50
IdentityCPPCheckFunction · 0.50
IdentityLargeDimCheckFunction · 0.50
IdentityCPPErrorFunction · 0.50
qrTesterFunction · 0.50
createFunctionFunction · 0.50
inverseTesterFunction · 0.50
sparse.cppFile · 0.50
TESTFunction · 0.50
TEST_PFunction · 0.50
TESTFunction · 0.50

Calls 5

af_identityFunction · 0.50
arrayClass · 0.50
dim4Class · 0.50
ndimsMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected