/// <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)); }
/// <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)); }
/// <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))); }
/// <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)); }
/// <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)); }