input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float32' );
// returns <Float32Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0, 'float64' );
// returns <Float64Array>[ 1.0, 1.0 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0, 'float32' );
// returns <Float32Array>[ 1.0, 1.0 ]
Creates a filled array having the same length as a provided input array.
0
.input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0, 'complex128' );
// returns <Complex128Array>
Creates a filled array having the same length as a provided input array.
0
.input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0, 'complex64' );
// returns <Complex64Array>
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1, 'int32' );
// returns <Int32Array>[ 1, 1 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1, 'int16' );
// returns <Int16Array>[ 1, 1 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1, 'int8' );
// returns <Int8Array>[ 1, 1 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0, 0 ]
var y = fullLike( x, 1, 'uint32' );
// returns <Uint32Array>[ 1, 1 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1, 'uint16' );
// returns <Uint16Array>[ 1, 1 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1, 'uint8' );
// returns <Uint8Array>[ 1, 1 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1, 'uint8c' );
// returns <Uint8ClampedArray>[ 1, 1 ]
Creates a filled array having the same length as a provided input array.
input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0, 'generic' );
// returns [ 1.0, 1.0 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0 );
// returns <Float64Array>[ 1.0, 1.0 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float32' );
// returns <Float32Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0 );
// returns <Float32Array>[ 1.0, 1.0 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript values0
.input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'complex128' );
// returns <Complex128Array>
var y = fullLike( x, 1.0 );
// returns <Complex128Array>
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript values0
.input array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'complex64' );
// returns <Complex64Array>
var y = fullLike( x, 1.0 );
// returns <Complex64Array>
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'int32' );
// returns <Int32Array>[ 0, 0 ]
var y = fullLike( x, 1 );
// returns <Int32Array>[ 1, 1 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'int16' );
// returns <Int16Array>[ 0, 0 ]
var y = fullLike( x, 1 );
// returns <Int16Array>[ 1, 1 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'int8' );
// returns <Int8Array>[ 0, 0 ]
var y = fullLike( x, 1 );
// returns <Int8Array>[ 1, 1 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'uint32' );
// returns <Uint32Array>[ 0, 0 ]
var y = fullLike( x, 1 );
// returns <Uint32Array>[ 1, 1 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'uint16' );
// returns <Uint16Array>[ 0, 0 ]
var y = fullLike( x, 1 );
// returns <Uint16Array>[ 1, 1 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'uint8' );
// returns <Uint8Array>[ 0, 0 ]
var y = fullLike( x, 1 );
// returns <Uint8Array>[ 1, 1 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'uint8c' );
// returns <Uint8ClampedArray>[ 0, 0 ]
var y = fullLike( x, 1 );
// returns <Uint8ClampedArray>[ 1, 1 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'generic' );
// returns [ 0, 0 ]
var y = fullLike( x, 1.0 );
// returns [ 1.0, 1.0 ]
Creates a filled array having the same length and data type as a provided input array.
The function supports the following data types:
float64
: double-precision floating-point numbers (IEEE 754)float32
: single-precision floating-point numbers (IEEE 754)complex128
: double-precision complex floating-point numberscomplex64
: single-precision complex floating-point numbersint32
: 32-bit two's complement signed integersuint32
: 32-bit unsigned integersint16
: 16-bit two's complement signed integersuint16
: 16-bit unsigned integersint8
: 8-bit two's complement signed integersuint8
: 8-bit unsigned integersuint8c
: 8-bit unsigned integers clamped to 0-255
generic
: generic JavaScript valuesinput array from which to derive the output array length
fill value
data type
filled array
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0 );
// returns <Float64Array>[ 1.0, 1.0 ]
var zeros = require( `@stdlib/array/zeros` );
var x = zeros( 2, 'float64' );
// returns <Float64Array>[ 0.0, 0.0 ]
var y = fullLike( x, 1.0, 'float32' );
// returns <Float32Array>[ 1.0, 1.0 ]
Creates a filled array having the same length as a provided input array.