Esempio n. 1
0
 /// <summary>
 /// Overloads minus operator for subtracting two ILArrays of numeric type elementwise
 /// </summary>
 /// <param name="in1">Minuend</param>
 /// <param name="in2">Subtrahend</param>
 /// <returns>New ILArray of same type as in1 with difference of elements for
 /// <code>in1 - in2</code></returns>
 /// <remarks>This operator is overloaded for all numeric datatypes: <![CDATA[ILArray<double>,ILArray<float>,ILArray<complex>,ILArray<fcomplex>,ILArray<byte>,ILArray<char>,ILArray<Int16>,ILArray<Int32>,ILArray<Int64>,ILArray<UInt16>,ILArray<UInt32>,ILArray<UInt64>]]></remarks>
 public static ILArray <byte> operator -(ILArray <byte> in1, ILArray <BaseT> in2)
 {
     if (false)
     {
     }
     else if (in2 is  ILArray <byte> )
     {
         return(ILMath.subtract(in1, in2 as  ILArray <byte>));
     }
     throw new Exception("Operator - not defined for "
                         + in1.GetType().Name + " and " + in2.GetType().Name);
 }
Esempio n. 2
0
 /// <summary>
 /// Overloads minus operator for subtracting two ILArrays of numeric type elementwise
 /// </summary>
 /// <param name="in1">Minuend</param>
 /// <param name="in2">Subtrahend</param>
 /// <returns>New ILArray of same type as in1 with difference of elements for
 /// <code>in1 - in2</code></returns>
 /// <remarks>This operator is overloaded for all numeric datatypes: <![CDATA[ILArray<double>,ILArray<float>,ILArray<complex>,ILArray<fcomplex>,ILArray<byte>,ILArray<char>,ILArray<Int16>,ILArray<Int32>,ILArray<Int64>,ILArray<UInt16>,ILArray<UInt32>,ILArray<UInt64>]]></remarks>
 public static /*!HC:outArr1*/ ILArray <double> operator -(/*!HC:inCls1*/ ILArray <double> in1, ILArray <BaseT> in2)
 {
     if (false)
     {
     }
     else if (in2 is /*!HC:inCls2*/ ILArray <double> )
     {
         return(ILMath.subtract(in1, in2 as /*!HC:inCls2*/ ILArray <double>));
     }
     throw new Exception("Operator - not defined for "
                         + in1.GetType().Name + " and " + in2.GetType().Name);
 }