37 instantiations of ReadOnlyTensorSpan
System.Numerics.Tensors (37)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
50
return new
ReadOnlyTensorSpan
<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (5)
342
public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new
ReadOnlyTensorSpan
<T>(array);
352
return new
ReadOnlyTensorSpan
<T>(
415
return new
ReadOnlyTensorSpan
<T>(
425
return new
ReadOnlyTensorSpan
<T>(
435
return 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})" />
1634
ReadOnlyTensorSpan<T> output = new
ReadOnlyTensorSpan
<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides);
2120
ReadOnlyTensorSpan<T> output = new
ReadOnlyTensorSpan
<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..newRank], strides[..newRank], strideOrder[..newRank]);
2283
ReadOnlyTensorSpan<T> tmpTensor = new
ReadOnlyTensorSpan
<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape);
2516
ReadOnlyTensorSpan<T> output = new
ReadOnlyTensorSpan
<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides);
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
182
public 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})" />
242
new
ReadOnlyTensorSpan
<T>(ref tensor._reference, tensor._shape);
245
public 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)
38
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan();
43
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes);
46
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes);
51
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges);
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (5)
15
private readonly
ReadOnlyTensorSpan
<T> _tensor;
20
internal ReadOnlyTensorDimensionSpan(
ReadOnlyTensorSpan
<T> tensor, int dimension)
40
public
ReadOnlyTensorSpan
<T> this[nint index]
60
: IEnumerator<
ReadOnlyTensorSpan
<T>>
73
public readonly
ReadOnlyTensorSpan
<T> Current => _span[_index];
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (14)
28
public static
ReadOnlyTensorSpan
<T> Empty => default;
295
public
ReadOnlyTensorSpan
<T> this[params scoped ReadOnlySpan<NRange> ranges]
328
public static bool operator ==(in
ReadOnlyTensorSpan
<T> left, in
ReadOnlyTensorSpan
<T> right)
337
public static bool operator !=(in
ReadOnlyTensorSpan
<T> left, in
ReadOnlyTensorSpan
<T> right) => !(left == right);
342
public static implicit operator
ReadOnlyTensorSpan
<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array);
349
public static
ReadOnlyTensorSpan
<T> CastUp<TDerived>(in
ReadOnlyTensorSpan
<TDerived> items)
412
public
ReadOnlyTensorSpan
<T> Slice(params scoped ReadOnlySpan<nint> startIndexes)
422
public
ReadOnlyTensorSpan
<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes)
432
public
ReadOnlyTensorSpan
<T> Slice(params scoped ReadOnlySpan<NRange> ranges)
470
private readonly
ReadOnlyTensorSpan
<T> _span;
475
internal Enumerator(
ReadOnlyTensorSpan
<T> span)
System\Numerics\Tensors\netcore\Tensor.cs (810)
21
/// <inheritdoc cref="
ReadOnlyTensorSpan
{T}.ReadOnlyTensorSpan(T[])" />
22
public static
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan<T>(this T[]? array)
25
/// <inheritdoc cref="
ReadOnlyTensorSpan
{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" />
26
public static
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths)
29
/// <inheritdoc cref="
ReadOnlyTensorSpan
{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" />
30
public 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})" />
34
public static
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides)
59
public static Tensor<T> Broadcast<T>(scoped in
ReadOnlyTensorSpan
<T> source, scoped in
ReadOnlyTensorSpan
<T> lengthsSource)
71
public static Tensor<T> Broadcast<T>(scoped in
ReadOnlyTensorSpan
<T> source, scoped ReadOnlySpan<nint> lengths)
108
public 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>
485
public 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>
501
public 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>
516
public 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>
532
public 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>
550
public 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>
565
public 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>
578
public 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>
597
public static bool EqualsAny<T>(in
ReadOnlyTensorSpan
<T> x, T y)
608
public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in
ReadOnlyTensorSpan
<bool> filter, T value)
622
public 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>
641
public 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>
660
public 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>
677
public 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>
695
public 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>
712
public static Tensor<bool> GreaterThan<T>(T x, in
ReadOnlyTensorSpan
<T> y)
720
/// <param name="x"><see cref="
ReadOnlyTensorSpan
{T}"/> to compare.</param>
725
public 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>
738
public 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>
753
public 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>
764
public 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>
777
public 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>
796
public 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>
807
public 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>
822
public 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>
841
public 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>
858
public 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>
876
public 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>
893
public static Tensor<bool> GreaterThanOrEqual<T>(T x, in
ReadOnlyTensorSpan
<T> y)
901
/// <param name="x"><see cref="
ReadOnlyTensorSpan
{T}"/> to compare.</param>
906
public 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>
919
public 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>
934
public 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>
945
public 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>
958
public 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>
977
public 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>
988
public 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>
1003
public 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>
1022
public static ref readonly TensorSpan<bool> LessThan<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<bool> destination)
1039
public static Tensor<bool> LessThan<T>(in
ReadOnlyTensorSpan
<T> x, T y)
1057
public static ref readonly TensorSpan<bool> LessThan<T>(scoped in
ReadOnlyTensorSpan
<T> x, T y, in TensorSpan<bool> destination)
1074
public static Tensor<bool> LessThan<T>(T x, in
ReadOnlyTensorSpan
<T> y)
1087
public 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>
1100
public 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>
1115
public 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"/>.
1126
public 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>
1139
public 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>
1158
public 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"/>.
1169
public 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>
1184
public 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>
1203
public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<bool> destination)
1220
public static Tensor<bool> LessThanOrEqual<T>(in
ReadOnlyTensorSpan
<T> x, T y)
1238
public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in
ReadOnlyTensorSpan
<T> x, T y, in TensorSpan<bool> destination)
1255
public static Tensor<bool> LessThanOrEqual<T>(T x, in
ReadOnlyTensorSpan
<T> y)
1268
public 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>
1281
public 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>
1296
public 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"/>.
1307
public 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>
1320
public 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>
1339
public 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"/>.
1350
public static bool LessThanOrEqualAny<T>(T x, in
ReadOnlyTensorSpan
<T> y)
1570
public static
ReadOnlyTensorSpan
<T> Reshape<T>(this scoped in
ReadOnlyTensorSpan
<T> tensor, scoped ReadOnlySpan<nint> lengths)
1634
ReadOnlyTensorSpan
<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides);
1687
/// <param name="tensor">Input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
1689
public static void ResizeTo<T>(scoped in
ReadOnlyTensorSpan
<T> tensor, in TensorSpan<T> destination)
1705
public static Tensor<T> Reverse<T>(in
ReadOnlyTensorSpan
<T> tensor)
1719
public static Tensor<T> ReverseDimension<T>(in
ReadOnlyTensorSpan
<T> tensor, int dimension)
1732
public static ref readonly TensorSpan<T> Reverse<T>(scoped in
ReadOnlyTensorSpan
<T> tensor, in TensorSpan<T> destination)
1744
public static ref readonly TensorSpan<T> ReverseDimension<T>(scoped in
ReadOnlyTensorSpan
<T> tensor, in TensorSpan<T> destination, int dimension)
1783
public static bool SequenceEqual<T>(this scoped in TensorSpan<T> tensor, scoped in
ReadOnlyTensorSpan
<T> other)
1795
public static bool SequenceEqual<T>(this scoped in
ReadOnlyTensorSpan
<T> tensor, scoped in
ReadOnlyTensorSpan
<T> other)
1812
public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in
ReadOnlyTensorSpan
<T> values, params ReadOnlySpan<NRange> ranges)
1824
public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in
ReadOnlyTensorSpan
<T> values, params scoped ReadOnlySpan<NRange> ranges)
1846
public 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>
2051
public 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>
2062
public static
ReadOnlyTensorSpan
<T> SqueezeDimension<T>(this scoped in
ReadOnlyTensorSpan
<T> tensor, int dimension)
2120
ReadOnlyTensorSpan
<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>
2251
public static string ToString<T>(this in
ReadOnlyTensorSpan
<T> tensor, ReadOnlySpan<nint> maximumLengths)
2263
internal static void ToString<T>(in
ReadOnlyTensorSpan
<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0)
2283
ReadOnlyTensorSpan
<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>
2399
public 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>
2490
public static
ReadOnlyTensorSpan
<T> Unsqueeze<T>(this scoped in
ReadOnlyTensorSpan
<T> tensor, int dimension)
2516
ReadOnlyTensorSpan
<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>
2529
public 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.
2542
public 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>
2556
public static Tensor<T> Acos<T>(in
ReadOnlyTensorSpan
<T> x)
2569
public 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>
2583
public static Tensor<T> Acosh<T>(in
ReadOnlyTensorSpan
<T> x)
2596
public 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>
2610
public static Tensor<T> AcosPi<T>(in
ReadOnlyTensorSpan
<T> x)
2621
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
2623
public 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>
2638
public 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>
2651
public 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>
2665
public 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>
2679
public 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>
2693
public 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>
2706
public 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>
2720
public 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>
2733
public 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>
2747
public 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>
2760
public 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>
2774
public 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>
2787
public 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>
2802
public 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>
2816
public 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>
2829
public 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>
2843
public 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>
2856
public 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>
2870
public 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>
2885
public 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>
2899
public 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>
2912
public 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>
2926
public 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>
2939
public 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>
2953
public 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>
2967
public 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>
2980
public 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>
2994
public 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>
3007
public static ref readonly TensorSpan<T> AtanPi<T>(scoped in
ReadOnlyTensorSpan
<T> x, in TensorSpan<T> destination)
3022
public 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>
3039
public 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>
3053
public 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>
3066
public 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>
3080
public 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>
3095
public 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>
3109
public 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>
3122
public 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>
3136
public 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>
3150
public 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>
3163
public 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>
3177
public 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>
3190
public 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>
3205
public static Tensor<TTo> ConvertChecked<TFrom, TTo>(in
ReadOnlyTensorSpan
<TFrom> source)
3220
public 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>
3236
public static Tensor<TTo> ConvertSaturating<TFrom, TTo>(in
ReadOnlyTensorSpan
<TFrom> source)
3251
public 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>
3267
public static Tensor<TTo> ConvertTruncating<TFrom, TTo>(in
ReadOnlyTensorSpan
<TFrom> source)
3282
public 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>
3298
public 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>
3311
public static Tensor<T> CopySign<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> sign)
3322
/// <param name="x">Input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3325
public 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>
3339
public 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>
3353
public 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>
3366
public 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>
3380
public 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>
3393
public 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>
3408
public static T CosineSimilarity<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
3420
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/></param>
3433
public static Tensor<T> CosPi<T>(in
ReadOnlyTensorSpan
<T> x)
3442
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/></param>
3456
public 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>
3470
public static Tensor<T> DegreesToRadians<T>(in
ReadOnlyTensorSpan
<T> x)
3481
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3483
public 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>
3498
public static T Distance<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y)
3512
/// <param name="x">Input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3514
public static Tensor<T> Divide<T>(in
ReadOnlyTensorSpan
<T> x, T y)
3526
/// <param name="y">The <see cref="
ReadOnlyTensorSpan
{T}"/> divisor.</param>
3527
public 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>
3541
public static Tensor<T> Divide<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
3552
/// <param name="x">Input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3555
public 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>
3569
public 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>
3584
public 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>
3599
public static T Dot<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
3613
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3614
public static Tensor<T> Exp<T>(in
ReadOnlyTensorSpan
<T> x)
3625
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3627
public 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>
3641
public static Tensor<T> Exp10<T>(in
ReadOnlyTensorSpan
<T> x)
3652
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3654
public 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>
3666
public static Tensor<T> Exp10M1<T>(in
ReadOnlyTensorSpan
<T> x)
3675
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3677
public 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>
3689
public static Tensor<T> Exp2<T>(in
ReadOnlyTensorSpan
<T> x)
3698
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3700
public 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>
3712
public static Tensor<T> Exp2M1<T>(in
ReadOnlyTensorSpan
<T> x)
3721
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3723
public 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>
3735
public static Tensor<T> ExpM1<T>(in
ReadOnlyTensorSpan
<T> x)
3744
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3746
public 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>
3758
public static Tensor<T> Floor<T>(in
ReadOnlyTensorSpan
<T> x)
3767
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3769
public 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>
3785
public 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>
3800
public 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>
3814
public 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>
3827
public 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>
3838
public 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>
3850
public 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>
3861
public 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>
3873
public 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>
3885
public static Tensor<int> ILogB<T>(in
ReadOnlyTensorSpan
<T> x)
3894
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3896
public 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>
3908
public static nint IndexOfMax<T>(scoped in
ReadOnlyTensorSpan
<T> x)
3919
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3920
public static nint IndexOfMaxMagnitude<T>(scoped in
ReadOnlyTensorSpan
<T> x)
3930
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3931
public static nint IndexOfMin<T>(scoped in
ReadOnlyTensorSpan
<T> x)
3943
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3944
public static nint IndexOfMinMagnitude<T>(scoped in
ReadOnlyTensorSpan
<T> x)
3956
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3957
public static Tensor<T> LeadingZeroCount<T>(in
ReadOnlyTensorSpan
<T> x)
3968
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
3970
public 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>
3984
public 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>
3997
public static ref readonly TensorSpan<T> Log<T>(scoped in
ReadOnlyTensorSpan
<T> x, in TensorSpan<T> destination)
4008
public static Tensor<T> Log<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4020
public static ref readonly TensorSpan<T> Log<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4031
public static Tensor<T> Log<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4043
public 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>
4057
public 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>
4070
public 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>
4084
public 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>
4097
public 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>
4111
public 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>
4124
public 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>
4138
public 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>
4151
public 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>
4165
public 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>
4178
public 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>
4190
public static T Max<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4206
public static Tensor<T> Max<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4218
public static ref readonly TensorSpan<T> Max<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4229
public static Tensor<T> Max<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4241
public 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>
4253
public static T MaxMagnitude<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4269
public static Tensor<T> MaxMagnitude<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4281
public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4292
public static Tensor<T> MaxMagnitude<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4304
public 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>
4316
public static T MaxMagnitudeNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4332
public static Tensor<T> MaxMagnitudeNumber<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4344
public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4355
public static Tensor<T> MaxMagnitudeNumber<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4367
public 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>
4379
public static T MaxNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4395
public static Tensor<T> MaxNumber<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4407
public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4418
public static Tensor<T> MaxNumber<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4430
public 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>
4442
public static T Min<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4458
public static Tensor<T> Min<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4470
public static ref readonly TensorSpan<T> Min<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4481
public static Tensor<T> Min<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4493
public 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>
4505
public static T MinMagnitude<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4521
public static Tensor<T> MinMagnitude<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4533
public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4544
public static Tensor<T> MinMagnitude<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4556
public 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>
4568
public static T MinMagnitudeNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4584
public static Tensor<T> MinMagnitudeNumber<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4596
public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4607
public static Tensor<T> MinMagnitudeNumber<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4619
public 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>
4631
public static T MinNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4647
public static Tensor<T> MinNumber<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4659
public static ref readonly TensorSpan<T> MinNumber<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
4670
public static Tensor<T> MinNumber<T>(in
ReadOnlyTensorSpan
<T> x, T y)
4682
public 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>
4697
public 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>
4711
public static Tensor<T> Multiply<T>(in
ReadOnlyTensorSpan
<T> x, in
ReadOnlyTensorSpan
<T> y)
4722
/// <param name="x">Input <see cref="
ReadOnlyTensorSpan
{T}"/></param>
4725
public 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>
4740
public 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>
4752
public static Tensor<T> Negate<T>(in
ReadOnlyTensorSpan
<T> x)
4761
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/></param>
4763
public 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>
4777
public static T Norm<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4788
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/></param>
4789
public static Tensor<T> OnesComplement<T>(in
ReadOnlyTensorSpan
<T> x)
4798
/// <param name="y">The <see cref="
ReadOnlyTensorSpan
{T}"/></param>
4800
public 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>
4812
public static Tensor<T> PopCount<T>(in
ReadOnlyTensorSpan
<T> x)
4821
/// <param name="y">The <see cref="
ReadOnlyTensorSpan
{T}"/></param>
4823
public 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>
4836
public 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>
4848
public 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>
4859
public 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>
4871
public 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>
4882
public 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>
4894
public 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>
4906
public static T Product<T>(scoped in
ReadOnlyTensorSpan
<T> x)
4917
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
4918
public static Tensor<T> RadiansToDegrees<T>(in
ReadOnlyTensorSpan
<T> x)
4927
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
4929
public 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>
4941
public static Tensor<T> Reciprocal<T>(in
ReadOnlyTensorSpan
<T> x)
4950
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
4952
public static ref readonly TensorSpan<T> Reciprocal<T>(scoped in
ReadOnlyTensorSpan
<T> x, in TensorSpan<T> destination)
4965
public static Tensor<T> RootN<T>(in
ReadOnlyTensorSpan
<T> x, int n)
4977
public static ref readonly TensorSpan<T> RootN<T>(scoped in
ReadOnlyTensorSpan
<T> x, int n, in TensorSpan<T> destination)
4991
public static Tensor<T> RotateLeft<T>(in
ReadOnlyTensorSpan
<T> x, int rotateAmount)
5004
public static ref readonly TensorSpan<T> RotateLeft<T>(scoped in
ReadOnlyTensorSpan
<T> x, int rotateAmount, in TensorSpan<T> destination)
5018
public static Tensor<T> RotateRight<T>(in
ReadOnlyTensorSpan
<T> x, int rotateAmount)
5031
public 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>
5043
public static Tensor<T> Round<T>(in
ReadOnlyTensorSpan
<T> x)
5052
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5054
public 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>
5066
public static Tensor<T> Round<T>(in
ReadOnlyTensorSpan
<T> x, int digits, MidpointRounding mode)
5075
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5079
public 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>
5090
public static Tensor<T> Round<T>(in
ReadOnlyTensorSpan
<T> x, int digits)
5099
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5102
public 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>
5113
public static Tensor<T> Round<T>(in
ReadOnlyTensorSpan
<T> x, MidpointRounding mode)
5122
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5125
public 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>
5137
public static Tensor<T> Sigmoid<T>(in
ReadOnlyTensorSpan
<T> x)
5146
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5148
public 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>
5162
public 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>
5175
public 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>
5187
public static Tensor<T> Sinh<T>(in
ReadOnlyTensorSpan
<T> x)
5196
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
5198
public 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>
5210
public static Tensor<T> SinPi<T>(in
ReadOnlyTensorSpan
<T> x)
5219
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
5221
public 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>
5233
public static Tensor<T> SoftMax<T>(in
ReadOnlyTensorSpan
<T> x)
5245
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
5247
public 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>
5264
public 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>
5277
public static ref readonly TensorSpan<T> Sqrt<T>(scoped in
ReadOnlyTensorSpan
<T> x, in TensorSpan<T> destination)
5292
public static T StdDev<T>(in
ReadOnlyTensorSpan
<T> x)
5308
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5310
public 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>
5323
public 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>
5336
public 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>
5350
public 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>
5364
public 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>
5378
public static ref readonly TensorSpan<T> Subtract<T>(scoped in
ReadOnlyTensorSpan
<T> x, scoped in
ReadOnlyTensorSpan
<T> y, in TensorSpan<T> destination)
5393
public static T Sum<T>(scoped in
ReadOnlyTensorSpan
<T> x)
5408
internal static T SumOfSquares<T>(scoped in
ReadOnlyTensorSpan
<T> x)
5419
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
5420
public static Tensor<T> Tan<T>(in
ReadOnlyTensorSpan
<T> x)
5429
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
5431
public 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>
5443
public static Tensor<T> Tanh<T>(in
ReadOnlyTensorSpan
<T> x)
5452
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
5454
public 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>
5466
public static Tensor<T> TanPi<T>(in
ReadOnlyTensorSpan
<T> x)
5475
/// <param name="x">The <see cref="
ReadOnlyTensorSpan
{T}"/> to take the sin of.</param>
5477
public 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>
5489
public static Tensor<T> TrailingZeroCount<T>(in
ReadOnlyTensorSpan
<T> x)
5498
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5500
public 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>
5512
public static Tensor<T> Truncate<T>(in
ReadOnlyTensorSpan
<T> x)
5521
/// <param name="x">The input <see cref="
ReadOnlyTensorSpan
{T}"/>.</param>
5523
public 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>
5536
public 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>
5548
public 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>
5561
public 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>
5575
public 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})" />
179
public static implicit operator
ReadOnlyTensorSpan
<T>(Tensor<T> tensor) => tensor.AsReadOnlyTensorSpan();
182
public
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape);
185
public
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
188
public
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
191
public
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges);
System\Numerics\Tensors\netcore\TensorOperation.cs (27)
29
public static bool Invoke<TOperation, TArg>(in
ReadOnlyTensorSpan
<TArg> x, in
ReadOnlyTensorSpan
<TArg> y)
61
public static bool Invoke<TOperation, TArg>(in
ReadOnlyTensorSpan
<TArg> x, TArg y)
106
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, in TensorSpan<TResult> destination)
127
public static void ReverseInvoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, in TensorSpan<TResult> destination)
156
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, in Span<TResult> destination)
176
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, ref TResult destination)
194
public static void Invoke<TOperation, TArg1, TArg2, TResult>(in
ReadOnlyTensorSpan
<TArg1> x, in
ReadOnlyTensorSpan
<TArg2> y, in TensorSpan<TResult> destination)
219
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, in
ReadOnlyTensorSpan
<TArg> y, in TensorSpan<TResult> destination)
223
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, in
ReadOnlyTensorSpan
<TArg> y, ref TResult result)
248
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, TArg y, in TensorSpan<TResult> destination)
252
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, int y, in TensorSpan<TResult> destination)
255
public static void Invoke<TOperation, TArg1, TArg2, TResult>(in
ReadOnlyTensorSpan
<TArg1> x, TArg2 y, in TensorSpan<TResult> destination)
277
public static void Invoke<TOperation, TArg, TResult>(TArg x, in
ReadOnlyTensorSpan
<TArg> y, in TensorSpan<TResult> destination)
299
public static void Invoke<TOperation, TArg1, TArg2, TResult>(in
ReadOnlyTensorSpan
<TArg1> x, TArg2 y, ref TResult result)
318
public static void Invoke<TOperation, TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, TArg y, ref TResult result)
321
public static void ValidateCompatibility<TArg>(in
ReadOnlyTensorSpan
<TArg> x, in ReadOnlySpan<nint> lengths)
328
public static void ValidateCompatibility<TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, in
ReadOnlyTensorSpan
<TResult> y)
335
public static void ValidateCompatibility<TArg, TResult>(in
ReadOnlyTensorSpan
<TArg> x, in TensorSpan<TResult> destination)
342
public static void ValidateCompatibility<TArg1, TArg2, TResult>(in
ReadOnlyTensorSpan
<TArg1> x, in
ReadOnlyTensorSpan
<TArg2> y, in TensorSpan<TResult> destination)
359
public 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})" />
241
public static implicit operator
ReadOnlyTensorSpan
<T>(scoped in TensorSpan<T> tensor) =>
245
public
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape);
248
public
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
251
public
ReadOnlyTensorSpan
<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes);
254
public
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)
21
public TensorSpanDebugView(
ReadOnlyTensorSpan
<T> span)