/usr/share/doc/python-arrayfire-doc/examples/helloworld/helloworld.py is in python-arrayfire-doc 3.3.20160624-2.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | #!/usr/bin/python
#######################################################
# Copyright (c) 2015, 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
########################################################
import arrayfire as af
# Display backend information
af.info()
# Generate a uniform random array with a size of 5 elements
a = af.randu(5, 1)
# Print a and its minimum value
print(a)
# Print min and max values of a
print("Minimum, Maximum: ", af.min(a), af.max(a))
|