[List,Array]Int[8,16]is expanded to mean
ArrayInt16. The literals
intcan be abbreviated by
Tin this example:
Tcan be replaced by
double. This can also be written without using a variable.
) to the type literal.
rbc.stdlib.array_api.meancomputes the mean over an array of inputs
f_array. We can also have output arrays.
Arraymust be used to define an empty array. It can then be indexed to be filled. Slicing or complex indexing is not currently supported. If the array is returned, it’s important that the type specified during the array creation matches the return type specified in the function signature.
devicein the decorator when registering the function. The device argument is a list that can take
'gpu'. The option indicates which implementation should be available and used. Hence, if there is no GPU on the server, using
'gpu'would not work on the platform.