Esempio n. 1
0
/*!HC:TYPELIST:
<hycalper>
<type>
    <source locate="after">
        inArr1
    </source>
    <destination>complex</destination>
</type>
<type>
    <source locate="after">
        inCls1
    </source>
    <destination><![CDATA[ILArray<complex>]]></destination>
</type>
<type>
    <source locate="after">
        outCls1
    </source>
    <destination><![CDATA[ILArray<complex>]]></destination>
</type>
<type>
    <source locate="after">
        Tcls3Name 
    </source>
    <destination>opcomplex_complex</destination>
</type>
<type>
    <source locate="after">
        anonMethodBase
    </source>
    <destination>complex</destination>
</type>
<type>
    <source locate="after">
        unaryop
    </source>
    <destination>ComplexOperatorComplex</destination>
</type>
</hycalper>
*/

        /// <summary>
        /// power function - returns same type
        /// </summary>
        /// <param name="A">input array</param>
        /// <param name="exponent">real exponent</param>
        /// <returns>array of same type as A, with corresponding elements filled with: A<sub>i,j,...</sub><sup>exponent</sup>.</returns>
        public static /*!HC:outCls1*/ ILArray<double> pow(/*!HC:inCls1*/ ILArray<double> A, /*!HC:inArr1*/ double exponent)
        {
            /*!HC:Tcls3Name*/ opdouble_double helper = new /*!HC:Tcls3Name*/ opdouble_double (exponent, /*!HC:anonMethodBase*/ Math .Pow );
            return /*!HC:unaryop*/ DoubleOperatorDouble (A, helper.operate);
        }
Esempio n. 2
0
        private static /*!HC:outCls1*/ ILArray <double> min(/*!HC:inCls1*/ ILArray <double> A, /*!HC:inArrSkalar*/ double parameter)
        {
            /*!HC:Tcls3Name*/ opdouble_double helper = new /*!HC:Tcls3Name*/ opdouble_double(parameter, null);

            return /*!HC:hcwalkerop*/ (DoubleOperatorDouble(A, helper.min));
        }
Esempio n. 3
0
 private static /*!HC:outCls1*/ ILArray<double> min(/*!HC:inCls1*/ ILArray<double> A,/*!HC:inArrSkalar*/ double parameter) {
     /*!HC:Tcls3Name*/ opdouble_double helper = new /*!HC:Tcls3Name*/ opdouble_double (parameter, null);
     return /*!HC:hcwalkerop*/ DoubleOperatorDouble (A, helper.min);
 }
Esempio n. 4
0
        /// <summary>
        /// power function - returns same type
        /// </summary>
        /// <param name="A">input array</param>
        /// <param name="exponent">real exponent</param>
        /// <returns>array of same type as A, with corresponding elements filled with: A<sub>i,j,...</sub><sup>exponent</sup>.</returns>
        public static /*!HC:outCls1*/ ILArray <double> pow(/*!HC:inCls1*/ ILArray <double> A, /*!HC:inArr1*/ double exponent)
        {
            /*!HC:Tcls3Name*/ opdouble_double helper = new /*!HC:Tcls3Name*/ opdouble_double(exponent, /*!HC:anonMethodBase*/ Math.Pow);

            return /*!HC:unaryop*/ (DoubleOperatorDouble(A, helper.operate));
        }