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
value
is the Scalar to be filled into the arraydims
is the output Array dimensionsdtype
indicates 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
.