Example #1
0
 internal static void IsNotZeroSize(IRandomAccessible <double> v)
 {
     if (v.Size == 0)
     {
         throw new ArgumentException("zero size");
     }
 }
Example #2
0
 internal static void IsNotZeroSize(IRandomAccessible<double> v)
 {
     if (v.Size == 0)
     {
         throw new ArgumentException("zero size");
     }
 }
Example #3
0
 internal static void SizeEquals(IRandomAccessible <double> v1, IRandomAccessible <double> v2)
 {
     if (v1.Size != v2.Size)
     {
         throw new ArgumentException(
                   String.Format("mismatch size: ({0}) != ({1})", v1.Size, v2.Size));
     }
 }
Example #4
0
 internal static void SizeEquals(IRandomAccessible<double> v1, IRandomAccessible<double> v2)
 {
     if (v1.Size != v2.Size)
     {
         throw new ArgumentException(
             String.Format("mismatch size: ({0}) != ({1})", v1.Size, v2.Size));
     }
 }
Example #5
0
        internal static IEnumerator <double> GetEnumerator(IRandomAccessible <double> values)
        {
            int size = values.Size;

            for (int i = 0; i < size; ++i)
            {
                yield return(values[i]);
            }
        }