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

Function main

test/basic_c.c:12–18  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10#include <arrayfire.h>
11
12int main() {
13 af_array out = 0;
14 dim_t s[] = {10, 10, 1, 1};
15 af_err e = af_randu(&out, 4, s, f32);
16 if (out != 0) af_release_array(out);
17 return (AF_SUCCESS != e);
18}

Callers

nothing calls this directly

Calls 2

af_randuFunction · 0.50
af_release_arrayFunction · 0.50

Tested by

no test coverage detected