numpy.polynomial.legendre.legdomain
-
polynomial.legendre.legdomain = array([-1., 1.])
ndarray(shape, dtype=None, buffer=None, offset=0, strides=None, order=None)
–
ndarray(shape, dtype=np.float64, buffer=None, offset=0, strides=None, order=None)
An array object represents a multidimensional, homogeneous array
of fixed-size items. An associated data-type object describes the
format of each element in the array (its byte-order, how many bytes it
occupies in memory, whether it is an integer, a floating point number,
or something else, etc.)
Arrays should be constructed using array, zeros or (refer
to the See Also section below). The parameters given here refer to
a low-level method () for instantiating an array.
ndarray(…)
For more information, refer to the numpy module and examine the
methods and attributes of an array.
- Parameters:
- (for the __new__ method; see Notes below)
- shape : tuple of ints
Shape of created array.
- dtype : data-type, optional
Any object that can be interpreted as a numpy data type.
Default is numpy.float64.
- buffer : object exposing buffer interface, optional
Used to fill the array with data.
- offset : int, optional
Offset of array data in buffer.
- strides : tuple of ints, optional
Strides of data in memory.
- order : {‘C’, ‘F’}, optional
Row-major (C-style) or column-major (Fortran-style) order.
- Attributes:
- T : ndarray
Transpose of the array.
- data : buffer
The array’s elements, in memory.
- dtype : dtype object
Describes the format of the elements in the array.
- flags : dict
Dictionary containing information related to memory use, e.g.,
‘C_CONTIGUOUS’, ‘OWNDATA’, ‘WRITEABLE’, etc.
- flat : numpy.flatiter object
Flattened version of the array as an iterator. The iterator
allows assignments, e.g., x.flat = 3 (See for
assignment examples; TODO).
Notes
There are two modes of creating an array using __new__:
If buffer is None, then only shape, dtype, and order
are used.
If buffer is an object exposing the buffer interface, then
all keywords are interpreted.
No __init__ method is needed because the array is fully initialized
after the __new__ method.
Examples
ndarray.flat
imag : ndarrayImaginary part of the array.
real : ndarraysize : intNumber of elements in the array.
itemsize : intThe memory use of each array element in bytes.
nbytes : intThe total number of bytes required to store the array data,
i.e., itemsize * size.
ndim : intThe array’s number of dimensions.
shape : tuple of intsstrides : tuple of intsThe step-size required to move from one element to the next in
memory. For example, a contiguous (3, 4) array of type
int16 in C-order has strides (8, 2). This implies that
to move from element to element in memory requires jumps of 2 bytes.
To move from row-to-row, one needs to jump 8 bytes at a time
(2 * 4).
ctypes : ctypes objectClass containing properties of the array needed for interaction
with ctypes.
base : ndarrayIf the array is a view into another array, that array is its base
(unless that array is also a view). The base array is where the
array data is actually stored.
array([2, 3])