/// <inheritdoc />
 public string Format(string format, MutableNdArray<T> array,
                      IFormatProvider formatProvider)
     => FormatCore(format, array.ToImmutable(), formatProvider, "MutableNdArray");
 internal Enumerator(MutableNdArray <T> owner)
 {
     _Entity   = owner.Entity;
     _Position = -1;
 }
 internal InternalEnumerable(MutableNdArray <T> owner)
 => _Owner = owner;
Example #4
0
 /// <summary>
 ///     Gets an equivalent memory buffer of the data of the specified NdArray.
 /// </summary>
 /// <typeparam name="T"></typeparam>
 /// <param name="ndArray"></param>
 /// <returns></returns>
 internal static IBufferNdArrayImpl <T> GetOrCopyBuffer <T>(this MutableNdArray <T> ndArray)
 => (ndArray.Entity as IBufferNdArrayImpl <T>)
 ?? (ndArray.ToMutable().Entity as RawNdArrayImpl <T>) !;