/// <summary> /// Creates a new <see cref="NDArray"/> with this storage. /// </summary> /// <param name="shape">The shape to set for this NDArray, does not perform checks.</param> /// <remarks>Doesn't copy. Does not perform checks for <paramref name="shape"/>.</remarks> protected internal NDArray(UnmanagedStorage storage, ref Shape shape) { Storage = storage.Alias(ref shape); tensorEngine = storage.Engine; }