{{alias}}( x, value[, options] ) Converts a scalar value to a zero-dimensional ndarray having the same data type as a provided ndarray. If `value` is a number and `options.dtype` is a complex number data type, the function returns a zero-dimensional ndarray containing a complex number whose real component equals the provided scalar value and whose imaginary component is zero. Parameters ---------- x: ndarray Input ndarray. value: any Scalar value. options: Object (optional) Options. options.dtype: string|DataType (optional) Data type. If not provided and `value` - is a number, the default data type is the default real-valued floating-point data type. - is a boolean, the default data type is the default boolean data type. - is a complex number object of a known complex data type, the data type is the same as the provided value. - is a complex number object of an unknown data type, the default data type is the default complex-valued floating-point data type. - is any other value type, the default data type is 'generic'. options.order: string (optional) Specifies whether an array is row-major (C-style) or column-major (Fortran-style). options.readonly: boolean (optional) Boolean indicating whether an array should be read-only. Default: false. Returns ------- out: ndarray Output array. Examples -------- > var x = {{alias:@stdlib/ndarray/array}}( [ 1.0, 2.0, 3.0 ] ) [ 1.0, 2.0, 3.0 ] > var y = {{alias}}( x, 1.0 ) [ 1.0 ] See Also --------