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

Method isVector

src/backend/common/ArrayInfo.cpp:122–130  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122bool ArrayInfo::isVector() const {
123 int singular_dims = 0;
124 int non_singular_dims = 0;
125 for (int i = 0; i < AF_MAX_DIMS; i++) {
126 non_singular_dims += (dims()[i] != 0 && dims()[i] != 1);
127 singular_dims += (dims()[i] == 1);
128 }
129 return singular_dims == AF_MAX_DIMS - 1 && non_singular_dims == 1;
130}
131
132bool ArrayInfo::isComplex() const { return arrayfire::common::isComplex(type); }
133

Callers 14

convolve2Function · 0.80
af_lookupFunction · 0.80
af_set_uniqueFunction · 0.80
af_set_unionFunction · 0.80
af_set_intersectFunction · 0.80
af_draw_histFunction · 0.80
assignFunction · 0.80
af_assign_genFunction · 0.80
reduce_by_key_typeFunction · 0.80
reduce_by_key_commonFunction · 0.80
reduce_promote_by_keyFunction · 0.80
plotWrapperFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected