Table of Contents

Class NDExprCompileContext

Namespace
NumSharp.Backends.Iteration
Assembly
NumSharp.dll
public sealed class NDExprCompileContext
Inheritance
NDExprCompileContext
Inherited Members
Extension Methods

Constructors

NDExprCompileContext(NPTypeCode[], NPTypeCode, LocalBuilder[], bool)

public NDExprCompileContext(NPTypeCode[] inputTypes, NPTypeCode outputType, LocalBuilder[] inputLocals, bool vectorMode)

Parameters

inputTypes NPTypeCode[]
outputType NPTypeCode
inputLocals LocalBuilder[]
vectorMode bool

NDExprCompileContext(NPTypeCode[], NPTypeCode, LocalBuilder[], bool, IReadOnlyDictionary<NDExpr, NPTypeCode>?)

public NDExprCompileContext(NPTypeCode[] inputTypes, NPTypeCode outputType, LocalBuilder[] inputLocals, bool vectorMode, IReadOnlyDictionary<NDExpr, NPTypeCode>? nodeTypes)

Parameters

inputTypes NPTypeCode[]
outputType NPTypeCode
inputLocals LocalBuilder[]
vectorMode bool
nodeTypes IReadOnlyDictionary<NDExpr, NPTypeCode>

Properties

InputLocals

public LocalBuilder[] InputLocals { get; }

Property Value

LocalBuilder[]

InputTypes

public NPTypeCode[] InputTypes { get; }

Property Value

NPTypeCode[]

NodeTypes

Per-node resolved dtypes (NumPy result_type mode, produced by the typing pass for CompileNumPy(NPTypeCode[], out NPTypeCode, string?)). Null in legacy mode, where every node computes at OutputType. Keyed by node reference.

public IReadOnlyDictionary<NDExpr, NPTypeCode>? NodeTypes { get; }

Property Value

IReadOnlyDictionary<NDExpr, NPTypeCode>

OutputType

public NPTypeCode OutputType { get; }

Property Value

NPTypeCode

VectorMode

public bool VectorMode { get; }

Property Value

bool