public static OpId OpId(this OpKind op, NumericSystem system, PrimalKind prim, NumericKind numKind = NumericKind.Native, Genericity generic = Genericity.Direct, OpFusion fusion = OpFusion.Atomic, string title = null) => new OpId(system, op, prim, numKind, generic, fusion, title);
public static OpId <T> OpId <T>(this OpKind op, NumericSystem system, NumericKind numKind = NumericKind.Native, Genericity generic = Genericity.Direct, OpFusion fusion = OpFusion.Atomic, string title = null) where T : struct => new OpId <T>(system, op, numKind, generic, fusion, title);
public OpId(NumericSystem NumSystem, OpKind OpKind, NumericKind NumKind, Genericity Generic, OpFusion Fusion, string OpTitle) { this.NumSystem = NumSystem; this.OpKind = OpKind; this.NumKind = NumKind; this.OperandType = PrimalKinds.kind <T>(); this.Generic = Generic; this.Fusion = Fusion; this.OpTitle = ifEmpty(OpTitle, OpId.DefineOpTitle(this)); this.OpUri = OpId.BuildOpUri(this); }
public static bool IsDirect(this Genericity src) => src == Genericity.Direct;
public static bool IsGeneric(this Genericity src) => src == Genericity.Generic;
public static Genericity Flip(this Genericity src) => src == Genericity.Generic ? Genericity.Direct : Genericity.Generic;