Skip to content
murmot

Results for “function return python array java site:numpy.org object”

  • numpy.org

    Array API — NumPy v1.15 Manual

    This is the main array creation function. Most new arrays are created with this flexible function. The returned object is an object of Python-type subtype, which must be a subtype of PyArray_Type. The array has nd dimensions, described by dims.

  • numpy.org

    numpy.arange — NumPy v2.7.dev0 Manual

    For integer arguments the function is roughly equivalent to the Python ... In this case, it ensures the creation of an array object compatible with that passed in ...

  • numpy.org

    Python types and C-structures — NumPy v2.0 Manual

    A pointer to a function that returns a standard Python object from a single element of the array object arr pointed to by data. This function must be able to deal with “misbehaved “(misaligned and/or swapped) arrays correctly.

  • numpy.org

    NumPy quickstart — NumPy v2.7.dev0 Manual

    To create sequences of numbers, NumPy provides the arange function which is analogous to the Python built-in range , but returns an array. >>> np.arange(10, 30 ...

  • numpy.org

    Array API — NumPy v1.24 Manual

    This is the main array creation function. Most new arrays are created with this flexible function. The returned object is an object of Python-type subtype, which must be a subtype of PyArray_Type. The array has nd dimensions, described by dims.

  • numpy.org

    Data types — NumPy v2.5 Manual

    dtype (data-type) objects, each having unique characteristics. Once you have imported NumPy using import numpy as np you can create arrays with a specified ...

  • numpy.org

    Array API Standard Compatibility — NumPy v1.26 Manual

    Linear Algebra Functions. Array Object.See the spec rules for mixing arrays and Python scalars. Operators (like +) with Python scalars always return the same dtype as the array. Breaking. For example, numpy.array_api.asarray(0., dtype=float32) + 1e64 is a float32 array.

  • numpy.org

    Python types and C-structures — NumPy v2.3 Manual

    A pointer to a function that returns a standard Python object from a single element of the array object arr pointed to by data. This function must be able to deal with “misbehaved “(misaligned and/or swapped) arrays correctly.