37 instantiations of ReadOnlyTensorSpan
System.Numerics.Tensors (37)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
50return new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (5)
342public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 352return new ReadOnlyTensorSpan<T>( 415return new ReadOnlyTensorSpan<T>( 425return new ReadOnlyTensorSpan<T>( 435return new ReadOnlyTensorSpan<T>(
System\Numerics\Tensors\netcore\Tensor.cs (16)
21/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 23=> new ReadOnlyTensorSpan<T>(array); 25/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 27=> new ReadOnlyTensorSpan<T>(array, lengths); 29/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 31=> new ReadOnlyTensorSpan<T>(array, lengths, strides); 33/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 35=> new ReadOnlyTensorSpan<T>(array, start, lengths, strides); 308/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 313/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 318/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 323/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 1634ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides); 2120ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..newRank], strides[..newRank], strideOrder[..newRank]); 2283ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape); 2516ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides);
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
182public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (14)
33/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 45/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 57/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 69/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 81/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 89/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 97/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 105/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 117/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 129/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 137/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 145/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 242new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape); 245public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape);
893 references to ReadOnlyTensorSpan
System.Numerics.Tensors (893)
System\Numerics\Tensors\netcore\IReadOnlyTensor_1.cs (4)
38ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(); 43ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes); 46ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes); 51ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges);
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (5)
15private readonly ReadOnlyTensorSpan<T> _tensor; 20internal ReadOnlyTensorDimensionSpan(ReadOnlyTensorSpan<T> tensor, int dimension) 40public ReadOnlyTensorSpan<T> this[nint index] 60: IEnumerator<ReadOnlyTensorSpan<T>> 73public readonly ReadOnlyTensorSpan<T> Current => _span[_index];
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (14)
28public static ReadOnlyTensorSpan<T> Empty => default; 295public ReadOnlyTensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges] 328public static bool operator ==(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) 337public static bool operator !=(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) => !(left == right); 342public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 349public static ReadOnlyTensorSpan<T> CastUp<TDerived>(in ReadOnlyTensorSpan<TDerived> items) 412public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes) 422public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes) 432public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges) 470private readonly ReadOnlyTensorSpan<T> _span; 475internal Enumerator(ReadOnlyTensorSpan<T> span)
System\Numerics\Tensors\netcore\Tensor.cs (810)
21/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 22public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array) 25/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 26public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths) 29/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 30public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 33/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 34public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 59public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped in ReadOnlyTensorSpan<T> lengthsSource) 71public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped ReadOnlySpan<nint> lengths) 108public static void BroadcastTo<T>(in this ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination) 308/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 313/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 318/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 323/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 479/// 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 482/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 483/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 485public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 494/// 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 497/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 498/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 501public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 510/// 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 513/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 516public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, T y) 525/// 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 528/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 532public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 543/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 547/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 548/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 550public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 558/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 562/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 563/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 565public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, T y) 571/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 575/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 576/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 578public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 590/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 594/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 597public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, T y) 608public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, T value) 622public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, scoped in ReadOnlyTensorSpan<T> values) 632/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 637/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 638/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 641public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 650/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 655/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 656/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 660public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 669/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 673/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 677public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, T y) 686/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 690/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 695public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 708/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 712public static Tensor<bool> GreaterThan<T>(T x, in ReadOnlyTensorSpan<T> y) 720/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 725public static ref readonly TensorSpan<bool> GreaterThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 731/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 735/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 736/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 738public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 746/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 750/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 751/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 753public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 757/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 761/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 762/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 764public static bool GreaterThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 770/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 774/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 775/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 777public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 789/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 793/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 796public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 800/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 804/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 807public static bool GreaterThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 813/// 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"/>. 818/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 819/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 822public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 831/// 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"/>. 836/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 837/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 841public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 850/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 854/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 858public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 867/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 871/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 876public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 889/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 893public static Tensor<bool> GreaterThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 901/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 906public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 912/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 916/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 917/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 919public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 927/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> 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 GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 938/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 942/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 943/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 945public static bool GreaterThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 951/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 955/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 956/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 958public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 970/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 974/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 977public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 981/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 985/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 988public static bool GreaterThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 994/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 999/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1000/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1003public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1012/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1017/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1018/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1022public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1039public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, T y) 1057public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1074public static Tensor<bool> LessThan<T>(T x, in ReadOnlyTensorSpan<T> y) 1087public static ref readonly TensorSpan<bool> LessThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1093/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1097/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1098/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1100public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1108/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1112/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1115public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1119/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1126public static bool LessThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1132/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1136/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1137/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1139public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1151/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1155/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1158public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1162/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1169public static bool LessThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1175/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1180/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1181/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1184public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1193/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1198/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1199/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1203public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1220public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 1238public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1255public static Tensor<bool> LessThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 1268public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1274/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1278/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1279/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1281public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1289/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1293/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1296public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1300/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1307public static bool LessThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1313/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1317/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1318/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1320public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1332/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1336/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1339public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1343/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1350public static bool LessThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1570public static ReadOnlyTensorSpan<T> Reshape<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths) 1634ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides); 1687/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 1689public static void ResizeTo<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1705public static Tensor<T> Reverse<T>(in ReadOnlyTensorSpan<T> tensor) 1719public static Tensor<T> ReverseDimension<T>(in ReadOnlyTensorSpan<T> tensor, int dimension) 1732public static ref readonly TensorSpan<T> Reverse<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1744public static ref readonly TensorSpan<T> ReverseDimension<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination, int dimension) 1783public static bool SequenceEqual<T>(this scoped in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1795public static bool SequenceEqual<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1812public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 1824public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges) 1846public static Tensor<T>[] Split<T>(scoped in ReadOnlyTensorSpan<T> tensor, int splitCount, nint dimension) 2050/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove all dimensions of length 1.</param> 2051public static ReadOnlyTensorSpan<T> Squeeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor) 2060/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove dimension of length 1.</param> 2062public static ReadOnlyTensorSpan<T> SqueezeDimension<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2120ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..newRank], strides[..newRank], strideOrder[..newRank]); 2246/// Creates a <see cref="string"/> representation of the <see cref="ReadOnlyTensorSpan{T}"/>."/> 2249/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> you want to represent as a string.</param> 2251public static string ToString<T>(this in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths) 2263internal static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0) 2283ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape); 2397/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2399public static bool TryBroadcastTo<T>(in this ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 2488/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to add a dimension of length 1.</param> 2490public static ReadOnlyTensorSpan<T> Unsqueeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2516ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides); 2528/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the abs of.</param> 2529public static Tensor<T> Abs<T>(in ReadOnlyTensorSpan<T> x) 2538/// Takes the absolute value of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2542public static ref readonly TensorSpan<T> Abs<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2555/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2556public static Tensor<T> Acos<T>(in ReadOnlyTensorSpan<T> x) 2569public static ref readonly TensorSpan<T> Acos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2580/// 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. 2582/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2583public static Tensor<T> Acosh<T>(in ReadOnlyTensorSpan<T> x) 2596public static ref readonly TensorSpan<T> Acosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2609/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2610public static Tensor<T> AcosPi<T>(in ReadOnlyTensorSpan<T> x) 2621/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2623public static ref readonly TensorSpan<T> AcosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2636/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2637/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2638public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2649/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2651public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, T y) 2660/// Adds each element of <paramref name="x"/> to each element of <paramref name="y"/> and returns a new <see cref="ReadOnlyTensorSpan{T}"/> with the result. 2662/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2663/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2665public static ref readonly TensorSpan<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2676/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2679public static ref readonly TensorSpan<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2690/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2692/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2693public static Tensor<T> Asin<T>(in ReadOnlyTensorSpan<T> x) 2702/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2704/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2706public static ref readonly TensorSpan<T> Asin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2717/// 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. 2719/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2720public static Tensor<T> Asinh<T>(in ReadOnlyTensorSpan<T> x) 2729/// 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. 2731/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2733public static ref readonly TensorSpan<T> Asinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2744/// 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. 2746/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2747public static Tensor<T> AsinPi<T>(in ReadOnlyTensorSpan<T> x) 2756/// 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. 2758/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2760public static ref readonly TensorSpan<T> AsinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2771/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2773/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2774public static Tensor<T> Atan<T>(in ReadOnlyTensorSpan<T> x) 2783/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2785/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2787public static ref readonly TensorSpan<T> Atan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2798/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2800/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2801/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2802public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2811/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2813/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2814/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2816public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2825/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2827/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2828/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2829public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, T y) 2838/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2840/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2841/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2843public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2852/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2854/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2855/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2856public static Tensor<T> Atan2<T>(T x, in ReadOnlyTensorSpan<T> y) 2865/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2867/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2868/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2870public static ref readonly TensorSpan<T> Atan2<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2881/// 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. 2883/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2884/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2885public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2894/// 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. 2896/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2897/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2899public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2908/// 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. 2910/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2911/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2912public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, T y) 2921/// 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. 2923/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2924/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2926public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2935/// 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. 2937/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2938/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2939public static Tensor<T> Atan2Pi<T>(T x, in ReadOnlyTensorSpan<T> y) 2948/// 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. 2950/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2951/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2953public static ref readonly TensorSpan<T> Atan2Pi<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2964/// 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. 2966/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2967public static Tensor<T> Atanh<T>(in ReadOnlyTensorSpan<T> x) 2976/// 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. 2978/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2980public static ref readonly TensorSpan<T> Atanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2991/// 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. 2993/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 2994public static Tensor<T> AtanPi<T>(in ReadOnlyTensorSpan<T> x) 3003/// 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. 3005/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 3007public static ref readonly TensorSpan<T> AtanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3022public static T Average<T>(scoped in ReadOnlyTensorSpan<T> x) 3035/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3037/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3038/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3039public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3048/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3050/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3051/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3053public static ref readonly TensorSpan<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3062/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3064/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3066public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, T y) 3075/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3077/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3080public static ref readonly TensorSpan<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3091/// Computes the element-wise bitwise of of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3093/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3094/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3095public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3104/// Computes the element-wise bitwise of of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3106/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3107/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3109public static ref readonly TensorSpan<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3118/// Computes the element-wise bitwise or of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3120/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3122public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, T y) 3131/// Computes the element-wise bitwise or of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3133/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3136public static ref readonly TensorSpan<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3147/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3149/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3150public static Tensor<T> Cbrt<T>(in ReadOnlyTensorSpan<T> x) 3159/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3161/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3163public static ref readonly TensorSpan<T> Cbrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3174/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3176/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3177public static Tensor<T> Ceiling<T>(in ReadOnlyTensorSpan<T> x) 3186/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3188/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3190public static ref readonly TensorSpan<T> Ceiling<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3201/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3204/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3205public static Tensor<TTo> ConvertChecked<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3220public static ref readonly TensorSpan<TTo> ConvertChecked<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3232/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3235/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3236public static Tensor<TTo> ConvertSaturating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3251public static ref readonly TensorSpan<TTo> ConvertSaturating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3263/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3266/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3267public static Tensor<TTo> ConvertTruncating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3282public static ref readonly TensorSpan<TTo> ConvertTruncating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3296/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3298public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, T sign) 3309/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3310/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3311public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> sign) 3322/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3325public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, T sign, in TensorSpan<T> destination) 3336/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3337/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3339public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> sign, in TensorSpan<T> destination) 3350/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3352/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3353public static Tensor<T> Cos<T>(in ReadOnlyTensorSpan<T> x) 3362/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3364/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3366public static ref readonly TensorSpan<T> Cos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3377/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3379/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3380public static Tensor<T> Cosh<T>(in ReadOnlyTensorSpan<T> x) 3389/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3391/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3393public static ref readonly TensorSpan<T> Cosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3406/// <param name="x">The first <see cref="ReadOnlyTensorSpan{T}"/></param> 3407/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/></param> 3408public static T CosineSimilarity<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3420/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3433public static Tensor<T> CosPi<T>(in ReadOnlyTensorSpan<T> x) 3442/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3456public static ref readonly TensorSpan<T> CosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3469/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3470public static Tensor<T> DegreesToRadians<T>(in ReadOnlyTensorSpan<T> x) 3481/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3483public static ref readonly TensorSpan<T> DegreesToRadians<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3496/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3497/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3498public static T Distance<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y) 3512/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3514public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, T y) 3526/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3527public static Tensor<T> Divide<T>(T x, in ReadOnlyTensorSpan<T> y) 3537/// a new <see cref="ReadOnlyTensorSpan{T}"/> with the result. 3539/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to be divided.</param> 3540/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3541public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3552/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3555public static ref readonly TensorSpan<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3567/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3569public static ref readonly TensorSpan<T> Divide<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3581/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to be divided.</param> 3582/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3584public static ref readonly TensorSpan<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3597/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3598/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3599public static T Dot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3613/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3614public static Tensor<T> Exp<T>(in ReadOnlyTensorSpan<T> x) 3625/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3627public static ref readonly TensorSpan<T> Exp<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3640/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3641public static Tensor<T> Exp10<T>(in ReadOnlyTensorSpan<T> x) 3652/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3654public static ref readonly TensorSpan<T> Exp10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3665/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3666public static Tensor<T> Exp10M1<T>(in ReadOnlyTensorSpan<T> x) 3675/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3677public static ref readonly TensorSpan<T> Exp10M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3688/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3689public static Tensor<T> Exp2<T>(in ReadOnlyTensorSpan<T> x) 3698/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3700public static ref readonly TensorSpan<T> Exp2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3711/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3712public static Tensor<T> Exp2M1<T>(in ReadOnlyTensorSpan<T> x) 3721/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3723public static ref readonly TensorSpan<T> Exp2M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3734/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3735public static Tensor<T> ExpM1<T>(in ReadOnlyTensorSpan<T> x) 3744/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3746public static ref readonly TensorSpan<T> ExpM1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3757/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3758public static Tensor<T> Floor<T>(in ReadOnlyTensorSpan<T> x) 3767/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3769public static ref readonly TensorSpan<T> Floor<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3783/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3784/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3785public static Tensor<T> Hypot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3797/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3798/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3800public static ref readonly TensorSpan<T> Hypot<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3812/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3813/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3814public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3824/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3825/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3827public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3836/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3837/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3838public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, T y) 3847/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3848/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3850public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3859/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3860/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3861public static Tensor<T> Ieee754Remainder<T>(T x, in ReadOnlyTensorSpan<T> y) 3870/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3871/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3873public static ref readonly TensorSpan<T> Ieee754Remainder<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3884/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3885public static Tensor<int> ILogB<T>(in ReadOnlyTensorSpan<T> x) 3894/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3896public static ref readonly TensorSpan<int> ILogB<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<int> destination) 3907/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3908public static nint IndexOfMax<T>(scoped in ReadOnlyTensorSpan<T> x) 3919/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3920public static nint IndexOfMaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3930/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3931public static nint IndexOfMin<T>(scoped in ReadOnlyTensorSpan<T> x) 3943/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3944public static nint IndexOfMinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3956/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3957public static Tensor<T> LeadingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 3968/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3970public static ref readonly TensorSpan<T> LeadingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3981/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3983/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3984public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x) 3993/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3995/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3997public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4008public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4020public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4031public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, T y) 4043public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4054/// 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. 4056/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4057public static Tensor<T> Log10<T>(in ReadOnlyTensorSpan<T> x) 4066/// 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. 4068/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4070public static ref readonly TensorSpan<T> Log10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4081/// 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. 4083/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4084public static Tensor<T> Log10P1<T>(in ReadOnlyTensorSpan<T> x) 4093/// 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. 4095/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4097public static ref readonly TensorSpan<T> Log10P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4108/// 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. 4110/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4111public static Tensor<T> Log2<T>(in ReadOnlyTensorSpan<T> x) 4120/// 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. 4122/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4124public static ref readonly TensorSpan<T> Log2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4135/// 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. 4137/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4138public static Tensor<T> Log2P1<T>(in ReadOnlyTensorSpan<T> x) 4147/// 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. 4149/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4151public static ref readonly TensorSpan<T> Log2P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4162/// 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. 4164/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4165public static Tensor<T> LogP1<T>(in ReadOnlyTensorSpan<T> x) 4174/// 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. 4176/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4178public static ref readonly TensorSpan<T> LogP1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4189/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4190public static T Max<T>(scoped in ReadOnlyTensorSpan<T> x) 4206public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4218public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4229public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, T y) 4241public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4252/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4253public static T MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4269public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4281public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4292public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4304public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4315/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4316public static T MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4332public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4344public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4355public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4367public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4378/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4379public static T MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4395public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4407public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4418public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4430public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4441/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4442public static T Min<T>(scoped in ReadOnlyTensorSpan<T> x) 4458public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4470public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4481public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, T y) 4493public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4504/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4505public static T MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4521public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4533public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4544public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4556public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4567/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4568public static T MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4584public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4596public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4607public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4619public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4630/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4631public static T MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4647public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4659public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4670public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4682public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4695/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/></param> 4697public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, T y) 4709/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4710/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4711public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4722/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/></param> 4725public static ref readonly TensorSpan<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4737/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4738/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4740public static ref readonly TensorSpan<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4751/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4752public static Tensor<T> Negate<T>(in ReadOnlyTensorSpan<T> x) 4761/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4763public static ref readonly TensorSpan<T> Negate<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4774/// Takes the norm of the <see cref="ReadOnlyTensorSpan{T}"/> and returns the result. 4776/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the norm of.</param> 4777public static T Norm<T>(scoped in ReadOnlyTensorSpan<T> x) 4788/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4789public static Tensor<T> OnesComplement<T>(in ReadOnlyTensorSpan<T> x) 4798/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4800public static ref readonly TensorSpan<T> OnesComplement<T>(scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4811/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4812public static Tensor<T> PopCount<T>(in ReadOnlyTensorSpan<T> x) 4821/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4823public static ref readonly TensorSpan<T> PopCount<T>(scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4834/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4835/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4836public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4845/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4846/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4848public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4857/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4859public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, T y) 4868/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4869/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4871public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4880/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4882public static Tensor<T> Pow<T>(T x, in ReadOnlyTensorSpan<T> y) 4891/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4892/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4894public static ref readonly TensorSpan<T> Pow<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4905/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4906public static T Product<T>(scoped in ReadOnlyTensorSpan<T> x) 4917/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4918public static Tensor<T> RadiansToDegrees<T>(in ReadOnlyTensorSpan<T> x) 4927/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4929public static ref readonly TensorSpan<T> RadiansToDegrees<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4940/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4941public static Tensor<T> Reciprocal<T>(in ReadOnlyTensorSpan<T> x) 4950/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4952public static ref readonly TensorSpan<T> Reciprocal<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4965public static Tensor<T> RootN<T>(in ReadOnlyTensorSpan<T> x, int n) 4977public static ref readonly TensorSpan<T> RootN<T>(scoped in ReadOnlyTensorSpan<T> x, int n, in TensorSpan<T> destination) 4991public static Tensor<T> RotateLeft<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 5004public static ref readonly TensorSpan<T> RotateLeft<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 5018public static Tensor<T> RotateRight<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 5031public static ref readonly TensorSpan<T> RotateRight<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 5042/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5043public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x) 5052/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5054public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5063/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5066public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode) 5075/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5079public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode, in TensorSpan<T> destination) 5088/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5090public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits) 5099/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5102public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, in TensorSpan<T> destination) 5111/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5113public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, MidpointRounding mode) 5122/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5125public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, MidpointRounding mode, in TensorSpan<T> destination) 5136/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5137public static Tensor<T> Sigmoid<T>(in ReadOnlyTensorSpan<T> x) 5146/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5148public static ref readonly TensorSpan<T> Sigmoid<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5159/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5161/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5162public static Tensor<T> Sin<T>(in ReadOnlyTensorSpan<T> x) 5171/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 5173/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5175public static ref readonly TensorSpan<T> Sin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5186/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5187public static Tensor<T> Sinh<T>(in ReadOnlyTensorSpan<T> x) 5196/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5198public static ref readonly TensorSpan<T> Sinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5209/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5210public static Tensor<T> SinPi<T>(in ReadOnlyTensorSpan<T> x) 5219/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5221public static ref readonly TensorSpan<T> SinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5232/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5233public static Tensor<T> SoftMax<T>(in ReadOnlyTensorSpan<T> x) 5245/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5247public static ref readonly TensorSpan<T> SoftMax<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5261/// Takes the square root of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5263/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 5264public static Tensor<T> Sqrt<T>(in ReadOnlyTensorSpan<T> x) 5275/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 5277public static ref readonly TensorSpan<T> Sqrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5292public static T StdDev<T>(in ReadOnlyTensorSpan<T> x) 5308/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5310public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, T y) 5322/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> of values to subtract.</param> 5323public static Tensor<T> Subtract<T>(T x, in ReadOnlyTensorSpan<T> y) 5334/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> with values to be subtracted from.</param> 5335/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> with values to subtract.</param> 5336public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5347/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> with values to be subtracted from.</param> 5350public static ref readonly TensorSpan<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 5362/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> values to subtract.</param> 5364public static ref readonly TensorSpan<T> Subtract<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5375/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to be subtracted from.</param> 5376/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/>of values to subtract.</param> 5378public static ref readonly TensorSpan<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5393public static T Sum<T>(scoped in ReadOnlyTensorSpan<T> x) 5408internal static T SumOfSquares<T>(scoped in ReadOnlyTensorSpan<T> x) 5419/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5420public static Tensor<T> Tan<T>(in ReadOnlyTensorSpan<T> x) 5429/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5431public static ref readonly TensorSpan<T> Tan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5442/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5443public static Tensor<T> Tanh<T>(in ReadOnlyTensorSpan<T> x) 5452/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5454public static ref readonly TensorSpan<T> Tanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5465/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5466public static Tensor<T> TanPi<T>(in ReadOnlyTensorSpan<T> x) 5475/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5477public static ref readonly TensorSpan<T> TanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5488/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5489public static Tensor<T> TrailingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 5498/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5500public static ref readonly TensorSpan<T> TrailingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5511/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5512public static Tensor<T> Truncate<T>(in ReadOnlyTensorSpan<T> x) 5521/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5523public static ref readonly TensorSpan<T> Truncate<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5534/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5535/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5536public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5545/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5546/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5548public static ref readonly TensorSpan<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5557/// Computes the element-wise Xor of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5559/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5561public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, T y) 5570/// Computes the element-wise Xor of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 5572/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5575public static ref readonly TensorSpan<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination)
System\Numerics\Tensors\netcore\Tensor_1.cs (6)
178/// <inheritdoc cref="TensorSpan{T}.implicit operator ReadOnlyTensorSpan{T}(in TensorSpan{T})" /> 179public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> tensor) => tensor.AsReadOnlyTensorSpan(); 182public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape); 185public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 188public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 191public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges);
System\Numerics\Tensors\netcore\TensorOperation.cs (27)
29public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y) 61public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, TArg y) 106public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 127public static void ReverseInvoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 156public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in Span<TResult> destination) 176public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, ref TResult destination) 194public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 219public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 223public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, ref TResult result) 248public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, in TensorSpan<TResult> destination) 252public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, int y, in TensorSpan<TResult> destination) 255public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, in TensorSpan<TResult> destination) 277public static void Invoke<TOperation, TArg, TResult>(TArg x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 299public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, ref TResult result) 318public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, ref TResult result) 321public static void ValidateCompatibility<TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlySpan<nint> lengths) 328public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TResult> y) 335public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 342public static void ValidateCompatibility<TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 359public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, out Tensor<TResult> destination)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (26)
33/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 45/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 57/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 69/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 81/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 89/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 97/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 105/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 117/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 129/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 137/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 145/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 225/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator ==(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 230/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator !=(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 241public static implicit operator ReadOnlyTensorSpan<T>(scoped in TensorSpan<T> tensor) => 245public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape); 248public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 251public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 254public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 268/// <inheritdoc cref="ReadOnlyTensorSpan{T}.Equals(object?)" /> 292/// <inheritdoc cref="ReadOnlyTensorSpan{T}.GetHashCode" /> 338/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString" />
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
21public TensorSpanDebugView(ReadOnlyTensorSpan<T> span)