コード例 #1
0
 /// <summary>
 /// Modulo operator.
 /// </summary>
 public static ArithmeticSeries <TKey, TValue, ModuloReverseOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > operator %(TValue constant, ArithmeticSeries <TKey, TValue, TOp, TCursor> series)
 {
     return(ArithmeticSeries <TKey, TValue, ModuloReverseOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > .Create(series, constant));
 }
コード例 #2
0
 /// <summary>
 /// Divide operator.
 /// </summary>
 public static ArithmeticSeries <TKey, TValue, DivideOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > operator /(ArithmeticSeries <TKey, TValue, TOp, TCursor> series, TValue constant)
 {
     return(ArithmeticSeries <TKey, TValue, DivideOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > .Create(series, constant));
 }
コード例 #3
0
 /// <summary>
 /// Unary plus operator.
 /// </summary>
 public static ArithmeticSeries <TKey, TValue, PlusOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > operator +(ArithmeticSeries <TKey, TValue, TOp, TCursor> series)
 {
     return(ArithmeticSeries <TKey, TValue, PlusOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > .Create(series, default(TValue)));
 }
コード例 #4
0
 /// <summary>
 /// Multiply operator.
 /// </summary>
 public static ArithmeticSeries <TKey, TValue, MultiplyOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > operator *(TValue constant, ArithmeticSeries <TKey, TValue, TOp, TCursor> series)
 {
     // Multiplication is commutative
     return(ArithmeticSeries <TKey, TValue, MultiplyOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > .Create(series, constant));
 }
コード例 #5
0
 /// <summary>
 /// Add operator.
 /// </summary>
 public static ArithmeticSeries <TKey, TValue, AddOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > operator +(TValue constant, ArithmeticSeries <TKey, TValue, TOp, TCursor> series)
 {
     // Addition is commutative
     return(ArithmeticSeries <TKey, TValue, AddOp <TValue>, ArithmeticSeries <TKey, TValue, TOp, TCursor> > .Create(series, constant));
 }