44 instantiations of ReadOnlyTensorSpan
System.Numerics.Tensors (44)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (2)
24tensor = new ReadOnlyTensorSpan<T>(in tensor._reference, TensorShape.Normalize(tensor._shape)); 60return new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (5)
319public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 329return new ReadOnlyTensorSpan<T>( 412return new ReadOnlyTensorSpan<T>( 422return new ReadOnlyTensorSpan<T>( 432return new ReadOnlyTensorSpan<T>(
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
140public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape);
System\Numerics\Tensors\netcore\Tensor.cs (20)
18/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 20=> new ReadOnlyTensorSpan<T>(array); 22/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 24=> new ReadOnlyTensorSpan<T>(array, lengths); 26/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 28=> new ReadOnlyTensorSpan<T>(array, lengths, strides); 30/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 32=> new ReadOnlyTensorSpan<T>(array, start, lengths, strides); 325source = new ReadOnlyTensorSpan<T>(in source._reference, TensorShape.WithRank(source._shape, targetRank)); 464source = new ReadOnlyTensorSpan<T>(in source._reference, TensorShape.WithRank(source._shape, rank)); 479/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 484/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 489/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 494/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 1781ReadOnlyTensorSpan<T> result = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 2302alignedOther = new ReadOnlyTensorSpan<T>(in other._reference, TensorShape.WithRank(other._shape, rank)); 2680ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2883ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref tensor._reference, tmpShape); 2890tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, linearOffset), tmpShape); 3177ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned);
System\Numerics\Tensors\netcore\TensorOperation.cs (1)
422return new ReadOnlyTensorSpan<T>(in source._reference, in shape);
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);
1076 references to ReadOnlyTensorSpan
System.Numerics.Tensors (1076)
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) 50public ReadOnlyTensorSpan<T> this[nint index] 68public ref struct Enumerator : IEnumerator<ReadOnlyTensorSpan<T>> 80public 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; 269public ReadOnlyTensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges] 305public static bool operator ==(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) 314public static bool operator !=(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) => !(left == right); 319public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 326public static ReadOnlyTensorSpan<T> CastUp<TDerived>(in ReadOnlyTensorSpan<TDerived> items) 409public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes) 419public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes) 429public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges) 520ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan() => this; 522ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes); 524ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes); 526ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges); 528ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.ToDenseTensor() 530ReadOnlyTensorSpan<T> result = this; 545private readonly ReadOnlyTensorSpan<T> _span; 550internal Enumerator(ReadOnlyTensorSpan<T> span)
System\Numerics\Tensors\netcore\Tensor_1.cs (8)
136/// <inheritdoc cref="TensorSpan{T}.implicit operator ReadOnlyTensorSpan{T}(in TensorSpan{T})" /> 137public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> tensor) => tensor.AsReadOnlyTensorSpan(); 140public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape); 143public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 146public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 149public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 297/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString()" /> 300/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString(ReadOnlySpan{nint})" />
System\Numerics\Tensors\netcore\Tensor.cs (717)
18/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 19public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array) 22/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 23public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths) 26/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 27public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 30/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 31public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 57public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped in ReadOnlyTensorSpan<T> lengthsSource) 70public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped ReadOnlySpan<nint> lengths) 105public static void BroadcastTo<T>(in this ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination) 273ReadOnlyTensorSpan<T> source = tensors[i].AsReadOnlyTensorSpan(); 322ReadOnlyTensorSpan<T> source = tensor.AsReadOnlyTensorSpan(); 392ReadOnlyTensorSpan<T> source = tensor.AsReadOnlyTensorSpan(); 417private static void CopyFlattenedToDestination<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, nint offset) 425ReadOnlyTensorSpan<T>.Enumerator input = source.GetEnumerator(); 461ReadOnlyTensorSpan<T> source = tensors[i].AsReadOnlyTensorSpan(); 466ReadOnlyTensorSpan<T> slice = source.Slice(ranges); 479/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 484/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 489/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 494/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 649/// 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 652/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 653/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 655public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 664/// 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 667/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 668/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 671public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 680/// 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 683/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 686public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, T y) 695/// 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 698/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 702public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 713/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 717/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 718/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 720public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 728/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 732/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 733/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 735public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, T y) 741/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 745/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 746/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 748public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 760/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 764/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 767public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, T y) 778public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, T value) 792public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, scoped in ReadOnlyTensorSpan<T> values) 802/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 807/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 808/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 811public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 820/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 825/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 826/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 830public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 839/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 843/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 847public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, T y) 856/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 860/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 865public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 878/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 882public static Tensor<bool> GreaterThan<T>(T x, in ReadOnlyTensorSpan<T> y) 890/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 895public static ref readonly TensorSpan<bool> GreaterThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 901/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 905/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 906/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 908public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 916/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 920/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 921/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 923public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 927/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 931/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 932/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 934public static bool GreaterThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 940/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 944/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 945/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 947public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 959/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 963/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 966public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 970/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 974/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 977public static bool GreaterThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 983/// 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"/>. 988/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 989/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 992public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1001/// 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"/>. 1006/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1007/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1011public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1020/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 1024/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1028public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 1037/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 1041/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1046public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1059/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1063public static Tensor<bool> GreaterThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 1071/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1076public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1082/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 1086/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1087/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1089public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1097/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 1101/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1102/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1104public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1108/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 1112/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1113/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1115public static bool GreaterThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1121/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 1125/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1126/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1128public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1140/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 1144/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1147public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1151/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 1155/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1158public static bool GreaterThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1164/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1169/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1170/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1173public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1182/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1187/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1188/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1192public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1209public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, T y) 1227public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1244public static Tensor<bool> LessThan<T>(T x, in ReadOnlyTensorSpan<T> y) 1257public static ref readonly TensorSpan<bool> LessThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1263/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1267/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1268/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1270public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1278/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1282/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1285public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1289/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1296public static bool LessThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1302/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1306/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1307/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1309public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1321/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1325/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1328public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1332/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1339public static bool LessThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1345/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1350/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1351/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1354public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1363/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1368/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1369/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1373public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1390public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 1408public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1425public static Tensor<bool> LessThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 1438public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1444/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1448/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1449/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1451public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1459/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1463/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1466public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1470/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1477public static bool LessThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1483/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1487/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1488/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1490public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1502/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1506/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1509public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1513/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1520public static bool LessThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1763public static ReadOnlyTensorSpan<T> Reshape<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths) 1781ReadOnlyTensorSpan<T> result = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 1818ReadOnlyTensorSpan<T> source = tensor.AsReadOnlyTensorSpan(); 1823ReadOnlyTensorSpan<T>.Enumerator enumerator = source.GetEnumerator(); 1862/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 1864public static void ResizeTo<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1898ReadOnlyTensorSpan<T>.Enumerator srcEnumerator = tensor.GetEnumerator(); 1918private static void ResizeToLargeDenseDestination<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination) 1994public static Tensor<T> Reverse<T>(in ReadOnlyTensorSpan<T> tensor) 2008public static Tensor<T> ReverseDimension<T>(in ReadOnlyTensorSpan<T> tensor, int dimension) 2021public static ref readonly TensorSpan<T> Reverse<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 2033public static ref readonly TensorSpan<T> ReverseDimension<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination, int dimension) 2170private static void ReverseDimensionCore<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination, int dimension) 2262public static bool SequenceEqual<T>(this scoped in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 2265return ((ReadOnlyTensorSpan<T>)tensor).SequenceEqual(other); 2272public static bool SequenceEqual<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 2298ReadOnlyTensorSpan<T> alignedOther = other; 2316ReadOnlyTensorSpan<T> tensorSlice = tensorSlices[i]; 2317ReadOnlyTensorSpan<T> otherSlice = otherSlices[i]; 2327ReadOnlyTensorSpan<T>.Enumerator enumerator1 = tensor.GetEnumerator(); 2328ReadOnlyTensorSpan<T>.Enumerator enumerator2 = other.GetEnumerator(); 2345private static bool SequenceEqualLargeDense<T>(in ReadOnlyTensorSpan<T> tensor, in ReadOnlyTensorSpan<T> other) 2368public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 2380public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges) 2404public static Tensor<T>[] Split<T>(scoped in ReadOnlyTensorSpan<T> tensor, int splitCount, nint dimension) 2612/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove all dimensions of length 1.</param> 2613public static ReadOnlyTensorSpan<T> Squeeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor) 2622/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove dimension of length 1.</param> 2624public static ReadOnlyTensorSpan<T> SqueezeDimension<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2680ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2817internal static string ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, string typeName) 2858private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0) 2883ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref tensor._reference, tmpShape); 2915private static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, nint length, StringBuilder sb, int indentLevel) 3028/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3030public static bool TryBroadcastTo<T>(in this ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 3141/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to add a dimension of length 1.</param> 3143public static ReadOnlyTensorSpan<T> Unsqueeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 3177ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned); 3189/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the abs of.</param> 3190public static Tensor<T> Abs<T>(in ReadOnlyTensorSpan<T> x) 3199/// Takes the absolute value of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3203public static ref readonly TensorSpan<T> Abs<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3216/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3217public static Tensor<T> Acos<T>(in ReadOnlyTensorSpan<T> x) 3230public static ref readonly TensorSpan<T> Acos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3241/// 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. 3243/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3244public static Tensor<T> Acosh<T>(in ReadOnlyTensorSpan<T> x) 3257public static ref readonly TensorSpan<T> Acosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3270/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3271public static Tensor<T> AcosPi<T>(in ReadOnlyTensorSpan<T> x) 3282/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3284public static ref readonly TensorSpan<T> AcosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3295/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3297/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3298public static Tensor<T> Asin<T>(in ReadOnlyTensorSpan<T> x) 3307/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3309/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3311public static ref readonly TensorSpan<T> Asin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3322/// 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. 3324/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3325public static Tensor<T> Asinh<T>(in ReadOnlyTensorSpan<T> x) 3334/// 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. 3336/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3338public static ref readonly TensorSpan<T> Asinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3349/// 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. 3351/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3352public static Tensor<T> AsinPi<T>(in ReadOnlyTensorSpan<T> x) 3361/// 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. 3363/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 3365public static ref readonly TensorSpan<T> AsinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3376/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3378/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3379public static Tensor<T> Atan<T>(in ReadOnlyTensorSpan<T> x) 3388/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3390/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3392public static ref readonly TensorSpan<T> Atan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3403/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3405/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3406/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3407public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3416/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3418/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3419/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3421public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3430/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3432/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3433/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3434public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, T y) 3443/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3445/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3446/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3448public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3457/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3459/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3460/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3461public static Tensor<T> Atan2<T>(T x, in ReadOnlyTensorSpan<T> y) 3470/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3472/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3473/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3475public static ref readonly TensorSpan<T> Atan2<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3486/// 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. 3488/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3489/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3490public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3499/// 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. 3501/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3502/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3504public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3513/// 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. 3515/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3516/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3517public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, T y) 3526/// 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. 3528/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3529/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3531public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3540/// 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. 3542/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3543/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3544public static Tensor<T> Atan2Pi<T>(T x, in ReadOnlyTensorSpan<T> y) 3553/// 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. 3555/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3556/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3558public static ref readonly TensorSpan<T> Atan2Pi<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3569/// 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. 3571/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3572public static Tensor<T> Atanh<T>(in ReadOnlyTensorSpan<T> x) 3581/// 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. 3583/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3585public static ref readonly TensorSpan<T> Atanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3596/// 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. 3598/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 3599public static Tensor<T> AtanPi<T>(in ReadOnlyTensorSpan<T> x) 3608/// 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. 3610/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 3612public static ref readonly TensorSpan<T> AtanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3627public static T Average<T>(scoped in ReadOnlyTensorSpan<T> x) 3640/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3642/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3643public static Tensor<T> Cbrt<T>(in ReadOnlyTensorSpan<T> x) 3652/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3654/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3656public static ref readonly TensorSpan<T> Cbrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3667/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3669/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3670public static Tensor<T> Ceiling<T>(in ReadOnlyTensorSpan<T> x) 3679/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3681/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3683public static ref readonly TensorSpan<T> Ceiling<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3694/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3697/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3698public static Tensor<TTo> ConvertChecked<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3713public static ref readonly TensorSpan<TTo> ConvertChecked<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3725/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3728/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3729public static Tensor<TTo> ConvertSaturating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3744public static ref readonly TensorSpan<TTo> ConvertSaturating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3756/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3759/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3760public static Tensor<TTo> ConvertTruncating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3775public static ref readonly TensorSpan<TTo> ConvertTruncating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3789/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3791public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, T sign) 3802/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3803/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3804public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> sign) 3815/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3818public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, T sign, in TensorSpan<T> destination) 3829/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3830/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3832public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> sign, in TensorSpan<T> destination) 3843/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3845/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3846public static Tensor<T> Cos<T>(in ReadOnlyTensorSpan<T> x) 3855/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3857/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3859public static ref readonly TensorSpan<T> Cos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3870/// Takes the hyperbolic cosine 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 cosine of.</param> 3873public static Tensor<T> Cosh<T>(in ReadOnlyTensorSpan<T> x) 3882/// Takes the hyperbolic cosine 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 cosine of.</param> 3886public static ref readonly TensorSpan<T> Cosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3899/// <param name="x">The first <see cref="ReadOnlyTensorSpan{T}"/></param> 3900/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/></param> 3901public static T CosineSimilarity<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3913/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3926public static Tensor<T> CosPi<T>(in ReadOnlyTensorSpan<T> x) 3935/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3949public static ref readonly TensorSpan<T> CosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3962/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3963public static Tensor<T> DegreesToRadians<T>(in ReadOnlyTensorSpan<T> x) 3974/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3976public static ref readonly TensorSpan<T> DegreesToRadians<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3989/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3990/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3991public static T Distance<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y) 4005/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4006/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4007public static T Dot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4021/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4022public static Tensor<T> Exp<T>(in ReadOnlyTensorSpan<T> x) 4033/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4035public static ref readonly TensorSpan<T> Exp<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4048/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4049public static Tensor<T> Exp10<T>(in ReadOnlyTensorSpan<T> x) 4060/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4062public static ref readonly TensorSpan<T> Exp10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4073/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4074public static Tensor<T> Exp10M1<T>(in ReadOnlyTensorSpan<T> x) 4083/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4085public static ref readonly TensorSpan<T> Exp10M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4096/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4097public static Tensor<T> Exp2<T>(in ReadOnlyTensorSpan<T> x) 4106/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4108public static ref readonly TensorSpan<T> Exp2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4119/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4120public static Tensor<T> Exp2M1<T>(in ReadOnlyTensorSpan<T> x) 4129/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4131public static ref readonly TensorSpan<T> Exp2M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4142/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4143public static Tensor<T> ExpM1<T>(in ReadOnlyTensorSpan<T> x) 4152/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4154public static ref readonly TensorSpan<T> ExpM1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4165/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4166public static Tensor<T> Floor<T>(in ReadOnlyTensorSpan<T> x) 4175/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4177public static ref readonly TensorSpan<T> Floor<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4191/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4192/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4193public static Tensor<T> Hypot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4205/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4206/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4208public static ref readonly TensorSpan<T> Hypot<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4220/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4221/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4222public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4232/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4233/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4235public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4244/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4245/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4246public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, T y) 4255/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4256/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4258public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4267/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4268/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4269public static Tensor<T> Ieee754Remainder<T>(T x, in ReadOnlyTensorSpan<T> y) 4278/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4279/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4281public static ref readonly TensorSpan<T> Ieee754Remainder<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4292/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4293public static Tensor<int> ILogB<T>(in ReadOnlyTensorSpan<T> x) 4302/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4304public static ref readonly TensorSpan<int> ILogB<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<int> destination) 4315/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4316public static nint IndexOfMax<T>(scoped in ReadOnlyTensorSpan<T> x) 4326/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4327public static nint IndexOfMaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4336/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4337public static nint IndexOfMin<T>(scoped in ReadOnlyTensorSpan<T> x) 4348/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4349public static nint IndexOfMinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4360/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4361public static Tensor<T> LeadingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 4372/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4374public static ref readonly TensorSpan<T> LeadingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4385/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 4387/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4388public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x) 4397/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 4399/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4401public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4412public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4424public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4435public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, T y) 4447public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4458/// 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. 4460/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4461public static Tensor<T> Log10<T>(in ReadOnlyTensorSpan<T> x) 4470/// 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. 4472/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4474public static ref readonly TensorSpan<T> Log10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4485/// 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. 4487/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4488public static Tensor<T> Log10P1<T>(in ReadOnlyTensorSpan<T> x) 4497/// 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. 4499/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4501public static ref readonly TensorSpan<T> Log10P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4512/// 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. 4514/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4515public static Tensor<T> Log2<T>(in ReadOnlyTensorSpan<T> x) 4524/// 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. 4526/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4528public static ref readonly TensorSpan<T> Log2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4539/// 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. 4541/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4542public static Tensor<T> Log2P1<T>(in ReadOnlyTensorSpan<T> x) 4551/// 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. 4553/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4555public static ref readonly TensorSpan<T> Log2P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4566/// 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. 4568/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4569public static Tensor<T> LogP1<T>(in ReadOnlyTensorSpan<T> x) 4578/// 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. 4580/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4582public static ref readonly TensorSpan<T> LogP1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4593/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4594public static T Max<T>(scoped in ReadOnlyTensorSpan<T> x) 4610public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4622public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4633public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, T y) 4645public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4656/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4657public static T MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4673public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4685public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4696public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4708public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4719/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4720public static T MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4736public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4748public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4759public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4771public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4782/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4783public static T MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4799public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4811public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4822public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4834public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4845/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4846public static T Min<T>(scoped in ReadOnlyTensorSpan<T> x) 4862public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4874public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4885public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, T y) 4897public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4908/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4909public static T MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4925public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4937public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4948public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4960public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4971/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4972public static T MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4988public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5000public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5011public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 5023public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 5034/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5035public static T MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 5051public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5063public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5074public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 5086public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 5097/// Takes the norm of the <see cref="ReadOnlyTensorSpan{T}"/> and returns the result. 5099/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the norm of.</param> 5100public static T Norm<T>(scoped in ReadOnlyTensorSpan<T> x) 5111/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 5112public static Tensor<T> PopCount<T>(in ReadOnlyTensorSpan<T> x) 5121/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/></param> 5123public static ref readonly TensorSpan<T> PopCount<T>(scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5134/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5135/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 5136public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5145/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5146/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 5148public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5157/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5159public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, T y) 5168/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5169/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 5171public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 5180/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5182public static Tensor<T> Pow<T>(T x, in ReadOnlyTensorSpan<T> y) 5191/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5192/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 5194public static ref readonly TensorSpan<T> Pow<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5205/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5206public static T Product<T>(scoped in ReadOnlyTensorSpan<T> x) 5217/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5218public static Tensor<T> RadiansToDegrees<T>(in ReadOnlyTensorSpan<T> x) 5227/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5229public static ref readonly TensorSpan<T> RadiansToDegrees<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5240/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5241public static Tensor<T> Reciprocal<T>(in ReadOnlyTensorSpan<T> x) 5250/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5252public static ref readonly TensorSpan<T> Reciprocal<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5265public static Tensor<T> RootN<T>(in ReadOnlyTensorSpan<T> x, int n) 5277public static ref readonly TensorSpan<T> RootN<T>(scoped in ReadOnlyTensorSpan<T> x, int n, in TensorSpan<T> destination) 5291public static Tensor<T> RotateLeft<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 5304public static ref readonly TensorSpan<T> RotateLeft<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 5318public static Tensor<T> RotateRight<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 5331public static ref readonly TensorSpan<T> RotateRight<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 5342/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5343public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x) 5352/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5354public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5363/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5366public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode) 5375/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5379public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode, in TensorSpan<T> destination) 5388/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5390public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits) 5399/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5402public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, in TensorSpan<T> destination) 5411/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5413public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, MidpointRounding mode) 5422/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5425public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, MidpointRounding mode, in TensorSpan<T> destination) 5436/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5437public static Tensor<T> Sigmoid<T>(in ReadOnlyTensorSpan<T> x) 5446/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5448public static ref readonly TensorSpan<T> Sigmoid<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5459/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5461/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5462public static Tensor<T> Sin<T>(in ReadOnlyTensorSpan<T> x) 5471/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 5473/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5475public static ref readonly TensorSpan<T> Sin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5486/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5487public static Tensor<T> Sinh<T>(in ReadOnlyTensorSpan<T> x) 5496/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5498public static ref readonly TensorSpan<T> Sinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5509/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5510public static Tensor<T> SinPi<T>(in ReadOnlyTensorSpan<T> x) 5519/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5521public static ref readonly TensorSpan<T> SinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5532/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5533public static Tensor<T> SoftMax<T>(in ReadOnlyTensorSpan<T> x) 5545/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5547public static ref readonly TensorSpan<T> SoftMax<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5560/// Takes the square root of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5562/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 5563public static Tensor<T> Sqrt<T>(in ReadOnlyTensorSpan<T> x) 5574/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 5576public static ref readonly TensorSpan<T> Sqrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5591public static T StdDev<T>(in ReadOnlyTensorSpan<T> x) 5608public static T Sum<T>(scoped in ReadOnlyTensorSpan<T> x) 5623internal static T SumOfSquares<T>(scoped in ReadOnlyTensorSpan<T> x) 5634/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5635public static Tensor<T> Tan<T>(in ReadOnlyTensorSpan<T> x) 5644/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5646public static ref readonly TensorSpan<T> Tan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5657/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5658public static Tensor<T> Tanh<T>(in ReadOnlyTensorSpan<T> x) 5667/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5669public static ref readonly TensorSpan<T> Tanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5680/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5681public static Tensor<T> TanPi<T>(in ReadOnlyTensorSpan<T> x) 5690/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5692public static ref readonly TensorSpan<T> TanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5703/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5704public static Tensor<T> TrailingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 5713/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5715public static ref readonly TensorSpan<T> TrailingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5726/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5727public static Tensor<T> Truncate<T>(in ReadOnlyTensorSpan<T> x) 5736/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5738public 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 (88)
21in ReadOnlyTensorSpan<TSource> source, in TensorSpan<TDestination> destination, bool isCopy = false) 53private static ReadOnlySpan<T> AsDenseSpan<T>(in ReadOnlyTensorSpan<T> source) 56internal static ReadOnlySpan<T> AsDenseSpan<T>(in ReadOnlyTensorSpan<T> source, nint offset, int length) 77internal static void CopyDense<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, nint copyLength, nint destinationOffset = 0) 100internal static bool TryCopyDenseSlices<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, nint copyLength, nint destinationOffset = 0) 144private static void CopySourceDenseSlices<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, nint copyLength, 150ReadOnlyTensorSpan<T> slice = slices[i]; 158internal static bool TryReverseDenseSlices<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination) 162ReadOnlyTensorSpan<T> input = source.Lengths.SequenceEqual(destination.Lengths) ? source : BroadcastSource(source, destination._shape); 186private static void ReverseEnumeratedSource<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, int dimension) 188ReadOnlyTensorSpan<T>.Enumerator enumerator = source.GetEnumerator(); 209private static void ReverseEnumeratedDestination<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, int dimension) 232private static void CopyBetweenDenseSlices<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, nint copyLength, 271private static void ReverseBetweenDenseSlices<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, 314private static void CopyEnumeratedSource<T>(in ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination, nint copyLength, 317ReadOnlyTensorSpan<T>.Enumerator enumerator = source.GetEnumerator(); 338private static void InvokeDenseChunks<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> source, in TensorSpan<TResult> destination) 349private static void InvokeDenseChunks<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, 350in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 361private static void InvokeDenseChunks<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, 373private static void InvokeDenseChunks<TOperation, TArg, TResult>(TArg x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 401private static ReadOnlyTensorSpan<T> BroadcastSource<T>(in ReadOnlyTensorSpan<T> source, in TensorShape destination) 468internal static nint IndexOfMinMax<T, TOperator>(in ReadOnlyTensorSpan<T> x, int maximumChunkLength = int.MaxValue) 482private static nint IndexOfMinMaxFallback<T, TOperator>(in ReadOnlyTensorSpan<T> x, int maximumChunkLength) 522ReadOnlyTensorSpan<T> slice = slices[i]; 647public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y) 663private static bool TestDense<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, nint start = 0) 679private static bool InvokeStridedPredicate<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y) 696ReadOnlyTensorSpan<TArg> optimizedX = x.Lengths.SequenceEqual(destinationShape.Lengths) ? x : BroadcastSource(x, destinationShape); 697ReadOnlyTensorSpan<TArg> optimizedY = y.Lengths.SequenceEqual(destinationShape.Lengths) ? y : BroadcastSource(y, destinationShape); 773public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, TArg y) 789private static bool TestDense<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, TArg y, nint start = 0) 805private static bool InvokeStridedPredicate<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, TArg y) 899public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 928ReadOnlyTensorSpan<TArg> optimizedSource = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 960ReadOnlyTensorSpan<TArg> sourceSlice = sourceSlices[i]; 968ReadOnlyTensorSpan<TArg> source = optimizedSource; 987public static void ReverseInvoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 993ReadOnlyTensorSpan<TArg> source = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 1020public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in Span<TResult> destination) 1050ReadOnlyTensorSpan<TArg> slice = slices[i]; 1076public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, ref TResult destination) 1093private static void InvokeStridedReduction<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, ref TResult destination) 1122private static void ReduceDense<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, ref TResult result) 1133private static void ReduceDense<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, ref TResult result) 1142private static void ReduceDense<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, ref TResult result) 1151public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 1158ReadOnlyTensorSpan<TArg1> optimizedX = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 1159ReadOnlyTensorSpan<TArg2> optimizedY = y.Lengths.SequenceEqual(destinationLengths) ? y : BroadcastSource(y, destination._shape); 1183ReadOnlyTensorSpan<TArg1> xSlice = xSlices[i]; 1184ReadOnlyTensorSpan<TArg2> ySlice = ySlices[i]; 1192ReadOnlyTensorSpan<TArg1> left = optimizedX; 1193ReadOnlyTensorSpan<TArg2> right = optimizedY; 1216public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 1220public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, ref TResult result) 1237private static void InvokeStridedReduction<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, ref TResult result) 1241ReadOnlyTensorSpan<TArg> optimizedX = x.Lengths.SequenceEqual(destinationShape.Lengths) ? x : BroadcastSource(x, destinationShape); 1242ReadOnlyTensorSpan<TArg> optimizedY = y.Lengths.SequenceEqual(destinationShape.Lengths) ? y : BroadcastSource(y, destinationShape); 1281public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, in TensorSpan<TResult> destination) 1285public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, int y, in TensorSpan<TResult> destination) 1288public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, in TensorSpan<TResult> destination) 1294ReadOnlyTensorSpan<TArg1> optimizedSource = x.Lengths.SequenceEqual(destinationLengths) ? x : BroadcastSource(x, destination._shape); 1317ReadOnlyTensorSpan<TArg1> sourceSlice = sourceSlices[i]; 1325ReadOnlyTensorSpan<TArg1> source = optimizedSource; 1345public static void Invoke<TOperation, TArg, TResult>(TArg x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 1351ReadOnlyTensorSpan<TArg> optimizedSource = y.Lengths.SequenceEqual(destinationLengths) ? y : BroadcastSource(y, destination._shape); 1374ReadOnlyTensorSpan<TArg> sourceSlice = sourceSlices[i]; 1382ReadOnlyTensorSpan<TArg> source = optimizedSource; 1402public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, ref TResult result) 1419private static void InvokeStridedReduction<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, ref TResult result) 1449public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, ref TResult result) 1452public static void ValidateCompatibility<TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlySpan<nint> lengths) 1459public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TResult> y) 1466public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 1473public static void ValidateCompatibility<TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 1490public 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)