39 instantiations of ReadOnlyTensorSpan
System.Numerics.Tensors (39)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
55return new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (5)
316public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 326return new ReadOnlyTensorSpan<T>( 409return new ReadOnlyTensorSpan<T>( 419return new ReadOnlyTensorSpan<T>( 429return new ReadOnlyTensorSpan<T>(
System\Numerics\Tensors\netcore\Tensor.cs (17)
17/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 19=> new ReadOnlyTensorSpan<T>(array); 21/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 23=> new ReadOnlyTensorSpan<T>(array, lengths); 25/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 27=> new ReadOnlyTensorSpan<T>(array, lengths, strides); 29/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 31=> new ReadOnlyTensorSpan<T>(array, start, lengths, strides); 294/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 299/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 304/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 309/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 1535ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 1977ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2126ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref tensor._reference, tmpShape); 2132tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape); 2389ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned);
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
137public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (14)
35/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 47/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 52/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 64/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 76/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 84/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 88/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 96/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 108/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 120/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 128/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 133/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 215new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape); 218public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape);
System\Runtime\InteropServices\TensorMarshal.cs (1)
37return new ReadOnlyTensorSpan<T>(in Unsafe.AsRef(in data), dataLength, lengths, strides, pinned);
815 references to ReadOnlyTensorSpan
System.Numerics.Tensors (815)
System\Numerics\Tensors\netcore\IReadOnlyTensor_1.cs (4)
38ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(); 43ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes); 46ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes); 51ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges);
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (5)
17private readonly ReadOnlyTensorSpan<T> _tensor; 22internal ReadOnlyTensorDimensionSpan(ReadOnlyTensorSpan<T> tensor, int dimension) 45public ReadOnlyTensorSpan<T> this[nint index] 65: IEnumerator<ReadOnlyTensorSpan<T>> 78public readonly ReadOnlyTensorSpan<T> Current => _span[_index];
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (26)
26: IReadOnlyTensor<ReadOnlyTensorSpan<T>, T> 30public static ReadOnlyTensorSpan<T> Empty => default; 266public ReadOnlyTensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges] 302public static bool operator ==(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) 311public static bool operator !=(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) => !(left == right); 316public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 323public static ReadOnlyTensorSpan<T> CastUp<TDerived>(in ReadOnlyTensorSpan<TDerived> items) 406public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes) 416public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes) 426public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges) 517ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan() => this; 519ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes); 521ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes); 523ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges); 525ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.ToDenseTensor() 527ReadOnlyTensorSpan<T> result = this; 543private readonly ReadOnlyTensorSpan<T> _span; 548internal Enumerator(ReadOnlyTensorSpan<T> span)
System\Numerics\Tensors\netcore\Tensor.cs (697)
17/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 18public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array) 21/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 22public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths) 25/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 26public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 29/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 30public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 55public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped in ReadOnlyTensorSpan<T> lengthsSource) 67public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped ReadOnlySpan<nint> lengths) 104public static void BroadcastTo<T>(in this ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination) 294/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 299/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 304/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 309/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 384/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size 387/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 388/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 390public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 399/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size 402/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 403/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 406public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 415/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size 418/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 421public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, T y) 430/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> for equality. If the shapes are not the same, the tensors are broadcasted to the smallest broadcastable size 433/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 437public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 448/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 452/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 453/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 455public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 463/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 467/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 468/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 470public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, T y) 476/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 480/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 481/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 483public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 495/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 499/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 502public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, T y) 513public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, T value) 527public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, scoped in ReadOnlyTensorSpan<T> values) 537/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 542/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 543/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 546public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 555/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 560/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 561/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 565public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 574/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 578/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 582public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, T y) 591/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 595/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 600public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 613/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 617public static Tensor<bool> GreaterThan<T>(T x, in ReadOnlyTensorSpan<T> y) 625/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 630public static ref readonly TensorSpan<bool> GreaterThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 636/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 640/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 641/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 643public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 651/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 655/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 656/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 658public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 662/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 666/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 667/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 669public static bool GreaterThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 675/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 679/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 680/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 682public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 694/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 698/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 701public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 705/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 709/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 712public static bool GreaterThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 718/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than or equal to <paramref name="y"/>. 723/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 724/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 727public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 736/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than or equal to <paramref name="y"/>. 741/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 742/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 746public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 755/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 759/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 763public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 772/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 776/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 781public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 794/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 798public static Tensor<bool> GreaterThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 806/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 811public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 817/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 821/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 822/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 824public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 832/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 836/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 837/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 839public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 843/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 847/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 848/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 850public static bool GreaterThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 856/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 860/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 861/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 863public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 875/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 879/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 882public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 886/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 890/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 893public static bool GreaterThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 899/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 904/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 905/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 908public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 917/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 922/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 923/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 927public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 944public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, T y) 962public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 979public static Tensor<bool> LessThan<T>(T x, in ReadOnlyTensorSpan<T> y) 992public static ref readonly TensorSpan<bool> LessThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 998/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1002/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1003/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1005public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1013/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1017/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1020public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1024/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1031public static bool LessThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1037/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1041/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1042/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1044public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1056/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1060/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1063public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1067/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1074public static bool LessThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1080/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1085/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1086/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1089public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1098/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1103/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1104/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1108public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1125public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 1143public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1160public static Tensor<bool> LessThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 1173public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1179/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1183/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1184/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1186public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1194/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1198/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1201public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1205/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1212public static bool LessThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1218/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1222/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1223/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1225public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1237/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1241/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1244public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1248/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1255public static bool LessThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1471public static ReadOnlyTensorSpan<T> Reshape<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths) 1535ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 1588/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 1590public static void ResizeTo<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1606public static Tensor<T> Reverse<T>(in ReadOnlyTensorSpan<T> tensor) 1620public static Tensor<T> ReverseDimension<T>(in ReadOnlyTensorSpan<T> tensor, int dimension) 1633public static ref readonly TensorSpan<T> Reverse<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1645public static ref readonly TensorSpan<T> ReverseDimension<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination, int dimension) 1684public static bool SequenceEqual<T>(this scoped in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1696public static bool SequenceEqual<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1713public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 1725public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges) 1747public static Tensor<T>[] Split<T>(scoped in ReadOnlyTensorSpan<T> tensor, int splitCount, nint dimension) 1921/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove all dimensions of length 1.</param> 1922public static ReadOnlyTensorSpan<T> Squeeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor) 1931/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove dimension of length 1.</param> 1933public static ReadOnlyTensorSpan<T> SqueezeDimension<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 1977ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2067internal static string ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, string typeName) 2104private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0) 2126ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref tensor._reference, tmpShape); 2157private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, nint length, StringBuilder sb, int indentLevel) 2270/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2272public static bool TryBroadcastTo<T>(in this ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 2361/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to add a dimension of length 1.</param> 2363public static ReadOnlyTensorSpan<T> Unsqueeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2389ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned); 2401/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the abs of.</param> 2402public static Tensor<T> Abs<T>(in ReadOnlyTensorSpan<T> x) 2411/// Takes the absolute value of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2415public static ref readonly TensorSpan<T> Abs<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2428/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2429public static Tensor<T> Acos<T>(in ReadOnlyTensorSpan<T> x) 2442public static ref readonly TensorSpan<T> Acos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2453/// Takes the inverse hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2455/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2456public static Tensor<T> Acosh<T>(in ReadOnlyTensorSpan<T> x) 2469public static ref readonly TensorSpan<T> Acosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2482/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2483public static Tensor<T> AcosPi<T>(in ReadOnlyTensorSpan<T> x) 2494/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2496public static ref readonly TensorSpan<T> AcosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2507/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2509/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2510public static Tensor<T> Asin<T>(in ReadOnlyTensorSpan<T> x) 2519/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2521/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2523public static ref readonly TensorSpan<T> Asin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2534/// Takes the inverse hyperbolic sine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2536/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2537public static Tensor<T> Asinh<T>(in ReadOnlyTensorSpan<T> x) 2546/// Takes the inverse hyperbolic sine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2548/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2550public static ref readonly TensorSpan<T> Asinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2561/// Takes the inverse hyperbolic sine divided by pi of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2563/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2564public static Tensor<T> AsinPi<T>(in ReadOnlyTensorSpan<T> x) 2573/// Takes the inverse hyperbolic sine divided by pi of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2575/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2577public static ref readonly TensorSpan<T> AsinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2588/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2590/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2591public static Tensor<T> Atan<T>(in ReadOnlyTensorSpan<T> x) 2600/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2602/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2604public static ref readonly TensorSpan<T> Atan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2615/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2617/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2618/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2619public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2628/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2630/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2631/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2633public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2642/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2644/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2645/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2646public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, T y) 2655/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2657/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2658/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2660public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2669/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2671/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2672/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2673public static Tensor<T> Atan2<T>(T x, in ReadOnlyTensorSpan<T> y) 2682/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2684/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2685/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2687public static ref readonly TensorSpan<T> Atan2<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2698/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/>, divides each element by pi, and returns a new <see cref="Tensor{T}"/> with the result. 2700/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2701/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2702public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2711/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/>, divides each element by pi, and returns a new <see cref="TensorSpan{T}"/> with the result. 2713/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2714/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2716public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2725/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/>, divides each element by pi, and returns a new <see cref="TensorSpan{T}"/> with the result. 2727/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2728/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2729public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, T y) 2738/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/>, divides each element by pi, and returns a new <see cref="TensorSpan{T}"/> with the result. 2740/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2741/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2743public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2752/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/>, divides each element by pi, and returns a new <see cref="TensorSpan{T}"/> with the result. 2754/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2755/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2756public static Tensor<T> Atan2Pi<T>(T x, in ReadOnlyTensorSpan<T> y) 2765/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/>, divides each element by pi, and returns a new <see cref="TensorSpan{T}"/> with the result. 2767/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2768/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2770public static ref readonly TensorSpan<T> Atan2Pi<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2781/// Takes the inverse hyperbolic tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2783/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2784public static Tensor<T> Atanh<T>(in ReadOnlyTensorSpan<T> x) 2793/// Takes the inverse hyperbolic tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2795/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2797public static ref readonly TensorSpan<T> Atanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2808/// Takes the inverse hyperbolic tangent divided by pi of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2810/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 2811public static Tensor<T> AtanPi<T>(in ReadOnlyTensorSpan<T> x) 2820/// Takes the inverse hyperbolic tangent divided by pi of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2822/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 2824public static ref readonly TensorSpan<T> AtanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2839public static T Average<T>(scoped in ReadOnlyTensorSpan<T> x) 2852/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2854/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2855public static Tensor<T> Cbrt<T>(in ReadOnlyTensorSpan<T> x) 2864/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2866/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2868public static ref readonly TensorSpan<T> Cbrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2879/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2881/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2882public static Tensor<T> Ceiling<T>(in ReadOnlyTensorSpan<T> x) 2891/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2893/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2895public static ref readonly TensorSpan<T> Ceiling<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2906/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 2909/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2910public static Tensor<TTo> ConvertChecked<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 2925public static ref readonly TensorSpan<TTo> ConvertChecked<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 2937/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 2940/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2941public static Tensor<TTo> ConvertSaturating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 2956public static ref readonly TensorSpan<TTo> ConvertSaturating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 2968/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 2971/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2972public static Tensor<TTo> ConvertTruncating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 2987public static ref readonly TensorSpan<TTo> ConvertTruncating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3001/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3003public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, T sign) 3014/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3015/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3016public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> sign) 3027/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3030public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, T sign, in TensorSpan<T> destination) 3041/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3042/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3044public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> sign, in TensorSpan<T> destination) 3055/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3057/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3058public static Tensor<T> Cos<T>(in ReadOnlyTensorSpan<T> x) 3067/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3069/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3071public static ref readonly TensorSpan<T> Cos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3082/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3084/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3085public static Tensor<T> Cosh<T>(in ReadOnlyTensorSpan<T> x) 3094/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3096/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3098public static ref readonly TensorSpan<T> Cosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3111/// <param name="x">The first <see cref="ReadOnlyTensorSpan{T}"/></param> 3112/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/></param> 3113public static T CosineSimilarity<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3125/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3138public static Tensor<T> CosPi<T>(in ReadOnlyTensorSpan<T> x) 3147/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3161public static ref readonly TensorSpan<T> CosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3174/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3175public static Tensor<T> DegreesToRadians<T>(in ReadOnlyTensorSpan<T> x) 3186/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3188public static ref readonly TensorSpan<T> DegreesToRadians<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3201/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3202/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3203public static T Distance<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y) 3217/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3218/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3219public static T Dot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3233/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3234public static Tensor<T> Exp<T>(in ReadOnlyTensorSpan<T> x) 3245/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3247public static ref readonly TensorSpan<T> Exp<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3260/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3261public static Tensor<T> Exp10<T>(in ReadOnlyTensorSpan<T> x) 3272/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3274public static ref readonly TensorSpan<T> Exp10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3285/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3286public static Tensor<T> Exp10M1<T>(in ReadOnlyTensorSpan<T> x) 3295/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3297public static ref readonly TensorSpan<T> Exp10M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3308/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3309public static Tensor<T> Exp2<T>(in ReadOnlyTensorSpan<T> x) 3318/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3320public static ref readonly TensorSpan<T> Exp2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3331/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3332public static Tensor<T> Exp2M1<T>(in ReadOnlyTensorSpan<T> x) 3341/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3343public static ref readonly TensorSpan<T> Exp2M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3354/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3355public static Tensor<T> ExpM1<T>(in ReadOnlyTensorSpan<T> x) 3364/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3366public static ref readonly TensorSpan<T> ExpM1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3377/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3378public static Tensor<T> Floor<T>(in ReadOnlyTensorSpan<T> x) 3387/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3389public static ref readonly TensorSpan<T> Floor<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3403/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3404/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3405public static Tensor<T> Hypot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3417/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3418/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3420public static ref readonly TensorSpan<T> Hypot<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3432/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3433/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3434public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3444/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3445/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3447public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3456/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3457/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3458public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, T y) 3467/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3468/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3470public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3479/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3480/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3481public static Tensor<T> Ieee754Remainder<T>(T x, in ReadOnlyTensorSpan<T> y) 3490/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3491/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3493public static ref readonly TensorSpan<T> Ieee754Remainder<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3504/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3505public static Tensor<int> ILogB<T>(in ReadOnlyTensorSpan<T> x) 3514/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3516public static ref readonly TensorSpan<int> ILogB<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<int> destination) 3527/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3528public static nint IndexOfMax<T>(scoped in ReadOnlyTensorSpan<T> x) 3539/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3540public static nint IndexOfMaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3550/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3551public static nint IndexOfMin<T>(scoped in ReadOnlyTensorSpan<T> x) 3563/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3564public static nint IndexOfMinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3576/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3577public static Tensor<T> LeadingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 3588/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3590public static ref readonly TensorSpan<T> LeadingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3601/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3603/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3604public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x) 3613/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3615/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3617public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3628public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3640public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3651public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, T y) 3663public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3674/// Takes the base 10 logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3676/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3677public static Tensor<T> Log10<T>(in ReadOnlyTensorSpan<T> x) 3686/// Takes the base 10 logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3688/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3690public static ref readonly TensorSpan<T> Log10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3701/// Takes the base 10 logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3703/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3704public static Tensor<T> Log10P1<T>(in ReadOnlyTensorSpan<T> x) 3713/// Takes the base 10 logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3715/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3717public static ref readonly TensorSpan<T> Log10P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3728/// Takes the base 2 logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3730/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3731public static Tensor<T> Log2<T>(in ReadOnlyTensorSpan<T> x) 3740/// Takes the base 2 logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3742/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3744public static ref readonly TensorSpan<T> Log2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3755/// Takes the base 2 logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3757/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3758public static Tensor<T> Log2P1<T>(in ReadOnlyTensorSpan<T> x) 3767/// Takes the base 2 logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3769/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3771public static ref readonly TensorSpan<T> Log2P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3782/// Takes the natural logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3784/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3785public static Tensor<T> LogP1<T>(in ReadOnlyTensorSpan<T> x) 3794/// Takes the natural logarithm plus 1 of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3796/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3798public static ref readonly TensorSpan<T> LogP1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3809/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3810public static T Max<T>(scoped in ReadOnlyTensorSpan<T> x) 3826public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3838public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3849public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, T y) 3861public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3872/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3873public static T MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3889public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3901public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3912public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 3924public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3935/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3936public static T MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 3952public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3964public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3975public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 3987public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3998/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3999public static T MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4015public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4027public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4038public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4050public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4061/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4062public static T Min<T>(scoped in ReadOnlyTensorSpan<T> x) 4078public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4090public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4101public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, T y) 4113public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4124/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4125public static T MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4141public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4153public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4164public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4176public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4187/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4188public static T MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4204public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4216public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4227public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4239public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4250/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4251public static T MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4267public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4279public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4290public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4302public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4313/// Takes the norm of the <see cref="ReadOnlyTensorSpan{T}"/> and returns the result. 4315/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the norm of.</param> 4316public static T Norm<T>(scoped in ReadOnlyTensorSpan<T> x) 4327/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4328public static Tensor<T> PopCount<T>(in ReadOnlyTensorSpan<T> x) 4337/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4339public static ref readonly TensorSpan<T> PopCount<T>(scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4350/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4351/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4352public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4361/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4362/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4364public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4373/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4375public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, T y) 4384/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4385/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4387public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4396/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4398public static Tensor<T> Pow<T>(T x, in ReadOnlyTensorSpan<T> y) 4407/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4408/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4410public static ref readonly TensorSpan<T> Pow<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4421/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4422public static T Product<T>(scoped in ReadOnlyTensorSpan<T> x) 4433/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4434public static Tensor<T> RadiansToDegrees<T>(in ReadOnlyTensorSpan<T> x) 4443/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4445public static ref readonly TensorSpan<T> RadiansToDegrees<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4456/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4457public static Tensor<T> Reciprocal<T>(in ReadOnlyTensorSpan<T> x) 4466/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4468public static ref readonly TensorSpan<T> Reciprocal<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4481public static Tensor<T> RootN<T>(in ReadOnlyTensorSpan<T> x, int n) 4493public static ref readonly TensorSpan<T> RootN<T>(scoped in ReadOnlyTensorSpan<T> x, int n, in TensorSpan<T> destination) 4507public static Tensor<T> RotateLeft<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4520public static ref readonly TensorSpan<T> RotateLeft<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 4534public static Tensor<T> RotateRight<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4547public static ref readonly TensorSpan<T> RotateRight<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 4558/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4559public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x) 4568/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4570public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4579/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4582public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode) 4591/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4595public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode, in TensorSpan<T> destination) 4604/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4606public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits) 4615/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4618public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, in TensorSpan<T> destination) 4627/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4629public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, MidpointRounding mode) 4638/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4641public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, MidpointRounding mode, in TensorSpan<T> destination) 4652/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4653public static Tensor<T> Sigmoid<T>(in ReadOnlyTensorSpan<T> x) 4662/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4664public static ref readonly TensorSpan<T> Sigmoid<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4675/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4677/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4678public static Tensor<T> Sin<T>(in ReadOnlyTensorSpan<T> x) 4687/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 4689/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4691public static ref readonly TensorSpan<T> Sin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4702/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4703public static Tensor<T> Sinh<T>(in ReadOnlyTensorSpan<T> x) 4712/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4714public static ref readonly TensorSpan<T> Sinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4725/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4726public static Tensor<T> SinPi<T>(in ReadOnlyTensorSpan<T> x) 4735/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4737public static ref readonly TensorSpan<T> SinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4748/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4749public static Tensor<T> SoftMax<T>(in ReadOnlyTensorSpan<T> x) 4761/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4763public static ref readonly TensorSpan<T> SoftMax<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4777/// Takes the square root of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4779/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 4780public static Tensor<T> Sqrt<T>(in ReadOnlyTensorSpan<T> x) 4791/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 4793public static ref readonly TensorSpan<T> Sqrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4808public static T StdDev<T>(in ReadOnlyTensorSpan<T> x) 4826public static T Sum<T>(scoped in ReadOnlyTensorSpan<T> x) 4841internal static T SumOfSquares<T>(scoped in ReadOnlyTensorSpan<T> x) 4852/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4853public static Tensor<T> Tan<T>(in ReadOnlyTensorSpan<T> x) 4862/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4864public static ref readonly TensorSpan<T> Tan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4875/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4876public static Tensor<T> Tanh<T>(in ReadOnlyTensorSpan<T> x) 4885/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4887public static ref readonly TensorSpan<T> Tanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4898/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4899public static Tensor<T> TanPi<T>(in ReadOnlyTensorSpan<T> x) 4908/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4910public static ref readonly TensorSpan<T> TanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4921/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4922public static Tensor<T> TrailingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 4931/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4933public static ref readonly TensorSpan<T> TrailingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4944/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4945public static Tensor<T> Truncate<T>(in ReadOnlyTensorSpan<T> x) 4954/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4956public static ref readonly TensorSpan<T> Truncate<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination)
System\Numerics\Tensors\netcore\Tensor.op_OnesComplement.cs (6)
12public static Tensor<T> OnesComplement<T>(in ReadOnlyTensorSpan<T> x) 26public static ref readonly TensorSpan<T> OnesComplement<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 35extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 41public static Tensor<TScalar> operator ~(in ReadOnlyTensorSpan<TScalar> tensor) => OnesComplement(tensor); 48/// <inheritdoc cref="op_OnesComplement{T}(in ReadOnlyTensorSpan{T})" /> 56/// <inheritdoc cref="op_OnesComplement{T}(in ReadOnlyTensorSpan{T})" />
System\Numerics\Tensors\netcore\Tensor.op_UnaryNegation.cs (6)
11public static Tensor<T> Negate<T>(in ReadOnlyTensorSpan<T> x) 24public static ref readonly TensorSpan<T> Negate<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 33extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 39public static Tensor<TScalar> operator -(in ReadOnlyTensorSpan<TScalar> tensor) => Negate(tensor); 46/// <inheritdoc cref="op_UnaryNegation{T}(in ReadOnlyTensorSpan{T})" /> 54/// <inheritdoc cref="op_UnaryNegation{T}(in ReadOnlyTensorSpan{T})" />
System\Numerics\Tensors\netcore\Tensor.op_UnaryPlus.cs (5)
9extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 15public static ReadOnlyTensorSpan<TScalar> operator +(in ReadOnlyTensorSpan<TScalar> tensor) => tensor; 22/// <inheritdoc cref="op_UnaryPlus{T}(in ReadOnlyTensorSpan{T})" /> 30/// <inheritdoc cref="op_UnaryPlus{T}(in ReadOnlyTensorSpan{T})" />
System\Numerics\Tensors\netcore\Tensor_1.cs (8)
133/// <inheritdoc cref="TensorSpan{T}.implicit operator ReadOnlyTensorSpan{T}(in TensorSpan{T})" /> 134public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> tensor) => tensor.AsReadOnlyTensorSpan(); 137public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape); 140public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 143public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 146public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 291/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString()" /> 294/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString(ReadOnlySpan{nint})" />
System\Numerics\Tensors\netcore\TensorOperation.cs (27)
29public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y) 61public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, TArg y) 106public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 127public static void ReverseInvoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 156public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in Span<TResult> destination) 176public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, ref TResult destination) 194public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 219public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 223public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, ref TResult result) 248public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, in TensorSpan<TResult> destination) 252public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, int y, in TensorSpan<TResult> destination) 255public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, in TensorSpan<TResult> destination) 277public static void Invoke<TOperation, TArg, TResult>(TArg x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 299public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, ref TResult result) 318public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, ref TResult result) 321public static void ValidateCompatibility<TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlySpan<nint> lengths) 328public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TResult> y) 335public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 342public static void ValidateCompatibility<TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 359public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, out Tensor<TResult> destination)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (27)
35/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 47/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 52/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 64/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 76/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 84/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 88/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 96/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 108/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 120/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 128/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 133/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 198/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator ==(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 203/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator !=(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 214public static implicit operator ReadOnlyTensorSpan<T>(scoped in TensorSpan<T> tensor) => 218public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape); 221public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 224public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 227public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 241/// <inheritdoc cref="ReadOnlyTensorSpan{T}.Equals(object?)" /> 265/// <inheritdoc cref="ReadOnlyTensorSpan{T}.GetHashCode" /> 331/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString()" /> 334/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString(ReadOnlySpan{nint})" />
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
18public TensorSpanDebugView(ReadOnlyTensorSpan<T> span)
System\Runtime\InteropServices\TensorMarshal.cs (3)
9/// <summary>Provides methods to interoperate with <see cref="Tensor{T}" />, <see cref="TensorSpan{T}" />, and <see cref="ReadOnlyTensorSpan{T}" />.</summary> 35public static ReadOnlyTensorSpan<T> CreateReadOnlyTensorSpan<T>(scoped ref readonly T data, nint dataLength, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides, bool pinned) 55public static ref readonly T GetReference<T>(in ReadOnlyTensorSpan<T> tensorSpan)