/*
* @license Apache-2.0
*
* Copyright (c) 2023 The Stdlib Authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
// TypeScript Version: 4.1
///
import { Shape, Order, typedndarray, float64ndarray, float32ndarray, int32ndarray, int16ndarray, int8ndarray, uint32ndarray, uint16ndarray, uint8ndarray, uint8cndarray, boolndarray, complex128ndarray, complex64ndarray, genericndarray, DataType } from '@stdlib/types/ndarray';
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'float64', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'float64'
*/
declare function empty( dtype: 'float64', shape: Shape, order: Order ): float64ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'float32', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'float32'
*/
declare function empty( dtype: 'float32', shape: Shape, order: Order ): float32ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'complex128', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'complex128'
*/
declare function empty( dtype: 'complex128', shape: Shape, order: Order ): complex128ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'complex64', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'complex64'
*/
declare function empty( dtype: 'complex64', shape: Shape, order: Order ): complex64ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'int32', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'int32'
*/
declare function empty( dtype: 'int32', shape: Shape, order: Order ): int32ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'int16', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'int16'
*/
declare function empty( dtype: 'int16', shape: Shape, order: Order ): int16ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'int8', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'int8'
*/
declare function empty( dtype: 'int8', shape: Shape, order: Order ): int8ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'uint32', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'uint32'
*/
declare function empty( dtype: 'uint32', shape: Shape, order: Order ): uint32ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'uint16', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'uint16'
*/
declare function empty( dtype: 'uint16', shape: Shape, order: Order ): uint16ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'uint8', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'uint8'
*/
declare function empty( dtype: 'uint8', shape: Shape, order: Order ): uint8ndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'uint8c', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'uint8c'
*/
declare function empty( dtype: 'uint8c', shape: Shape, order: Order ): uint8cndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'bool', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'bool'
*/
declare function empty( dtype: 'bool', shape: Shape, order: Order ): boolndarray;
/**
* Creates a zero-filled array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'generic', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'generic'
*/
declare function empty( dtype: 'generic', shape: Shape, order: Order ): genericndarray;
/**
* Creates an uninitialized array having a specified shape and data type.
*
* @param dtype - underlying data type
* @param shape - array shape
* @param order - specifies whether an array is row-major (C-style) or column-major (Fortran-style)
* @returns output array
*
* @example
* var arr = empty( 'float32', [ 2, 2 ], 'row-major' );
* // returns
*
* var sh = arr.shape;
* // returns [ 2, 2 ]
*
* var dt = arr.dtype;
* // returns 'float32'
*/
declare function empty( dtype: DataType, shape: Shape, order: Order ): typedndarray;
// EXPORTS //
export = empty;