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