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