Table of Contents

Class NumpyHelper.NumpyArrayInterface

Namespace
Bonsai.ML.Python
Assembly
Bonsai.ML.Python.dll

Represents a NumPy array interface for interacting with Python.Runtime.PyObject representing NumPy arrays.

public class NumpyHelper.NumpyArrayInterface
Inheritance
NumpyHelper.NumpyArrayInterface
Inherited Members

Constructors

NumpyArrayInterface(PyObject)

Initializes a new instance of the NumpyHelper.NumpyArrayInterface class.

public NumpyArrayInterface(PyObject obj)

Parameters

obj PyObject

Fields

Address

The memory address of the NumPy array data.

public readonly IntPtr Address

Field Value

IntPtr

DataType

The C# data type representing the elements of the NumPy array.

public readonly Type DataType

Field Value

Type

IsCStyleContiguous

A value indicating whether the NumPy array is C-style contiguous.

public readonly bool IsCStyleContiguous

Field Value

bool

NBytes

The number of bytes in the NumPy array.

public readonly int NBytes

Field Value

int

Shape

The shape of the NumPy array.

public readonly long[] Shape

Field Value

long[]