Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "ndarray/base/zeros/docs/types/index.d"

Index

Functions

Functions

zeros

  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "float64"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns float64ndarray

    zero-filled array

    Example

    var arr = zeros( 'float64', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'float64'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "float32"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns float32ndarray

    zero-filled array

    Example

    var arr = zeros( 'float32', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'float32'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "complex128"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns complex128ndarray

    zero-filled array

    Example

    var arr = zeros( 'complex128', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'complex128'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "complex64"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns complex64ndarray

    zero-filled array

    Example

    var arr = zeros( 'complex64', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'complex64'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "int32"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns int32ndarray

    zero-filled array

    Example

    var arr = zeros( 'int32', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'int32'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "int16"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns int16ndarray

    zero-filled array

    Example

    var arr = zeros( 'int16', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'int16'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "int8"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns int8ndarray

    zero-filled array

    Example

    var arr = zeros( 'int8', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'int8'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "uint32"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns uint32ndarray

    zero-filled array

    Example

    var arr = zeros( 'uint32', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'uint32'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "uint16"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns uint16ndarray

    zero-filled array

    Example

    var arr = zeros( 'uint16', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'uint16'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "uint8"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns uint8ndarray

    zero-filled array

    Example

    var arr = zeros( 'uint8', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'uint8'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "uint8c"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns uint8cndarray

    zero-filled array

    Example

    var arr = zeros( 'uint8c', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'uint8c'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: "generic"

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns typedndarray < number >

    zero-filled array

    Example

    var arr = zeros( 'generic', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'generic'
  • Creates a zero-filled array having a specified shape and data type.

    Parameters

    • dtype: DataType

      underlying data type

    • shape: Shape

      array shape

    • order: Order

      specifies whether an array is row-major (C-style) or column-major (Fortran-style)

    Returns typedndarray < number >

    zero-filled array

    Example

    var arr = zeros( 'float32', [ 2, 2 ], 'row-major' );
    // returns <ndarray>
    
    var sh = arr.shape;
    // returns [ 2, 2 ]
    
    var dt = arr.dtype;
    // returns 'float32'