Пример #1
0
 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);
Пример #2
0
 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);
Пример #3
0
 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);
 }
Пример #4
0
 public static bool IsDirect(this Genericity src)
 => src == Genericity.Direct;
Пример #5
0
 public static bool IsGeneric(this Genericity src)
 => src == Genericity.Generic;
Пример #6
0
 public static Genericity Flip(this Genericity src)
 => src == Genericity.Generic
     ? Genericity.Direct
     : Genericity.Generic;