Function arrayfire::constant_t
[−]
[src]
pub fn constant_t(value: Scalar, dims: Dim4, dtype: DType) -> Array
Create a constant array of given type(DType)
You can use this function to create arrays of type dictated by the enum
DType using the scalar value that has the shape similar
to dims.
Parameters
valueis the Scalar to be filled into the arraydimsis the output Array dimensionsdtypeindicates the type of Array to be created and is the type of the scalar to be passed via the paramtervalue.
Return Values
Array of dims shape and filed with given constant value.