1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next
All Samples(33696)  |  Call(32082)  |  Derive(0)  |  Import(1614)
array(object, dtype=None, copy=True, order=None, subok=False, ndmin=0)

Create an array.

Parameters
----------
object : array_like
    An array, any object exposing the array interface, an
    object whose __array__ method returns an array, or any
    (nested) sequence.(more...)

All Samples(16539)  |  Call(15592)  |  Derive(0)  |  Import(947)
zeros(shape, dtype=float, order='C')

Return a new array of given shape and type, filled with zeros.

Parameters
----------
shape : int or sequence of ints
    Shape of the new array, e.g., ``(2, 3)`` or ``2``.
dtype : data-type, optional
    The desired data-type for the array, e.g., `numpy.int8`.  Default is(more...)

All Samples(66)  |  Call(0)  |  Derive(0)  |  Import(66)
Common test support for all numpy test scripts.

This single module should provide all the common functionality for numpy tests
in a single location, so that test scripts can just import it and work right
away.

All Samples(18)  |  Call(0)  |  Derive(0)  |  Import(18)
Defines a multi-dimensional array and useful procedures for Numerical computation.

Functions

-   array                      - NumPy Array construction
-   zeros                      - Return an array of all zeros
-   empty                      - Return an unitialized array
-   shape                      - Return shape of sequence or array
-   rank                       - Return number of dimensions
-   size                       - Return number of elements in entire array or a(more...)

All Samples(340)  |  Call(0)  |  Derive(0)  |  Import(340)
No Document.

All Samples(289)  |  Call(1)  |  Derive(0)  |  Import(288)
========================
Random Number Generation
========================

==================== =========================================================
Utility functions
==============================================================================
random               Uniformly distributed values of a given shape.
bytes                Uniformly distributed random bytes.
random_integers      Uniformly distributed integers in a given range.(more...)

All Samples(7296)  |  Call(6860)  |  Derive(0)  |  Import(436)
dot(a, b)

Dot product of two arrays.

For 2-D arrays it is equivalent to matrix multiplication, and for 1-D
arrays to inner product of vectors (without complex conjugation). For
N dimensions it is a sum product over the last axis of `a` and
the second-to-last of `b`::

    dot(a, b)[i,j,k,m] = sum(a[i,j,:] * b[k,:,m])(more...)

All Samples(6995)  |  Call(6445)  |  Derive(0)  |  Import(550)
arange([start,] stop[, step,], dtype=None)

Return evenly spaced values within a given interval.

Values are generated within the half-open interval ``[start, stop)``
(in other words, the interval including `start` but excluding `stop`).
For integer arguments the function is equivalent to the Python built-in
`range <http://docs.python.org/lib/built-in-funcs.html>`_ function,
but returns a ndarray rather than a list.
(more...)

All Samples(6047)  |  Call(5597)  |  Derive(0)  |  Import(450)
sqrt(x[, out])

Return the positive square-root of an array, element-wise.

Parameters
----------
x : array_like
    The values whose square-roots are required.
out : ndarray, optional
    Alternate array object in which to put the result; if provided, it(more...)

All Samples(20)  |  Call(0)  |  Derive(0)  |  Import(20)
Enhanced distutils with Fortran compilers support and more.

All Samples(5228)  |  Call(4776)  |  Derive(0)  |  Import(452)
Return a new array of given shape and type, filled with ones.

Please refer to the documentation for `zeros` for further details.

See Also
--------
zeros, ones_like

Examples
--------(more...)

All Samples(4746)  |  Call(4565)  |  Derive(0)  |  Import(181)
Sum of array elements over a given axis.

Parameters
----------
a : array_like
    Elements to sum.
axis : integer, optional
    Axis over which the sum is taken. By default `axis` is None,
    and all elements are summed.
dtype : dtype, optional(more...)

All Samples(4284)  |  Call(4040)  |  Derive(0)  |  Import(244)
Convert the input to an array.

Parameters
----------
a : array_like
    Input data, in any form that can be converted to an array.  This
    includes lists, lists of tuples, tuples, tuples of tuples, tuples
    of lists and ndarrays.
dtype : data-type, optional
    By default, the data-type is inferred from the input data.(more...)

All Samples(369)  |  Call(0)  |  Derive(0)  |  Import(369)
Core Linear Algebra Tools
-------------------------
Linear algebra basics:

- norm            Vector or matrix norm
- inv             Inverse of a square matrix
- solve           Solve a linear system of equations
- det             Determinant of a square matrix
- lstsq           Solve linear least-squares problem
- pinv            Pseudo-inverse (Moore-Penrose) calculated using a singular(more...)

All Samples(3337)  |  Call(2990)  |  Derive(0)  |  Import(347)
exp(x[, out])

Calculate the exponential of all elements in the input array.

Parameters
----------
x : array_like
    Input values.

Returns(more...)

All Samples(2949)  |  Call(2655)  |  Derive(0)  |  Import(294)
sin(x[, out])

Trigonometric sine, element-wise.

Parameters
----------
x : array_like
    Angle, in radians (:math:`2 \pi` rad equals 360 degrees).

Returns(more...)

All Samples(2856)  |  Call(2645)  |  Derive(0)  |  Import(211)
log(x[, out])

Natural logarithm, element-wise.

The natural logarithm `log` is the inverse of the exponential function,
so that `log(exp(x)) = x`. The natural logarithm is logarithm in base `e`.

Parameters
----------
x : array_like(more...)

All Samples(170)  |  Call(0)  |  Derive(0)  |  Import(170)
=============
Masked Arrays
=============

Arrays sometimes contain invalid or missing data.  When doing operations
on such arrays, we wish to suppress invalid values, which is the purpose masked
arrays fulfill (an example of typical use is given below).

For example, examine the following array:
(more...)

All Samples(2536)  |  Call(2398)  |  Derive(0)  |  Import(138)
where(condition, [x, y])

Return elements, either from `x` or `y`, depending on `condition`.

If only `condition` is given, return ``condition.nonzero()``.

Parameters
----------
condition : array_like, bool
    When True, yield `x`, otherwise yield `y`.(more...)

All Samples(2491)  |  Call(2246)  |  Derive(0)  |  Import(245)
cos(x[, out])

Cosine elementwise.

Parameters
----------
x : array_like
    Input array in radians.
out : ndarray, optional
    Output array of same shape as `x`.(more...)

  1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9  Next