Miscellaneous RoutinesΒΆ

add Adds two scalars, vectors, or matrices.
add_matvec Adds a vector to each column/row of the matrix.
argmax Indices of the maximum values along an axis.
argmin Indices of the minimum values along an axis.
cumsum Cumulative sum.
diff Calculate the discrete difference.
div_matvec Divides each column/row of a matrix by a vector.
divide Divides two scalars, vectors, or matrices with broadcasting.
done_context Detach from a context cleanly.
get_by_index Get values in a GPUArray by index.
get_compute_capability Get the compute capability of the specified device.
get_current_device Get the device in use by the current context.
get_dev_attrs
inf Return an array of the given shape and dtype filled with infs.
init Initialize libraries used by scikit-cuda.
init_context Create a context that will be cleaned up properly.
init_device Initialize a GPU device.
iscomplextype Check whether a type is complex.
isdoubletype Check whether a type has double precision.
max Return the maximum of an array or maximum along an axis.
maxabs Get maximum absolute value.
mean Compute the arithmetic means along the specified axis.
min Return the minimum of an array or minimum along an axis.
mult_matvec Multiplies a vector elementwise with each column/row of the matrix.
multiply Multiplies two scalars, vectors, or matrices with broadcasting.
ones Return an array of the given shape and dtype filled with ones.
ones_like Return an array of ones with the same shape and type as a given array.
select_block_grid_sizes
set_by_index Set values in a GPUArray by index.
set_realloc Transfer data into a GPUArray instance.
shutdown Shutdown libraries used by scikit-cuda.
std Compute the standard deviation along the specified axis.
subtract Subtracts two scalars, vectors, or matrices with broadcasting.
sum Compute the sum along the specified axis.
var Compute the variance along the specified axis.
zeros Return an array of the given shape and dtype filled with zeros.
zeros_like Return an array of zeros with the same shape and type as a given array.