Show / Hide Table of Contents

Class NumPy<T>

API bridge between NumSharp and Python NumPy

Inheritance
System.Object
NumPy<T>
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: NumSharp
Assembly: NumSharp.dll
Syntax
public class NumPy<T>
Type Parameters
Name Description
T

Properties

| Improve this Doc View Source

random

Declaration
public NDArrayRandom random { get; }
Property Value
Type Description
NDArrayRandom

Methods

| Improve this Doc View Source

absolute(NDArray<Double>)

Declaration
public NDArray<double> absolute(NDArray<double> np)
Parameters
Type Name Description
NDArray<System.Double> np
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

amax(NDArray<Double>, Nullable<Int32>)

Declaration
public NDArray<double> amax(NDArray<double> np, int? axis = default(int? ))
Parameters
Type Name Description
NDArray<System.Double> np
System.Nullable<System.Int32> axis
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

amin(NDArray<Double>, Nullable<Int32>)

Declaration
public NDArray<double> amin(NDArray<double> np, int? axis = default(int? ))
Parameters
Type Name Description
NDArray<System.Double> np
System.Nullable<System.Int32> axis
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

arange(Int32)

Declaration
public NDArray<T> arange(int stop)
Parameters
Type Name Description
System.Int32 stop
Returns
Type Description
NDArray<T>
| Improve this Doc View Source

arange(Int32, Int32, Int32)

Declaration
public NDArray<T> arange(int start, int stop, int step = 1)
Parameters
Type Name Description
System.Int32 start
System.Int32 stop
System.Int32 step
Returns
Type Description
NDArray<T>
| Improve this Doc View Source

array(T[])

Declaration
public NDArray<T> array(T[] data)
Parameters
Type Name Description
T[] data
Returns
Type Description
NDArray<T>
| Improve this Doc View Source

array(T[][])

Declaration
public NDArray<T> array(T[][] data)
Parameters
Type Name Description
T[][] data
Returns
Type Description
NDArray<T>
| Improve this Doc View Source

hstack(NDArray<Double>[])

Declaration
public NDArray<double> hstack(params NDArray<double>[] nps)
Parameters
Type Name Description
NDArray<System.Double>[] nps
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

linspace(Double, Double, Int32)

Returns num evenly spaced samples, calculated over the interval [start, stop].

Declaration
public NDArray<double> linspace(double start, double stop, int num = 50)
Parameters
Type Name Description
System.Double start
System.Double stop
System.Int32 num
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

max(NDArray<Double>)

Declaration
public NDArray<double> max(NDArray<double> nd)
Parameters
Type Name Description
NDArray<System.Double> nd
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

power(NDArray<Double>, Double)

Declaration
public NDArray<double> power(NDArray<double> nd, double exponent)
Parameters
Type Name Description
NDArray<System.Double> nd
System.Double exponent
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

reshape(NDArray<Int32>, Int32[])

Declaration
public NDArray<int> reshape(NDArray<int> np, params int[] shape)
Parameters
Type Name Description
NDArray<System.Int32> np
System.Int32[] shape
Returns
Type Description
NDArray<System.Int32>
| Improve this Doc View Source

vstack(NDArray<Double>[])

Declaration
public NDArray<double> vstack(params NDArray<double>[] nps)
Parameters
Type Name Description
NDArray<System.Double>[] nps
Returns
Type Description
NDArray<System.Double>
| Improve this Doc View Source

zeros(Int32[])

Declaration
public NDArray<T> zeros(params int[] shape)
Parameters
Type Name Description
System.Int32[] shape
Returns
Type Description
NDArray<T>

Extension Methods

NumPyExtensions.array<T>(NumPy<T>, IEnumerable<T>, Int32)
NumPyExtensions.array<T>(NumPy<T>, Bitmap)
NumPyExtensions.array<T>(NumPy<T>, T[][])
NumPyExtensions.asarray<T>(NumPy<T>, IEnumerable<T>, Int32)
NumPyExtensions.ones_like<T>(NumPy<T>, NDArray<T>, String)
NumPyExtensions.sin<T>(NumPy<T>, NDArray<T>)
NumPyExtensions.sin<T>(NumPy<T>, NDArray<NDArray<T>>)
NumPyExtensions.ones<T>(NumPy<T>, Shape)
NumPyExtensions.delete<T>(NumPy<T>, NDArray<T>, IEnumerable<T>)
  • Improve this Doc
  • View Source
Back to top Generated by DocFX