Class NDExprCompileContext
public sealed class NDExprCompileContext
- Inheritance
-
NDExprCompileContext
- Inherited Members
Constructors
NDExprCompileContext(NPTypeCode[], NPTypeCode, LocalBuilder[], bool)
public NDExprCompileContext(NPTypeCode[] inputTypes, NPTypeCode outputType, LocalBuilder[] inputLocals, bool vectorMode)
Parameters
inputTypesNPTypeCode[]outputTypeNPTypeCodeinputLocalsLocalBuilder[]vectorModebool
NDExprCompileContext(NPTypeCode[], NPTypeCode, LocalBuilder[], bool, IReadOnlyDictionary<NDExpr, NPTypeCode>?, NPTypeCode)
public NDExprCompileContext(NPTypeCode[] inputTypes, NPTypeCode outputType, LocalBuilder[] inputLocals, bool vectorMode, IReadOnlyDictionary<NDExpr, NPTypeCode>? nodeTypes, NPTypeCode vectorLaneType = NPTypeCode.Empty)
Parameters
inputTypesNPTypeCode[]outputTypeNPTypeCodeinputLocalsLocalBuilder[]vectorModeboolnodeTypesIReadOnlyDictionary<NDExpr, NPTypeCode>vectorLaneTypeNPTypeCode
Properties
InputLocals
public LocalBuilder[] InputLocals { get; }
Property Value
InputTypes
public NPTypeCode[] InputTypes { get; }
Property Value
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
OutputType
public NPTypeCode OutputType { get; }
Property Value
VectorLaneType
Vector mode: the kernel's compute lane dtype W. Every node typed W emits a
Vector<W>; every Boolean-typed node emits a Vector<W> LANE MASK
(all-ones / zero lanes). Boolean is "byte mode": every operand is
bool and nodes carry canonical 0/1 bytes. Equals OutputType in legacy mode.
public NPTypeCode VectorLaneType { get; }
Property Value
VectorMode
public bool VectorMode { get; }