Ejemplo n.º 1
0
 /// <inheritdoc />
 public string Format(string format, NdArray<T> array, IFormatProvider formatProvider)
     => FormatCore(format, array, formatProvider, "NdArray");
Ejemplo n.º 2
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 NdArray <T> ndArray)
 => (ndArray.Entity as IBufferNdArrayImpl <T>)
 ?? (ndArray.ToMutable().Entity as RawNdArrayImpl <T>) !;