Type np
Namespace numpy
NumPy static methods
Methods
- array
- array_dyn
- asanyarray
- asanyarray
- asanyarray_dyn
- asarray
- asarray
- asarray_dyn
- ascontiguousarray
- ascontiguousarray
- ascontiguousarray_dyn
- asmatrix
- asmatrix
- asmatrix_dyn
- concatenate_dyn
- concatenate<T>
- copy
- copy_dyn
- copyto_dyn
- copyto<T>
- empty
- empty
- empty
- empty
- empty_dyn
- empty_like
- empty_like_dyn
- exp
- exp
- expand_dims
- expand_dims_dyn
- eye
- eye
- eye_dyn
- frombuffer
- frombuffer
- frombuffer_dyn
- fromfile
- fromfile
- fromfile_dyn
- fromfunction
- fromfunction
- fromfunction
- fromfunction
- fromfunction_dyn
- fromiter
- fromiter
- fromiter_dyn
- fromstring
- fromstring
- fromstring_dyn
- full
- full
- full
- full
- full_dyn
- full_like
- full_like
- full_like_dyn
- geterr
- geterrcall_dyn
- identity
- identity
- identity_dyn
- isfinite
- isfinite<T>
- load
- load_dyn
- loadtxt
- loadtxt
- loadtxt
- loadtxt
- loadtxt_dyn
- maximum
- maximum<T>
- maximum<T>
- maximum<T>
- minimum<T>
- minimum<T>
- minimum<T>
- minimum<T>
- ones
- ones
- ones
- ones
- ones_dyn
- ones_like
- ones_like_dyn
- ones<T>
- ones<T>
- ones<T>
- ones<T>
- ones<T>
- save
- save_dyn
- seterr
- seterr
- seterrcall
- seterrcall_dyn
- split
- split
- split_dyn
- stack_dyn
- tile<T>
- tile<T>
- zeros
- zeros
- zeros
- zeros
- zeros_dyn
- zeros_like
- zeros_like_dyn
- zeros<T>
- zeros<T>
- zeros<T>
- zeros<T>
- zeros<T>
Properties
- _ArrayLike_fn
- array_fn
- asanyarray_fn
- asarray_fn
- ascontiguousarray_fn
- asmatrix_fn
- AxesType
- AxesType_dyn
- bool__fn
- byte_fn
- character_fn
- clongfloat_fn
- complex__fn
- complex128_fn
- complex256_fn
- complex64_fn
- complexfloating_fn
- copy_fn
- csingle_fn
- dtype_fn
- DtypeType
- DtypeType_dyn
- empty_fn
- empty_like_fn
- expand_dims_fn
- eye_fn
- flagsobj_fn
- flatiter_fn
- flexible_fn
- float__fn
- float128_fn
- float16_fn
- float32_fn
- float64_fn
- floating_fn
- frombuffer_fn
- fromfile_fn
- fromfunction_fn
- fromiter_fn
- fromstring_fn
- full_fn
- full_like_fn
- generic_fn
- half_fn
- identity_fn
- inexact_fn
- int__fn
- int16_fn
- int32_fn
- int64_fn
- int8_fn
- intc_fn
- integer_fn
- load_fn
- loadtxt_fn
- longfloat__fn
- longlong_fn
- ndarray_fn
- newaxis
- number_fn
- object__fn
- ones_fn
- ones_like_fn
- OrderType
- OrderType_dyn
- rest_of_the_axes
- save_fn
- ShapeType
- ShapeType_dyn
- short_fn
- signedinteger_fn
- single_fn
- split_fn
- str__fn
- ubyte_fn
- uint_fn
- uint16_fn
- uint32_fn
- uint64_fn
- uint8_fn
- uintc_fn
- ulonglong_fn
- unicode__fn
- unsignedinteger_fn
- ushort_fn
- void_fn
- zeros_fn
- zeros_like_fn
Public static methods
ndarray array(object object, object dtype, bool copy, string order, bool subok, int ndmin)
object array_dyn(object object, object dtype, ImplicitContainer<T> copy, object order, ImplicitContainer<T> subok, ImplicitContainer<T> ndmin)
ndarray asanyarray(object a, PythonClassContainer dtype, string order)
object asanyarray_dyn(object a, object dtype, object order)
ndarray asarray(object a, PythonClassContainer dtype, string order)
object asarray_dyn(object a, object dtype, object order)
ndarray ascontiguousarray(object a, PythonClassContainer dtype)
object ascontiguousarray_dyn(object a, object dtype)
void asmatrix(object data, PythonClassContainer dtype)
void asmatrix(object data, dtype dtype)
object asmatrix_dyn(object data, object dtype)
object concatenate_dyn(object arrays, object axis)
Join a sequence of arrays along an existing axis
ndarray<T> concatenate<T>(IEnumerable<IArrayLike<T>> arrays, int axis)
Join a sequence of arrays along an existing axis
ndarray copy(object a, string order)
object copy_dyn(object a, object order)
void copyto_dyn(ndarray destination, _ArrayLike source)
Copies values from one array to another, broadcasting as necessary.
void copyto<T>(ndarray<T> destination, ndarray<T> source)
Copies values from one array to another, broadcasting as necessary.
ndarray empty(IEnumerable<int> shape, ImplicitContainer<T> dtype, string order)
ndarray empty(int shape, ImplicitContainer<T> dtype, string order)
object empty_dyn(object shape, ImplicitContainer<T> dtype, ImplicitContainer<T> order)
ndarray empty_like(object a, object dtype, string order, bool subok)
object empty_like_dyn(object a, object dtype, ImplicitContainer<T> order, ImplicitContainer<T> subok)
ndarray<T> exp(I_ArrayLike x)
Calculate the exponential of all elements in the input array.
object expand_dims_dyn(object a, object axis)
ndarray eye(int N, Nullable<int> M, int k, ImplicitContainer<T> dtype)
object eye_dyn(object N, object M, ImplicitContainer<T> k, ImplicitContainer<T> dtype)
ndarray frombuffer(object buffer, ImplicitContainer<T> dtype, int count, int offset)
object frombuffer_dyn(object buffer, ImplicitContainer<T> dtype, ImplicitContainer<T> count, ImplicitContainer<T> offset)
ndarray fromfile(object file, ImplicitContainer<T> dtype, int count, string sep)
object fromfile_dyn(object file, ImplicitContainer<T> dtype, ImplicitContainer<T> count, ImplicitContainer<T> sep)
ndarray fromfunction(PythonFunctionContainer function, int shape, ImplicitContainer<T> dtype)
ndarray fromfunction(PythonFunctionContainer function, int shape, dtype dtype)
ndarray fromfunction(PythonFunctionContainer function, IEnumerable<int> shape, ImplicitContainer<T> dtype)
ndarray fromfunction(PythonFunctionContainer function, IEnumerable<int> shape, dtype dtype)
object fromfunction_dyn(object function, object shape, ImplicitContainer<T> dtype)
ndarray fromiter(object iterable, PythonClassContainer dytpe, int count)
object fromiter_dyn(object iterable, object dytpe, ImplicitContainer<T> count)
ndarray fromstring(string string, ImplicitContainer<T> dtype, int count, string sep)
object fromstring_dyn(object string, ImplicitContainer<T> dtype, ImplicitContainer<T> count, ImplicitContainer<T> sep)
ndarray full(int shape, object fill_value, PythonClassContainer dtype, string order)
ndarray full(IEnumerable<int> shape, object fill_value, PythonClassContainer dtype, string order)
object full_dyn(object shape, object fill_value, object dtype, ImplicitContainer<T> order)
ndarray full_like(object a, object fill_value, PythonClassContainer dtype, string order, bool subok)
object full_like_dyn(object a, object fill_value, object dtype, ImplicitContainer<T> order, ImplicitContainer<T> subok)
IDictionary<string, string> geterr()
Get the current way of handling floating-point errors.
object geterrcall_dyn()
ndarray identity(int n, ImplicitContainer<T> dtype)
object identity_dyn(object n, ImplicitContainer<T> dtype)
ndarray<T> isfinite<T>(ndarray<T> x)
Test element-wise for finiteness (not infinity or not Not a Number).
_ArrayLike load(string file, object mmap_mode, bool allow_pickle, Nullable<bool> fix_imports)
object load_dyn(object file, object mmap_mode, ImplicitContainer<T> allow_pickle, object fix_imports)
ndarray loadtxt(object fname, dtype dtype, IEnumerable<string> comments, string delimiter, IDictionary<int, Delegate> converters, int skiprows, IEnumerable<int> usecols, bool unpack, int ndmin)
ndarray loadtxt(object fname, dtype dtype, string comments, string delimiter, IDictionary<int, Delegate> converters, int skiprows, IEnumerable<int> usecols, bool unpack, int ndmin)
ndarray loadtxt(object fname, ImplicitContainer<T> dtype, IEnumerable<string> comments, string delimiter, IDictionary<int, Delegate> converters, int skiprows, IEnumerable<int> usecols, bool unpack, int ndmin)
ndarray loadtxt(object fname, ImplicitContainer<T> dtype, string comments, string delimiter, IDictionary<int, Delegate> converters, int skiprows, IEnumerable<int> usecols, bool unpack, int ndmin)
object loadtxt_dyn(object fname, ImplicitContainer<T> dtype, ImplicitContainer<T> comments, object delimiter, object converters, ImplicitContainer<T> skiprows, object usecols, ImplicitContainer<T> unpack, ImplicitContainer<T> ndmin)
I_ArrayLike maximum(I_ArrayLike x1, I_ArrayLike x2)
ndarray<T> maximum<T>(ArrayOrElement<T> x1, ndarray<T> x2)
ndarray<T> maximum<T>(ndarray<T> x1, ndarray<T> x2)
ndarray<T> maximum<T>(ndarray<T> x1, ArrayOrElement<T> x2)
ndarray<T> minimum<T>(ndarray<T> x1, ArrayOrElement<T> x2)
ndarray<T> minimum<T>(ndarray<T> x1, ndarray<T> x2)
ndarray<T> minimum<T>(ArrayOrElement<T> x1, ndarray<T> x2)
I_ArrayLike minimum<T>(I_ArrayLike x1, I_ArrayLike x2)
ndarray ones(IEnumerable<int> shape, ImplicitContainer<T> dtype, string order)
ndarray ones(int shape, ImplicitContainer<T> dtype, string order)
object ones_dyn(object shape, ImplicitContainer<T> dtype, ImplicitContainer<T> order)
ndarray ones_like(object a, object dtype, string order, bool subok)
object ones_like_dyn(object a, object dtype, ImplicitContainer<T> order, ImplicitContainer<T> subok)
ndarray<T> ones<T>(Int32[] sizes)
Creates a 1-filled array
ndarray<T> ones<T>(UInt64[] sizes)
Creates a 1-filled array
ndarray<T> ones<T>(int size)
Creates a 1-filled array
ndarray<T> ones<T>(ulong size)
Creates a 1-filled array
ndarray<T> ones<T>(IEnumerable<ulong> shape)
Creates a 1-filled array
void save(string file, _ArrayLike array, bool allow_pickle, Nullable<bool> fix_imports)
object save_dyn(object file, object array, ImplicitContainer<T> allow_pickle, object fix_imports)
IDictionary<string, string> seterr(Nullable<FloatingErrorMode> all, Nullable<FloatingErrorMode> divide, Nullable<FloatingErrorMode> over, Nullable<FloatingErrorMode> under, Nullable<FloatingErrorMode> invalid)
Set how floating-point errors are handled.
Note that operations on integer scalar types (such as int16) are handled like floating point, and are affected by these settings.
Parameters
-
Nullable<FloatingErrorMode>
all - Set treatment for all types of floating-point errors at once.
-
Nullable<FloatingErrorMode>
divide - Treatment for division by zero.
-
Nullable<FloatingErrorMode>
over - Treatment for floating-point overflow.
-
Nullable<FloatingErrorMode>
under - Treatment for floating-point underflow.
-
Nullable<FloatingErrorMode>
invalid - Treatment for invalid floating-point operation.
IDictionary<string, string> seterr(IDictionary<string, string> modes)
Set how floating-point errors are handled.
Note that operations on integer scalar types (such as int16) are handled like floating point, and are affected by these settings.
object seterrcall(FloatingErrorHandler handler)
Set the floating-point error callback function.
Returns
-
object
- The old error handler.
object seterrcall_dyn(object handler)
Set the floating-point error callback function.
Returns
-
object
- The old error handler.
IList<object> split(ndarray ary, int indices_or_sections, int axis)
IList<object> split(ndarray ary, IEnumerable<int> indices_or_sections, int axis)
object split_dyn(object ary, object indices_or_sections, ImplicitContainer<T> axis)
object stack_dyn(object arrays, Nullable<int> axis)
Join a sequence of arrays along a new axis.
ndarray<T> tile<T>(IArrayLike<T> tile, IEnumerable<int> repetitions)
Construct an array by repeating A the number of times given by reps.
Parameters
-
IArrayLike<T>
tile - The input array, that will be used as a tile.
-
IEnumerable<int>
repetitions - The number of repetitions of the tile along each axis.
ndarray<T> tile<T>(IArrayLike<T> tile, IArrayLike<T> repetitions)
Construct an array by repeating A the number of times given by reps.
Parameters
-
IArrayLike<T>
tile - The input array, that will be used as a tile.
-
IArrayLike<T>
repetitions - The number of repetitions of the tile along each axis.
ndarray zeros(int shape, ImplicitContainer<T> dtype, string order)
ndarray zeros(IEnumerable<int> shape, ImplicitContainer<T> dtype, string order)
object zeros_dyn(object shape, ImplicitContainer<T> dtype, ImplicitContainer<T> order)
ndarray zeros_like(object a, object dtype, string order, bool subok)
object zeros_like_dyn(object a, object dtype, ImplicitContainer<T> order, ImplicitContainer<T> subok)
ndarray<T> zeros<T>(int size)
Creates a zero-filled array
ndarray<T> zeros<T>(ulong size)
Creates a zero-filled array
ndarray<T> zeros<T>(Int32[] sizes)
Creates a zero-filled array
ndarray<T> zeros<T>(IEnumerable<ulong> shape)
Creates a zero-filled array
ndarray<T> zeros<T>(UInt64[] sizes)
Creates a zero-filled array
Public properties
PythonFunctionContainer _ArrayLike_fn get;
PythonFunctionContainer array_fn get;
PythonFunctionContainer asanyarray_fn get;
PythonFunctionContainer asarray_fn get;
PythonFunctionContainer ascontiguousarray_fn get;
PythonFunctionContainer asmatrix_fn get;
object AxesType get; set;
object AxesType_dyn get; set;
PythonFunctionContainer bool__fn get;
PythonFunctionContainer byte_fn get;
PythonFunctionContainer character_fn get;
PythonFunctionContainer clongfloat_fn get;
PythonFunctionContainer complex__fn get;
PythonFunctionContainer complex128_fn get;
PythonFunctionContainer complex256_fn get;
PythonFunctionContainer complex64_fn get;
PythonFunctionContainer complexfloating_fn get;
PythonFunctionContainer copy_fn get;
PythonFunctionContainer csingle_fn get;
PythonFunctionContainer dtype_fn get;
object DtypeType get; set;
object DtypeType_dyn get; set;
PythonFunctionContainer empty_fn get;
PythonFunctionContainer empty_like_fn get;
PythonFunctionContainer expand_dims_fn get;
PythonFunctionContainer eye_fn get;
PythonFunctionContainer flagsobj_fn get;
PythonFunctionContainer flatiter_fn get;
PythonFunctionContainer flexible_fn get;
PythonFunctionContainer float__fn get;
PythonFunctionContainer float128_fn get;
PythonFunctionContainer float16_fn get;
PythonFunctionContainer float32_fn get;
PythonFunctionContainer float64_fn get;
PythonFunctionContainer floating_fn get;
PythonFunctionContainer frombuffer_fn get;
PythonFunctionContainer fromfile_fn get;
PythonFunctionContainer fromfunction_fn get;
PythonFunctionContainer fromiter_fn get;
PythonFunctionContainer fromstring_fn get;
PythonFunctionContainer full_fn get;
PythonFunctionContainer full_like_fn get;
PythonFunctionContainer generic_fn get;
PythonFunctionContainer half_fn get;
PythonFunctionContainer identity_fn get;
PythonFunctionContainer inexact_fn get;
PythonFunctionContainer int__fn get;
PythonFunctionContainer int16_fn get;
PythonFunctionContainer int32_fn get;
PythonFunctionContainer int64_fn get;
PythonFunctionContainer int8_fn get;
PythonFunctionContainer intc_fn get;
PythonFunctionContainer integer_fn get;
PythonFunctionContainer load_fn get;
PythonFunctionContainer loadtxt_fn get;
PythonFunctionContainer longfloat__fn get;
PythonFunctionContainer longlong_fn get;
PythonFunctionContainer ndarray_fn get;
Nullable<int> newaxis get;
A convenient alias for
null
, useful for indexing arrays.
PythonFunctionContainer number_fn get;
PythonFunctionContainer object__fn get;
PythonFunctionContainer ones_fn get;
PythonFunctionContainer ones_like_fn get;
object OrderType get; set;
object OrderType_dyn get; set;
RestOfTheAxes rest_of_the_axes get;
A placeholder for the rest of the axes.
Show Example
Slice the last dimension from 1 to 2: np.zeros(2, 3, 4)[rest_of_the_axes, 1..2]