40 instantiations of ReadOnlyTensorSpan
System.Numerics.Tensors (40)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
52return new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (5)
313public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 323return new ReadOnlyTensorSpan<T>( 406return new ReadOnlyTensorSpan<T>( 416return new ReadOnlyTensorSpan<T>( 426return new ReadOnlyTensorSpan<T>(
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\Tensor.cs (18)
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); 262ReadOnlyTensorSpan<T> tempTensor = new ReadOnlyTensorSpan<T>(tempBuffer, 0, destination.Lengths, []); 319/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 324/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 329/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 334/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 1590ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 2093ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2242ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref tensor._reference, tmpShape); 2248tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape); 2505ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (14)
32/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 44/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 49/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 61/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 73/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 81/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 85/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 93/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 105/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 117/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 125/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 130/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 212new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape); 215public 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);
1005 references to ReadOnlyTensorSpan
System.Numerics.Tensors (1005)
System\Numerics\Tensors\netcore\IReadOnlyTensor_1.cs (4)
35ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(); 40ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes); 43ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes); 48ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges);
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (5)
14private readonly ReadOnlyTensorSpan<T> _tensor; 19internal ReadOnlyTensorDimensionSpan(ReadOnlyTensorSpan<T> tensor, int dimension) 42public ReadOnlyTensorSpan<T> this[nint index] 60public ref struct Enumerator : IEnumerator<ReadOnlyTensorSpan<T>> 72public readonly ReadOnlyTensorSpan<T> Current => _span[_index];
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (26)
24public readonly ref struct ReadOnlyTensorSpan<T> : IReadOnlyTensor<ReadOnlyTensorSpan<T>, T> 27public static ReadOnlyTensorSpan<T> Empty => default; 263public ReadOnlyTensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges] 299public static bool operator ==(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) 308public static bool operator !=(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) => !(left == right); 313public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 320public static ReadOnlyTensorSpan<T> CastUp<TDerived>(in ReadOnlyTensorSpan<TDerived> items) 403public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes) 413public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes) 423public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges) 513ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan() => this; 515ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes); 517ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes); 519ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges); 521ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.ToDenseTensor() 523ReadOnlyTensorSpan<T> result = this; 538private readonly ReadOnlyTensorSpan<T> _span; 543internal Enumerator(ReadOnlyTensorSpan<T> span)
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\Tensor.cs (707)
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) 262ReadOnlyTensorSpan<T> tempTensor = new ReadOnlyTensorSpan<T>(tempBuffer, 0, destination.Lengths, []); 319/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 324/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 329/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 334/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 439/// 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 442/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 443/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 445public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 454/// 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 457/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 458/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 461public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 470/// 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 473/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 476public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, T y) 485/// 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 488/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 492public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 503/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 507/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 508/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 510public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 518/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 522/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 523/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 525public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, T y) 531/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 535/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 536/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 538public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 550/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 554/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 557public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, T y) 568public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, T value) 582public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, scoped in ReadOnlyTensorSpan<T> values) 592/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 597/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 598/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 601public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 610/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 615/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 616/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 620public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 629/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 633/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 637public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, T y) 646/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 650/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 655public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 668/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 672public static Tensor<bool> GreaterThan<T>(T x, in ReadOnlyTensorSpan<T> y) 680/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 685public static ref readonly TensorSpan<bool> GreaterThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 691/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 695/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 696/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 698public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 706/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 710/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 711/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 713public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 717/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 721/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 722/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 724public static bool GreaterThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 730/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 734/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 735/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 737public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 749/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 753/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 756public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 760/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 764/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 767public static bool GreaterThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 773/// 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"/>. 778/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 779/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 782public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 791/// 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"/>. 796/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 797/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 801public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 810/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 814/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 818public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 827/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 831/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 836public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 849/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 853public static Tensor<bool> GreaterThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 861/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 866public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 872/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 876/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 877/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 879public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 887/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 891/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 892/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 894public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 898/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 902/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 903/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 905public static bool GreaterThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 911/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 915/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 916/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 918public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 930/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 934/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 937public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 941/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 945/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 948public static bool GreaterThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 954/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 959/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 960/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 963public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 972/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 977/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 978/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 982public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 999public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, T y) 1017public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1034public static Tensor<bool> LessThan<T>(T x, in ReadOnlyTensorSpan<T> y) 1047public static ref readonly TensorSpan<bool> LessThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1053/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1057/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1058/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1060public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1068/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1072/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1075public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1079/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1086public static bool LessThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1092/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1096/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1097/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1099public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1111/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1115/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1118public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1122/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1129public static bool LessThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1135/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1140/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1141/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1144public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1153/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1158/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1159/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1163public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1180public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 1198public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1215public static Tensor<bool> LessThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 1228public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1234/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1238/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1239/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1241public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1249/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1253/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1256public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1260/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1267public static bool LessThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1273/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1277/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1278/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1280public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1292/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1296/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1299public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1303/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1310public static bool LessThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1526public static ReadOnlyTensorSpan<T> Reshape<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths) 1590ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 1624ReadOnlyTensorSpan<T>.Enumerator enumerator = tensor.AsReadOnlyTensorSpan().GetEnumerator(); 1664/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 1666public static void ResizeTo<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1684ReadOnlyTensorSpan<T>.Enumerator srcEnumerator = tensor.GetEnumerator(); 1703public static Tensor<T> Reverse<T>(in ReadOnlyTensorSpan<T> tensor) 1717public static Tensor<T> ReverseDimension<T>(in ReadOnlyTensorSpan<T> tensor, int dimension) 1730public static ref readonly TensorSpan<T> Reverse<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1742public static ref readonly TensorSpan<T> ReverseDimension<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination, int dimension) 1781public static bool SequenceEqual<T>(this scoped in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1784return ((ReadOnlyTensorSpan<T>)tensor).SequenceEqual(other); 1790public static bool SequenceEqual<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1804ReadOnlyTensorSpan<T>.Enumerator enumerator1 = tensor.GetEnumerator(); 1805ReadOnlyTensorSpan<T>.Enumerator enumerator2 = other.GetEnumerator(); 1829public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 1841public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges) 1863public static Tensor<T>[] Split<T>(scoped in ReadOnlyTensorSpan<T> tensor, int splitCount, nint dimension) 2037/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove all dimensions of length 1.</param> 2038public static ReadOnlyTensorSpan<T> Squeeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor) 2047/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove dimension of length 1.</param> 2049public static ReadOnlyTensorSpan<T> SqueezeDimension<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2093ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2183internal static string ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, string typeName) 2220private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0) 2242ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref tensor._reference, tmpShape); 2273private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, nint length, StringBuilder sb, int indentLevel) 2386/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2388public static bool TryBroadcastTo<T>(in this ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 2477/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to add a dimension of length 1.</param> 2479public static ReadOnlyTensorSpan<T> Unsqueeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2505ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned); 2517/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the abs of.</param> 2518public static Tensor<T> Abs<T>(in ReadOnlyTensorSpan<T> x) 2527/// Takes the absolute value of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2531public static ref readonly TensorSpan<T> Abs<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2544/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2545public static Tensor<T> Acos<T>(in ReadOnlyTensorSpan<T> x) 2558public static ref readonly TensorSpan<T> Acos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2569/// 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. 2571/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2572public static Tensor<T> Acosh<T>(in ReadOnlyTensorSpan<T> x) 2585public static ref readonly TensorSpan<T> Acosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2598/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2599public static Tensor<T> AcosPi<T>(in ReadOnlyTensorSpan<T> x) 2610/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2612public static ref readonly TensorSpan<T> AcosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2623/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2625/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2626public static Tensor<T> Asin<T>(in ReadOnlyTensorSpan<T> x) 2635/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2637/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2639public static ref readonly TensorSpan<T> Asin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2650/// 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. 2652/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2653public static Tensor<T> Asinh<T>(in ReadOnlyTensorSpan<T> x) 2662/// 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. 2664/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2666public static ref readonly TensorSpan<T> Asinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2677/// 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. 2679/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2680public static Tensor<T> AsinPi<T>(in ReadOnlyTensorSpan<T> x) 2689/// 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. 2691/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2693public static ref readonly TensorSpan<T> AsinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2704/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2706/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2707public static Tensor<T> Atan<T>(in ReadOnlyTensorSpan<T> x) 2716/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2718/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2720public static ref readonly TensorSpan<T> Atan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2731/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2733/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2734/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2735public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2744/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2746/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2747/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2749public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2758/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2760/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2761/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2762public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, T y) 2771/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2773/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2774/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2776public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2785/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2787/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2788/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2789public static Tensor<T> Atan2<T>(T x, in ReadOnlyTensorSpan<T> y) 2798/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2800/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2801/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2803public static ref readonly TensorSpan<T> Atan2<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2814/// 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. 2816/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2817/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2818public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2827/// 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. 2829/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2830/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2832public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2841/// 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. 2843/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2844/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2845public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, T y) 2854/// 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. 2856/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2857/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2859public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2868/// 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. 2870/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2871/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2872public static Tensor<T> Atan2Pi<T>(T x, in ReadOnlyTensorSpan<T> y) 2881/// 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. 2883/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2884/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2886public static ref readonly TensorSpan<T> Atan2Pi<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2897/// 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. 2899/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2900public static Tensor<T> Atanh<T>(in ReadOnlyTensorSpan<T> x) 2909/// 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. 2911/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2913public static ref readonly TensorSpan<T> Atanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2924/// 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. 2926/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 2927public static Tensor<T> AtanPi<T>(in ReadOnlyTensorSpan<T> x) 2936/// 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. 2938/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 2940public static ref readonly TensorSpan<T> AtanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2955public static T Average<T>(scoped in ReadOnlyTensorSpan<T> x) 2968/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2970/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2971public static Tensor<T> Cbrt<T>(in ReadOnlyTensorSpan<T> x) 2980/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2982/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2984public static ref readonly TensorSpan<T> Cbrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2995/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2997/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2998public static Tensor<T> Ceiling<T>(in ReadOnlyTensorSpan<T> x) 3007/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3009/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3011public static ref readonly TensorSpan<T> Ceiling<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3022/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3025/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3026public static Tensor<TTo> ConvertChecked<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3041public static ref readonly TensorSpan<TTo> ConvertChecked<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3053/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3056/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3057public static Tensor<TTo> ConvertSaturating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3072public static ref readonly TensorSpan<TTo> ConvertSaturating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3084/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3087/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3088public static Tensor<TTo> ConvertTruncating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3103public static ref readonly TensorSpan<TTo> ConvertTruncating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3117/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3119public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, T sign) 3130/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3131/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3132public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> sign) 3143/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3146public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, T sign, in TensorSpan<T> destination) 3157/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3158/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3160public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> sign, in TensorSpan<T> destination) 3171/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3173/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3174public static Tensor<T> Cos<T>(in ReadOnlyTensorSpan<T> x) 3183/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3185/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3187public static ref readonly TensorSpan<T> Cos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3198/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3200/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3201public static Tensor<T> Cosh<T>(in ReadOnlyTensorSpan<T> x) 3210/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3212/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3214public static ref readonly TensorSpan<T> Cosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3227/// <param name="x">The first <see cref="ReadOnlyTensorSpan{T}"/></param> 3228/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/></param> 3229public static T CosineSimilarity<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3241/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3254public static Tensor<T> CosPi<T>(in ReadOnlyTensorSpan<T> x) 3263/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3277public static ref readonly TensorSpan<T> CosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3290/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3291public static Tensor<T> DegreesToRadians<T>(in ReadOnlyTensorSpan<T> x) 3302/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3304public static ref readonly TensorSpan<T> DegreesToRadians<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3317/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3318/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3319public static T Distance<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y) 3333/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3334/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3335public static T Dot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3349/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3350public static Tensor<T> Exp<T>(in ReadOnlyTensorSpan<T> x) 3361/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3363public static ref readonly TensorSpan<T> Exp<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3376/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3377public static Tensor<T> Exp10<T>(in ReadOnlyTensorSpan<T> x) 3388/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3390public static ref readonly TensorSpan<T> Exp10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3401/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3402public static Tensor<T> Exp10M1<T>(in ReadOnlyTensorSpan<T> x) 3411/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3413public static ref readonly TensorSpan<T> Exp10M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3424/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3425public static Tensor<T> Exp2<T>(in ReadOnlyTensorSpan<T> x) 3434/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3436public static ref readonly TensorSpan<T> Exp2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3447/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3448public static Tensor<T> Exp2M1<T>(in ReadOnlyTensorSpan<T> x) 3457/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3459public static ref readonly TensorSpan<T> Exp2M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3470/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3471public static Tensor<T> ExpM1<T>(in ReadOnlyTensorSpan<T> x) 3480/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3482public static ref readonly TensorSpan<T> ExpM1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3493/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3494public static Tensor<T> Floor<T>(in ReadOnlyTensorSpan<T> x) 3503/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3505public static ref readonly TensorSpan<T> Floor<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3519/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3520/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3521public static Tensor<T> Hypot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3533/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3534/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3536public static ref readonly TensorSpan<T> Hypot<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3548/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3549/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3550public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3560/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3561/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3563public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3572/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3573/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3574public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, T y) 3583/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3584/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3586public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3595/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3596/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3597public static Tensor<T> Ieee754Remainder<T>(T x, in ReadOnlyTensorSpan<T> y) 3606/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3607/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3609public static ref readonly TensorSpan<T> Ieee754Remainder<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3620/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3621public static Tensor<int> ILogB<T>(in ReadOnlyTensorSpan<T> x) 3630/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3632public static ref readonly TensorSpan<int> ILogB<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<int> destination) 3643/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3644public static nint IndexOfMax<T>(scoped in ReadOnlyTensorSpan<T> x) 3656private static nint IndexOfMaxFallback<T>(scoped in ReadOnlyTensorSpan<T> x) 3675/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3676public static nint IndexOfMaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3688private static nint IndexOfMaxMagnitudeFallback<T>(scoped in ReadOnlyTensorSpan<T> x) 3706/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3707public static nint IndexOfMin<T>(scoped in ReadOnlyTensorSpan<T> x) 3719private static nint IndexOfMinFallback<T>(scoped in ReadOnlyTensorSpan<T> x) 3739/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3740public static nint IndexOfMinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3752private static nint IndexOfMinMagnitudeFallback<T>(scoped in ReadOnlyTensorSpan<T> x) 3772/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3773public static Tensor<T> LeadingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 3784/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3786public static ref readonly TensorSpan<T> LeadingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3797/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3799/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3800public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x) 3809/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3811/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3813public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3824public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3836public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3847public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, T y) 3859public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3870/// 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. 3872/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3873public static Tensor<T> Log10<T>(in ReadOnlyTensorSpan<T> x) 3882/// 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. 3884/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3886public static ref readonly TensorSpan<T> Log10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3897/// 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. 3899/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3900public static Tensor<T> Log10P1<T>(in ReadOnlyTensorSpan<T> x) 3909/// 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. 3911/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3913public static ref readonly TensorSpan<T> Log10P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3924/// 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. 3926/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3927public static Tensor<T> Log2<T>(in ReadOnlyTensorSpan<T> x) 3936/// 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. 3938/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3940public static ref readonly TensorSpan<T> Log2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3951/// 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. 3953/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3954public static Tensor<T> Log2P1<T>(in ReadOnlyTensorSpan<T> x) 3963/// 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. 3965/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 3967public static ref readonly TensorSpan<T> Log2P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3978/// 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. 3980/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3981public static Tensor<T> LogP1<T>(in ReadOnlyTensorSpan<T> x) 3990/// 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. 3992/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3994public static ref readonly TensorSpan<T> LogP1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4005/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4006public static T Max<T>(scoped in ReadOnlyTensorSpan<T> x) 4022public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4034public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4045public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, T y) 4057public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4068/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4069public static T MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4085public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4097public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4108public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4120public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4131/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4132public static T MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4148public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4160public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4171public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4183public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4194/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4195public static T MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4211public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4223public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4234public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4246public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4257/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4258public static T Min<T>(scoped in ReadOnlyTensorSpan<T> x) 4274public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4286public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4297public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, T y) 4309public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4320/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4321public static T MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4337public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4349public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4360public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4372public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4383/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4384public static T MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4400public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4412public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4423public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4435public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4446/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4447public static T MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4463public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4475public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4486public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4498public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4509/// Takes the norm of the <see cref="ReadOnlyTensorSpan{T}"/> and returns the result. 4511/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the norm of.</param> 4512public static T Norm<T>(scoped in ReadOnlyTensorSpan<T> x) 4523/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4524public static Tensor<T> PopCount<T>(in ReadOnlyTensorSpan<T> x) 4533/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4535public static ref readonly TensorSpan<T> PopCount<T>(scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4546/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4547/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4548public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4557/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4558/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4560public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4569/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4571public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, T y) 4580/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4581/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4583public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4592/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4594public static Tensor<T> Pow<T>(T x, in ReadOnlyTensorSpan<T> y) 4603/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4604/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4606public static ref readonly TensorSpan<T> Pow<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4617/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4618public static T Product<T>(scoped in ReadOnlyTensorSpan<T> x) 4629/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4630public static Tensor<T> RadiansToDegrees<T>(in ReadOnlyTensorSpan<T> x) 4639/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4641public static ref readonly TensorSpan<T> RadiansToDegrees<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4652/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4653public static Tensor<T> Reciprocal<T>(in ReadOnlyTensorSpan<T> x) 4662/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4664public static ref readonly TensorSpan<T> Reciprocal<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4677public static Tensor<T> RootN<T>(in ReadOnlyTensorSpan<T> x, int n) 4689public static ref readonly TensorSpan<T> RootN<T>(scoped in ReadOnlyTensorSpan<T> x, int n, in TensorSpan<T> destination) 4703public static Tensor<T> RotateLeft<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4716public static ref readonly TensorSpan<T> RotateLeft<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 4730public static Tensor<T> RotateRight<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4743public static ref readonly TensorSpan<T> RotateRight<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 4754/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4755public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x) 4764/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4766public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4775/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4778public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode) 4787/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4791public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode, in TensorSpan<T> destination) 4800/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4802public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits) 4811/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4814public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, in TensorSpan<T> destination) 4823/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4825public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, MidpointRounding mode) 4834/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4837public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, MidpointRounding mode, in TensorSpan<T> destination) 4848/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4849public static Tensor<T> Sigmoid<T>(in ReadOnlyTensorSpan<T> x) 4858/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4860public static ref readonly TensorSpan<T> Sigmoid<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4871/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4873/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4874public static Tensor<T> Sin<T>(in ReadOnlyTensorSpan<T> x) 4883/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 4885/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4887public static ref readonly TensorSpan<T> Sin<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> Sinh<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> Sinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4921/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4922public static Tensor<T> SinPi<T>(in ReadOnlyTensorSpan<T> x) 4931/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4933public static ref readonly TensorSpan<T> SinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4944/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4945public static Tensor<T> SoftMax<T>(in ReadOnlyTensorSpan<T> x) 4957/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 4959public static ref readonly TensorSpan<T> SoftMax<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4973/// Takes the square root of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4975/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 4976public static Tensor<T> Sqrt<T>(in ReadOnlyTensorSpan<T> x) 4987/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 4989public static ref readonly TensorSpan<T> Sqrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5004public static T StdDev<T>(in ReadOnlyTensorSpan<T> x) 5021public static T Sum<T>(scoped in ReadOnlyTensorSpan<T> x) 5036internal static T SumOfSquares<T>(scoped in ReadOnlyTensorSpan<T> x) 5047/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5048public static Tensor<T> Tan<T>(in ReadOnlyTensorSpan<T> x) 5057/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5059public static ref readonly TensorSpan<T> Tan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5070/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5071public static Tensor<T> Tanh<T>(in ReadOnlyTensorSpan<T> x) 5080/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5082public static ref readonly TensorSpan<T> Tanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5093/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5094public static Tensor<T> TanPi<T>(in ReadOnlyTensorSpan<T> x) 5103/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5105public static ref readonly TensorSpan<T> TanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5116/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5117public static Tensor<T> TrailingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 5126/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5128public static ref readonly TensorSpan<T> TrailingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5139/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5140public static Tensor<T> Truncate<T>(in ReadOnlyTensorSpan<T> x) 5149/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5151public static ref readonly TensorSpan<T> Truncate<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination)
System\Numerics\Tensors\netcore\Tensor.op_Addition.cs (22)
14public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 27public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, T y) 42public static ref readonly TensorSpan<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 57public static ref readonly TensorSpan<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 66extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 74public static Tensor<TScalar> operator +(in ReadOnlyTensorSpan<TScalar> left, in ReadOnlyTensorSpan<TScalar> right) => Add(left, right); 80public static Tensor<TScalar> operator +(in ReadOnlyTensorSpan<TScalar> left, TScalar right) => Add(left, right); 86public static Tensor<TScalar> operator +(TScalar left, in ReadOnlyTensorSpan<TScalar> right) => Add(right, left); 93/// <inheritdoc cref="op_Addition{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 96/// <inheritdoc cref="op_Addition{T}(in ReadOnlyTensorSpan{T}, T)" /> 99/// <inheritdoc cref="op_Addition{T}(T, in ReadOnlyTensorSpan{T})" /> 102/// <inheritdoc cref="op_AdditionAssignment{T}(ref TensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 103public void operator +=(in ReadOnlyTensorSpan<TScalar> other) => Add(tensor, other, tensor); 114/// <inheritdoc cref="op_Addition{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 117/// <inheritdoc cref="op_Addition{T}(in ReadOnlyTensorSpan{T}, T)" /> 120/// <inheritdoc cref="op_Addition{T}(T, in ReadOnlyTensorSpan{T})" /> 125public void operator +=(in ReadOnlyTensorSpan<TScalar> other) => Add(tensor, other, tensor);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseAnd.cs (22)
14public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 27public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, T y) 42public static ref readonly TensorSpan<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 57public static ref readonly TensorSpan<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 66extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 74public static Tensor<TScalar> operator &(in ReadOnlyTensorSpan<TScalar> left, in ReadOnlyTensorSpan<TScalar> right) => BitwiseAnd(left, right); 80public static Tensor<TScalar> operator &(in ReadOnlyTensorSpan<TScalar> left, TScalar right) => BitwiseAnd(left, right); 86public static Tensor<TScalar> operator &(TScalar left, in ReadOnlyTensorSpan<TScalar> right) => BitwiseAnd(right, left); 93/// <inheritdoc cref="op_BitwiseAnd{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 96/// <inheritdoc cref="op_BitwiseAnd{T}(in ReadOnlyTensorSpan{T}, T)" /> 99/// <inheritdoc cref="op_BitwiseAnd{T}(T, in ReadOnlyTensorSpan{T})" /> 102/// <inheritdoc cref="op_BitwiseAndAssignment{T}(ref TensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 103public void operator &=(in ReadOnlyTensorSpan<TScalar> other) => BitwiseAnd(tensor, other, tensor); 114/// <inheritdoc cref="op_BitwiseAnd{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 117/// <inheritdoc cref="op_BitwiseAnd{T}(in ReadOnlyTensorSpan{T}, T)" /> 120/// <inheritdoc cref="op_BitwiseAnd{T}(T, in ReadOnlyTensorSpan{T})" /> 125public void operator &=(in ReadOnlyTensorSpan<TScalar> other) => BitwiseAnd(tensor, other, tensor);
System\Numerics\Tensors\netcore\Tensor.op_BitwiseOr.cs (22)
14public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 27public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, T y) 42public static ref readonly TensorSpan<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 57public static ref readonly TensorSpan<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 66extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 74public static Tensor<TScalar> operator |(in ReadOnlyTensorSpan<TScalar> left, in ReadOnlyTensorSpan<TScalar> right) => BitwiseOr(left, right); 80public static Tensor<TScalar> operator |(in ReadOnlyTensorSpan<TScalar> left, TScalar right) => BitwiseOr(left, right); 86public static Tensor<TScalar> operator |(TScalar left, in ReadOnlyTensorSpan<TScalar> right) => BitwiseOr(right, left); 93/// <inheritdoc cref="op_BitwiseOr{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 96/// <inheritdoc cref="op_BitwiseOr{T}(in ReadOnlyTensorSpan{T}, T)" /> 99/// <inheritdoc cref="op_BitwiseOr{T}(T, in ReadOnlyTensorSpan{T})" /> 102/// <inheritdoc cref="op_BitwiseOrAssignment{T}(ref TensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 103public void operator |=(in ReadOnlyTensorSpan<TScalar> other) => BitwiseOr(tensor, other, tensor); 114/// <inheritdoc cref="op_BitwiseOr{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 117/// <inheritdoc cref="op_BitwiseOr{T}(in ReadOnlyTensorSpan{T}, T)" /> 120/// <inheritdoc cref="op_BitwiseOr{T}(T, in ReadOnlyTensorSpan{T})" /> 125public void operator |=(in ReadOnlyTensorSpan<TScalar> other) => BitwiseOr(tensor, other, tensor);
System\Numerics\Tensors\netcore\Tensor.op_Decrement.cs (2)
12public static Tensor<T> Decrement<T>(in ReadOnlyTensorSpan<T> x) 26public static ref readonly TensorSpan<T> Decrement<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination)
System\Numerics\Tensors\netcore\Tensor.op_Division.cs (24)
14public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 27public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, T y) 40public static Tensor<T> Divide<T>(T x, in ReadOnlyTensorSpan<T> y) 55public static ref readonly TensorSpan<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 70public static ref readonly TensorSpan<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 84public static ref readonly TensorSpan<T> Divide<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 93extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 101public static Tensor<TScalar> operator /(in ReadOnlyTensorSpan<TScalar> left, in ReadOnlyTensorSpan<TScalar> right) => Divide(left, right); 107public static Tensor<TScalar> operator /(in ReadOnlyTensorSpan<TScalar> left, TScalar right) => Divide(left, right); 113public static Tensor<TScalar> operator /(TScalar left, in ReadOnlyTensorSpan<TScalar> right) => Divide(left, right); 120/// <inheritdoc cref="op_Division{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 123/// <inheritdoc cref="op_Division{T}(in ReadOnlyTensorSpan{T}, T)" /> 126/// <inheritdoc cref="op_Division{T}(T, in ReadOnlyTensorSpan{T})" /> 129/// <inheritdoc cref="op_DivisionAssignment{T}(ref TensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 130public void operator /=(in ReadOnlyTensorSpan<TScalar> other) => Divide(tensor, other, tensor); 141/// <inheritdoc cref="op_Division{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 144/// <inheritdoc cref="op_Division{T}(in ReadOnlyTensorSpan{T}, T)" /> 147/// <inheritdoc cref="op_Division{T}(T, in ReadOnlyTensorSpan{T})" /> 152public void operator /=(in ReadOnlyTensorSpan<TScalar> other) => Divide(tensor, other, tensor);
System\Numerics\Tensors\netcore\Tensor.op_ExclusiveOr.cs (22)
14public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 27public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, T y) 42public static ref readonly TensorSpan<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 57public static ref readonly TensorSpan<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 66extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 74public static Tensor<TScalar> operator ^(in ReadOnlyTensorSpan<TScalar> left, in ReadOnlyTensorSpan<TScalar> right) => Xor(left, right); 80public static Tensor<TScalar> operator ^(in ReadOnlyTensorSpan<TScalar> left, TScalar right) => Xor(left, right); 86public static Tensor<TScalar> operator ^(TScalar left, in ReadOnlyTensorSpan<TScalar> right) => Xor(right, left); 93/// <inheritdoc cref="op_ExclusiveOr{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 96/// <inheritdoc cref="op_ExclusiveOr{T}(in ReadOnlyTensorSpan{T}, T)" /> 99/// <inheritdoc cref="op_ExclusiveOr{T}(T, in ReadOnlyTensorSpan{T})" /> 102/// <inheritdoc cref="op_ExclusiveOrAssignment{T}(ref TensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 103public void operator ^=(in ReadOnlyTensorSpan<TScalar> other) => Xor(tensor, other, tensor); 114/// <inheritdoc cref="op_ExclusiveOr{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 117/// <inheritdoc cref="op_ExclusiveOr{T}(in ReadOnlyTensorSpan{T}, T)" /> 120/// <inheritdoc cref="op_ExclusiveOr{T}(T, in ReadOnlyTensorSpan{T})" /> 125public void operator ^=(in ReadOnlyTensorSpan<TScalar> other) => Xor(tensor, other, tensor);
System\Numerics\Tensors\netcore\Tensor.op_Increment.cs (2)
12public static Tensor<T> Increment<T>(in ReadOnlyTensorSpan<T> x) 26public static ref readonly TensorSpan<T> Increment<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination)
System\Numerics\Tensors\netcore\Tensor.op_LeftShift.cs (6)
13public static Tensor<T> ShiftLeft<T>(in ReadOnlyTensorSpan<T> x, int shiftAmount) 28public static ref readonly TensorSpan<T> ShiftLeft<T>(scoped in ReadOnlyTensorSpan<T> x, int shiftAmount, in TensorSpan<T> destination) 37extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 44public static Tensor<TScalar> operator <<(in ReadOnlyTensorSpan<TScalar> tensor, int shiftAmount) => ShiftLeft(tensor, shiftAmount); 51/// <inheritdoc cref="op_LeftShift{T}(in ReadOnlyTensorSpan{T}, int)" /> 68/// <inheritdoc cref="op_LeftShift{T}(in ReadOnlyTensorSpan{T}, int)" />
System\Numerics\Tensors\netcore\Tensor.op_Multiply.cs (22)
14public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 27public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, T y) 42public static ref readonly TensorSpan<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 57public static ref readonly TensorSpan<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 66extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 74public static Tensor<TScalar> operator *(in ReadOnlyTensorSpan<TScalar> left, in ReadOnlyTensorSpan<TScalar> right) => Multiply(left, right); 80public static Tensor<TScalar> operator *(in ReadOnlyTensorSpan<TScalar> left, TScalar right) => Multiply(left, right); 86public static Tensor<TScalar> operator *(TScalar left, in ReadOnlyTensorSpan<TScalar> right) => Multiply(right, left); 93/// <inheritdoc cref="op_Multiply{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 96/// <inheritdoc cref="op_Multiply{T}(in ReadOnlyTensorSpan{T}, T)" /> 99/// <inheritdoc cref="op_Multiply{T}(T, in ReadOnlyTensorSpan{T})" /> 102/// <inheritdoc cref="op_MultiplicationAssignment{T}(ref TensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 103public void operator *=(in ReadOnlyTensorSpan<TScalar> other) => Multiply(tensor, other, tensor); 114/// <inheritdoc cref="op_Multiply{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 117/// <inheritdoc cref="op_Multiply{T}(in ReadOnlyTensorSpan{T}, T)" /> 120/// <inheritdoc cref="op_Multiply{T}(T, in ReadOnlyTensorSpan{T})" /> 125public void operator *=(in ReadOnlyTensorSpan<TScalar> other) => Multiply(tensor, other, tensor);
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_RightShift.cs (6)
13public static Tensor<T> ShiftRightArithmetic<T>(in ReadOnlyTensorSpan<T> x, int shiftAmount) 28public static ref readonly TensorSpan<T> ShiftRightArithmetic<T>(scoped in ReadOnlyTensorSpan<T> x, int shiftAmount, in TensorSpan<T> destination) 37extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 44public static Tensor<TScalar> operator >>(in ReadOnlyTensorSpan<TScalar> tensor, int shiftAmount) => ShiftRightArithmetic(tensor, shiftAmount); 51/// <inheritdoc cref="op_RightShift{T}(in ReadOnlyTensorSpan{T}, int)" /> 68/// <inheritdoc cref="op_RightShift{T}(in ReadOnlyTensorSpan{T}, int)" />
System\Numerics\Tensors\netcore\Tensor.op_Subtraction.cs (24)
14public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 27public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, T y) 40public static Tensor<T> Subtract<T>(T x, in ReadOnlyTensorSpan<T> y) 55public static ref readonly TensorSpan<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 70public static ref readonly TensorSpan<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 85public static ref readonly TensorSpan<T> Subtract<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 94extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 102public static Tensor<TScalar> operator -(in ReadOnlyTensorSpan<TScalar> left, in ReadOnlyTensorSpan<TScalar> right) => Subtract(left, right); 108public static Tensor<TScalar> operator -(in ReadOnlyTensorSpan<TScalar> left, TScalar right) => Subtract(left, right); 114public static Tensor<TScalar> operator -(TScalar left, in ReadOnlyTensorSpan<TScalar> right) => Subtract(left, right); 121/// <inheritdoc cref="op_Subtraction{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 124/// <inheritdoc cref="op_Subtraction{T}(in ReadOnlyTensorSpan{T}, T)" /> 127/// <inheritdoc cref="op_Subtraction{T}(T, in ReadOnlyTensorSpan{T})" /> 130/// <inheritdoc cref="op_SubtractionAssignment{T}(ref TensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 131public void operator -=(in ReadOnlyTensorSpan<TScalar> other) => Subtract(tensor, other, tensor); 142/// <inheritdoc cref="op_Subtraction{T}(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 145/// <inheritdoc cref="op_Subtraction{T}(in ReadOnlyTensorSpan{T}, T)" /> 148/// <inheritdoc cref="op_Subtraction{T}(T, in ReadOnlyTensorSpan{T})" /> 153public void operator -=(in ReadOnlyTensorSpan<TScalar> other) => Subtract(tensor, other, tensor);
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.op_UnsignedRightShift.cs (6)
13public static Tensor<T> ShiftRightLogical<T>(in ReadOnlyTensorSpan<T> x, int shiftAmount) 28public static ref readonly TensorSpan<T> ShiftRightLogical<T>(scoped in ReadOnlyTensorSpan<T> x, int shiftAmount, in TensorSpan<T> destination) 37extension<TScalar>(ReadOnlyTensorSpan<TScalar>) 44public static Tensor<TScalar> operator >>>(in ReadOnlyTensorSpan<TScalar> tensor, int shiftAmount) => ShiftRightLogical(tensor, shiftAmount); 51/// <inheritdoc cref="op_UnsignedRightShift{T}(in ReadOnlyTensorSpan{T}, int)" /> 68/// <inheritdoc cref="op_UnsignedRightShift{T}(in ReadOnlyTensorSpan{T}, int)" />
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)
32/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 44/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 49/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 61/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 73/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 81/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 85/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 93/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 105/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 117/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 125/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 130/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 195/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator ==(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 200/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator !=(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 211public static implicit operator ReadOnlyTensorSpan<T>(scoped in TensorSpan<T> tensor) => 215public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape); 218public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 221public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 224public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 238/// <inheritdoc cref="ReadOnlyTensorSpan{T}.Equals(object?)" /> 262/// <inheritdoc cref="ReadOnlyTensorSpan{T}.GetHashCode" /> 328/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString()" /> 331/// <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)