Table of Contents

Class ArrayMethodContext

Namespace
NumSharp
Assembly
NumSharp.dll

NEP 43's PyArrayMethod_Context: the method being run plus the resolved descriptors — what a strided loop receives so it can read parameters (a datetime unit) without re-resolving.

public sealed class ArrayMethodContext
Inheritance
ArrayMethodContext
Inherited Members

Constructors

ArrayMethodContext(ArrayMethod, IReadOnlyList<DType>)

public ArrayMethodContext(ArrayMethod method, IReadOnlyList<DType> descriptors)

Parameters

method ArrayMethod
descriptors IReadOnlyList<DType>

Properties

Descriptors

The resolved operand descriptors (inputs first, then outputs).

public IReadOnlyList<DType> Descriptors { get; }

Property Value

IReadOnlyList<DType>

Method

The method this context belongs to.

public ArrayMethod Method { get; }

Property Value

ArrayMethod