Beispiel #1
0
        /// <summary>
        /// = (end)
        /// </summary>
        /// <param name="colon"></param>
        public static double _(this ILArray <double> ilArray, ILNumerics.Misc.ILExpression index)
        {
            ILArray <double> result = ilArray[index];

            if (!result.IsScalar)
            {
                throw new ApplicationException();
            }
            return((double)result);
        }
Beispiel #2
0
 /// <summary>
 /// (..., i:end, ...)
 /// </summary>
 /// <param name="colon">':'</param>
 /// <param name="ilExpression">~ end</param>
 protected static ILBaseArray _(int index, char colon, ILNumerics.Misc.ILExpression ilExpression)
 {
     return(ILMath.r(index - 1, ilExpression));
 }
Beispiel #3
0
 /// <summary>
 /// (..., end, ...)
 /// </summary>
 /// <param name="ilExpression">~ end</param>
 protected static ILNumerics.Misc.ILExpression _(ILNumerics.Misc.ILExpression ilExpression)
 {
     return(ilExpression);
 }