
{{alias}}( x[, options] )
    Computes the sum along one or more ndarray dimensions.

    Parameters
    ----------
    x: ndarray
        Input array. Must have a numeric or "generic" data type.

    options: Object (optional)
        Function options.

    options.dtype: string|DataType (optional)
        Output array data type. Must be a numeric or "generic" data type.

    options.dims: Array<integer> (optional)
        List of dimensions over which to perform a reduction. If not provided,
        the function performs a reduction over all elements in a provided input
        ndarray.

    options.keepdims: boolean (optional)
        Boolean indicating whether the reduced dimensions should be included in
        the returned ndarray as singleton dimensions. Default: false.

    Returns
    -------
    out: ndarray
        Output array.

    Examples
    --------
    > var x = {{alias:@stdlib/ndarray/array}}( [ -1.0, 2.0, -3.0, -4.0 ] );
    > var y = {{alias}}( x )
    <ndarray>[ -6.0 ]


{{alias}}.assign( x, out[, options] )
    Computes the sum along one or more ndarray dimensions and assigns results to
    a provided output ndarray.

    Parameters
    ----------
    x: ndarray
        Input array. Must have a numeric or generic data type.

    out: ndarray
        Output array.

    options: Object (optional)
        Function options.

    options.dims: Array<integer> (optional)
        List of dimensions over which to perform a reduction. If not provided,
        the function performs a reduction over all elements in a provided input
        ndarray.

    Returns
    -------
    out: ndarray
        Output array.

    Examples
    --------
    > var x = {{alias:@stdlib/ndarray/array}}( [ -1.0, 2.0, -3.0, -4.0 ] );
    > var out = {{alias:@stdlib/ndarray/zeros}}( [] );
    > var y = {{alias}}.assign( x, out )
    <ndarray>[ -6.0 ]
    > var bool = ( out === y )
    true

    See Also
    --------

