1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
|
/*******************************************************
* Copyright (c) 2014, ArrayFire
* All rights reserved.
*
* This file is distributed under 3-clause BSD license.
* The complete license agreement can be obtained at:
* http://arrayfire.com/licenses/BSD-3-Clause
********************************************************/
#include <arrayfire.h>
int main()
{
af_array out = 0;
dim_t s[] = {10, 10, 1, 1};
af_err e = af_randu(&out, 4, s, f32);
if(out != 0) af_release_array(out);
return (AF_SUCCESS != e);
}
|