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

Function var

src/api/c/var.cpp:165–172  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

163/// non-empty
164template<typename inType, typename outType>
165static Array<outType> var(
166 const Array<inType>& in,
167 const Array<typename baseOutType<outType>::type>& weights,
168 const af_var_bias bias, int dim) {
169 Array<outType> variance = createEmptyArray<outType>({0});
170 tie(ignore, variance) = meanvar<inType, outType>(in, weights, bias, dim);
171 return variance;
172}
173
174template<typename inType, typename outType>
175static af_array var_(const af_array& in, const af_array& weights,

Callers 3

dimCppSmallTestFunction · 0.50
TESTFunction · 0.50
naive_bayes_trainFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected