Operator BitwiseOr
BitwiseOr(Nullable<BigRational>, BigRational)
Performs a bitwise Or operation on two BigRational values.
Declaration
public static BigRational operator |(Nullable<BigRational> a, BigRational b)
Parameters
Type | Name | Description |
---|---|---|
System.Nullable<BigRational> | a | |
BigRational | b |
Returns
Type | Description |
---|---|
BigRational | The result of the bitwise Or operation. |
Remarks
The special case Zero Or before a target assignment activates an internal optimization.
Significant better performance without normalization and allocs for intermediate results.
Example:
var x = a * b + c * d + e * f; // standard notation.
var y = 0 | a * b + c * d + e * f; // 5x faster for this example!
For C# there is currently no better way to achieve such performance with standard notation
since the compiler does not support assign-operators.