Neuron®
The Neuron® is the basis for the creation of open and secure federated networks for smart societies.
Loading...
Searching...
No Matches
SemanticNumericLiterals.cs
1using System;
5
7{
12 {
17
22 {
23 }
24
30 public override bool Contains(IElement Element)
31 {
33 }
34
38 public override int? Size => null;
39
41 public override bool Equals(object obj)
42 {
43 return obj.GetType() == typeof(SemanticNumericLiterals);
44 }
45
47 public override int GetHashCode()
48 {
49 return typeof(SemanticNumericLiterals).GetHashCode();
50 }
51
58 public int Compare(IElement x, IElement y)
59 {
60 if (x is IComparable Left)
61 return Left.CompareTo(y);
62 else
63 return 1;
64 }
65
70
75
76 }
77}
static readonly DoubleLiteral OneInstance
Double value 1.0
static readonly DoubleLiteral ZeroInstance
Double value 0.0
Abstract base class for semantic literal numeric values.
override? int Size
Size of set, if finite and known, otherwise null is returned.
override bool Contains(IElement Element)
Checks if the set contains an element.
override IAbelianGroupElement Zero
Returns the zero element of the group.
override bool Equals(object obj)
Compares the element to another. If elements are equal.
int Compare(IElement x, IElement y)
Compares two elements.
static readonly SemanticNumericLiterals Instance
Instance reference to the set of semantic numeric literals.
override ICommutativeRingWithIdentityElement One
Returns the identity element of the commutative ring with identity.
override int GetHashCode()
Calculates a hash code of the element. Hash code.
Base class for all types of elements.
Definition: Element.cs:13
Base class for all types of fields.
Definition: Field.cs:10
Basic interface for all types of abelian group elements.
Basic interface for all types of commutative ring with identity elements.
Basic interface for all types of elements.
Definition: IElement.cs:20
Basic interface for ordered sets.
Definition: IOrderedSet.cs:11