37 instantiations of ReadOnlyTensorSpan
System.Numerics.Tensors (37)
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (1)
55return new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref _tensor._reference, linearOffset), _sliceShape);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (5)
316public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 326return new ReadOnlyTensorSpan<T>( 389return new ReadOnlyTensorSpan<T>( 399return new ReadOnlyTensorSpan<T>( 409return new ReadOnlyTensorSpan<T>(
System\Numerics\Tensors\netcore\Tensor.cs (16)
18/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 20=> new ReadOnlyTensorSpan<T>(array); 22/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 24=> new ReadOnlyTensorSpan<T>(array, lengths); 26/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 28=> new ReadOnlyTensorSpan<T>(array, lengths, strides); 30/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 32=> new ReadOnlyTensorSpan<T>(array, start, lengths, strides); 305/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 310/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 315/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 320/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 1623ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 2065ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2202ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape); 2428ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned);
System\Numerics\Tensors\netcore\Tensor_1.cs (1)
137public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape);
System\Numerics\Tensors\netcore\TensorSpan_1.cs (14)
35/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 47/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 52/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 64/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 76/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 84/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 88/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 96/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 108/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 120/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 128/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 133/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 215new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape); 218public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape);
905 references to ReadOnlyTensorSpan
System.Numerics.Tensors (905)
System\Numerics\Tensors\netcore\IReadOnlyTensor_1.cs (4)
38ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(); 43ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes); 46ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes); 51ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges);
System\Numerics\Tensors\netcore\ReadOnlyTensorDimensionSpan_1.cs (5)
17private readonly ReadOnlyTensorSpan<T> _tensor; 22internal ReadOnlyTensorDimensionSpan(ReadOnlyTensorSpan<T> tensor, int dimension) 45public ReadOnlyTensorSpan<T> this[nint index] 65: IEnumerator<ReadOnlyTensorSpan<T>> 78public readonly ReadOnlyTensorSpan<T> Current => _span[_index];
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan_1.cs (26)
26: IReadOnlyTensor<ReadOnlyTensorSpan<T>, T> 30public static ReadOnlyTensorSpan<T> Empty => default; 266public ReadOnlyTensorSpan<T> this[params scoped ReadOnlySpan<NRange> ranges] 302public static bool operator ==(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) 311public static bool operator !=(in ReadOnlyTensorSpan<T> left, in ReadOnlyTensorSpan<T> right) => !(left == right); 316public static implicit operator ReadOnlyTensorSpan<T>(T[]? array) => new ReadOnlyTensorSpan<T>(array); 323public static ReadOnlyTensorSpan<T> CastUp<TDerived>(in ReadOnlyTensorSpan<TDerived> items) 386public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<nint> startIndexes) 396public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NIndex> startIndexes) 406public ReadOnlyTensorSpan<T> Slice(params scoped ReadOnlySpan<NRange> ranges) 454ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan() => this; 456ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => Slice(startIndexes); 458ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => Slice(startIndexes); 460ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => Slice(ranges); 462ReadOnlyTensorSpan<T> IReadOnlyTensor<ReadOnlyTensorSpan<T>, T>.ToDenseTensor() 464ReadOnlyTensorSpan<T> result = this; 480private readonly ReadOnlyTensorSpan<T> _span; 485internal Enumerator(ReadOnlyTensorSpan<T> span)
System\Numerics\Tensors\netcore\Tensor.cs (810)
18/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 19public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array) 22/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 23public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths) 26/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 27public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 30/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 31public static ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan<T>(this T[]? array, int start, scoped ReadOnlySpan<nint> lengths, scoped ReadOnlySpan<nint> strides) 56public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped in ReadOnlyTensorSpan<T> lengthsSource) 68public static Tensor<T> Broadcast<T>(scoped in ReadOnlyTensorSpan<T> source, scoped ReadOnlySpan<nint> lengths) 105public static void BroadcastTo<T>(in this ReadOnlyTensorSpan<T> source, in TensorSpan<T> destination) 305/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 310/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 315/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 320/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 472/// 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 475/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 476/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 478public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 487/// 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 490/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 491/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 494public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 503/// 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 506/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 509public static Tensor<bool> Equals<T>(in ReadOnlyTensorSpan<T> x, T y) 518/// 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 521/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 525public static ref readonly TensorSpan<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 536/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 540/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 541/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 543public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 551/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are equal to <paramref name="y"/>. 555/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 556/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 558public static bool EqualsAll<T>(in ReadOnlyTensorSpan<T> x, T y) 564/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 568/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 569/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 571public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 583/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are equal to <paramref name="y"/>. 587/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 590public static bool EqualsAny<T>(in ReadOnlyTensorSpan<T> x, T y) 601public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, T value) 615public static ref readonly TensorSpan<T> FilteredUpdate<T>(in this TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, scoped in ReadOnlyTensorSpan<T> values) 625/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 630/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 631/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 634public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 643/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are greater than <paramref name="y"/>. 648/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 649/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 653public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 662/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 666/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 670public static Tensor<bool> GreaterThan<T>(in ReadOnlyTensorSpan<T> x, T y) 679/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than <paramref name="y"/>. 683/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 688public static ref readonly TensorSpan<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 701/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 705public static Tensor<bool> GreaterThan<T>(T x, in ReadOnlyTensorSpan<T> y) 713/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 718public static ref readonly TensorSpan<bool> GreaterThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 724/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 728/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 729/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 731public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 739/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 743/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 744/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 746public static bool GreaterThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 750/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 754/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 755/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 757public static bool GreaterThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 763/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 767/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 768/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 770public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 782/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 786/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 789public static bool GreaterThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 793/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 797/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 800public static bool GreaterThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 806/// 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"/>. 811/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 812/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 815public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 824/// 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"/>. 829/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 830/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 834public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 843/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 847/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 851public static Tensor<bool> GreaterThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 860/// Compares the elements of a <see cref="ReadOnlyTensorSpan{T}"/> to see which elements are greater than or equal to <paramref name="y"/>. 864/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 869public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 882/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 886public static Tensor<bool> GreaterThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 894/// <param name="x"><see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 899public static ref readonly TensorSpan<bool> GreaterThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 905/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 909/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 910/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 912public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 920/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are greater than <paramref name="y"/>. 924/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 925/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 927public static bool GreaterThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 931/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are greater than <paramref name="y"/>. 935/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 936/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 938public static bool GreaterThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 944/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 948/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 949/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 951public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 963/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are greater than <paramref name="y"/>. 967/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 970public static bool GreaterThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 974/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are greater than <paramref name="x"/>. 978/// <param name="y">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 981public static bool GreaterThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 987/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 992/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 993/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 996public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1005/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1010/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1011/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1015public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1032public static Tensor<bool> LessThan<T>(in ReadOnlyTensorSpan<T> x, T y) 1050public static ref readonly TensorSpan<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1067public static Tensor<bool> LessThan<T>(T x, in ReadOnlyTensorSpan<T> y) 1080public static ref readonly TensorSpan<bool> LessThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1086/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1090/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1091/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1093public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1101/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1105/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1108public static bool LessThanAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1112/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1119public static bool LessThanAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1125/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1129/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1130/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1132public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1144/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1148/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1151public static bool LessThanAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1155/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1162public static bool LessThanAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1168/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1173/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1174/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1177public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1186/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see which elements of <paramref name="x"/> are less than <paramref name="y"/>. 1191/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1192/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1196public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1213public static Tensor<bool> LessThanOrEqual<T>(in ReadOnlyTensorSpan<T> x, T y) 1231public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<bool> destination) 1248public static Tensor<bool> LessThanOrEqual<T>(T x, in ReadOnlyTensorSpan<T> y) 1261public static ref readonly TensorSpan<bool> LessThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<bool> destination) 1267/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1271/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1272/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1274public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1282/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="x"/> are less than <paramref name="y"/>. 1286/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1289public static bool LessThanOrEqualAll<T>(in ReadOnlyTensorSpan<T> x, T y) 1293/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if all elements of <paramref name="y"/> are less than <paramref name="x"/>. 1300public static bool LessThanOrEqualAll<T>(T x, in ReadOnlyTensorSpan<T> y) 1306/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1310/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1311/// <param name="y">Second <see cref="ReadOnlyTensorSpan{T}"/> to compare against.</param> 1313public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 1325/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="x"/> are less than <paramref name="y"/>. 1329/// <param name="x">First <see cref="ReadOnlyTensorSpan{T}"/> to compare.</param> 1332public static bool LessThanOrEqualAny<T>(in ReadOnlyTensorSpan<T> x, T y) 1336/// Compares the elements of two <see cref="ReadOnlyTensorSpan{T}"/> to see if any elements of <paramref name="y"/> are less than <paramref name="y"/>. 1343public static bool LessThanOrEqualAny<T>(T x, in ReadOnlyTensorSpan<T> y) 1559public static ReadOnlyTensorSpan<T> Reshape<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped ReadOnlySpan<nint> lengths) 1623ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, strides, tensor.IsPinned); 1676/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 1678public static void ResizeTo<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1694public static Tensor<T> Reverse<T>(in ReadOnlyTensorSpan<T> tensor) 1708public static Tensor<T> ReverseDimension<T>(in ReadOnlyTensorSpan<T> tensor, int dimension) 1721public static ref readonly TensorSpan<T> Reverse<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 1733public static ref readonly TensorSpan<T> ReverseDimension<T>(scoped in ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination, int dimension) 1772public static bool SequenceEqual<T>(this scoped in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1784public static bool SequenceEqual<T>(this scoped in ReadOnlyTensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> other) 1801public static Tensor<T> SetSlice<T>(this Tensor<T> tensor, in ReadOnlyTensorSpan<T> values, params ReadOnlySpan<NRange> ranges) 1813public static ref readonly TensorSpan<T> SetSlice<T>(this in TensorSpan<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges) 1835public static Tensor<T>[] Split<T>(scoped in ReadOnlyTensorSpan<T> tensor, int splitCount, nint dimension) 2009/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove all dimensions of length 1.</param> 2010public static ReadOnlyTensorSpan<T> Squeeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor) 2019/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to remove dimension of length 1.</param> 2021public static ReadOnlyTensorSpan<T> SqueezeDimension<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2065ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, lengths[..rank], strides[..rank], tensor.IsPinned); 2165/// Creates a <see cref="string"/> representation of the <see cref="ReadOnlyTensorSpan{T}"/>."/> 2168/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> you want to represent as a string.</param> 2170public static string ToString<T>(this in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths) 2182internal static void ToString<T>(in ReadOnlyTensorSpan<T> tensor, ReadOnlySpan<nint> maximumLengths, StringBuilder sb, int indentLevel = 0) 2202ReadOnlyTensorSpan<T> tmpTensor = new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref tensor._reference, i * tensor.Strides[0]), tmpShape); 2309/// <param name="tensor">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2311public static bool TryBroadcastTo<T>(in this ReadOnlyTensorSpan<T> tensor, in TensorSpan<T> destination) 2400/// <param name="tensor">The <see cref="ReadOnlyTensorSpan{T}"/> to add a dimension of length 1.</param> 2402public static ReadOnlyTensorSpan<T> Unsqueeze<T>(this scoped in ReadOnlyTensorSpan<T> tensor, int dimension) 2428ReadOnlyTensorSpan<T> output = new ReadOnlyTensorSpan<T>(ref tensor._reference, tensor._shape.LinearLength, newLengths, newStrides, tensor.IsPinned); 2440/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the abs of.</param> 2441public static Tensor<T> Abs<T>(in ReadOnlyTensorSpan<T> x) 2450/// Takes the absolute value of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2454public static ref readonly TensorSpan<T> Abs<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2467/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2468public static Tensor<T> Acos<T>(in ReadOnlyTensorSpan<T> x) 2481public static ref readonly TensorSpan<T> Acos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2492/// 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. 2494/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2495public static Tensor<T> Acosh<T>(in ReadOnlyTensorSpan<T> x) 2508public static ref readonly TensorSpan<T> Acosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2521/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2522public static Tensor<T> AcosPi<T>(in ReadOnlyTensorSpan<T> x) 2533/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2535public static ref readonly TensorSpan<T> AcosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2548/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2549/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2550public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2561/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2563public static Tensor<T> Add<T>(in ReadOnlyTensorSpan<T> x, T y) 2572/// Adds each element of <paramref name="x"/> to each element of <paramref name="y"/> and returns a new <see cref="ReadOnlyTensorSpan{T}"/> with the result. 2574/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2575/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2577public static ref readonly TensorSpan<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2588/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to add.</param> 2591public static ref readonly TensorSpan<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2602/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2604/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2605public static Tensor<T> Asin<T>(in ReadOnlyTensorSpan<T> x) 2614/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2616/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2618public static ref readonly TensorSpan<T> Asin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2629/// 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. 2631/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2632public static Tensor<T> Asinh<T>(in ReadOnlyTensorSpan<T> x) 2641/// 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. 2643/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2645public static ref readonly TensorSpan<T> Asinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2656/// 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. 2658/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2659public static Tensor<T> AsinPi<T>(in ReadOnlyTensorSpan<T> x) 2668/// 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. 2670/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 2672public static ref readonly TensorSpan<T> AsinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2683/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2685/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2686public static Tensor<T> Atan<T>(in ReadOnlyTensorSpan<T> x) 2695/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2697/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 2699public static ref readonly TensorSpan<T> Atan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2710/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2712/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2713/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2714public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2723/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2725/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2726/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2728public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2737/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2739/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2740/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2741public static Tensor<T> Atan2<T>(in ReadOnlyTensorSpan<T> x, T y) 2750/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2752/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2753/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2755public static ref readonly TensorSpan<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2764/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2766/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2767/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2768public static Tensor<T> Atan2<T>(T x, in ReadOnlyTensorSpan<T> y) 2777/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2779/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2780/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2782public static ref readonly TensorSpan<T> Atan2<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2793/// 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. 2795/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2796/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2797public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2806/// 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. 2808/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2809/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2811public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2820/// 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. 2822/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2823/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2824public static Tensor<T> Atan2Pi<T>(in ReadOnlyTensorSpan<T> x, T y) 2833/// 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. 2835/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2836/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2838public static ref readonly TensorSpan<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 2847/// 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. 2849/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2850/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2851public static Tensor<T> Atan2Pi<T>(T x, in ReadOnlyTensorSpan<T> y) 2860/// 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. 2862/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2863/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2865public static ref readonly TensorSpan<T> Atan2Pi<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2876/// 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. 2878/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2879public static Tensor<T> Atanh<T>(in ReadOnlyTensorSpan<T> x) 2888/// 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. 2890/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2892public static ref readonly TensorSpan<T> Atanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2903/// 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. 2905/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 2906public static Tensor<T> AtanPi<T>(in ReadOnlyTensorSpan<T> x) 2915/// 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. 2917/// <param name="x">The input<see cref="ReadOnlyTensorSpan{T}"/>.</param> 2919public static ref readonly TensorSpan<T> AtanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 2934public static T Average<T>(scoped in ReadOnlyTensorSpan<T> x) 2947/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2949/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2950/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2951public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 2960/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2962/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2963/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2965public static ref readonly TensorSpan<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 2974/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 2976/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2978public static Tensor<T> BitwiseAnd<T>(in ReadOnlyTensorSpan<T> x, T y) 2987/// Computes the element-wise bitwise and of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 2989/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 2992public static ref readonly TensorSpan<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3003/// Computes the element-wise bitwise of of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3005/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3006/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3007public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3016/// Computes the element-wise bitwise of of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3018/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3019/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3021public static ref readonly TensorSpan<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3030/// Computes the element-wise bitwise or of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3032/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3034public static Tensor<T> BitwiseOr<T>(in ReadOnlyTensorSpan<T> x, T y) 3043/// Computes the element-wise bitwise or of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3045/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3048public static ref readonly TensorSpan<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3059/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3061/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3062public static Tensor<T> Cbrt<T>(in ReadOnlyTensorSpan<T> x) 3071/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3073/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3075public static ref readonly TensorSpan<T> Cbrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3086/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3088/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3089public static Tensor<T> Ceiling<T>(in ReadOnlyTensorSpan<T> x) 3098/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3100/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3102public static ref readonly TensorSpan<T> Ceiling<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3113/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3116/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3117public static Tensor<TTo> ConvertChecked<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3132public static ref readonly TensorSpan<TTo> ConvertChecked<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3144/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3147/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3148public static Tensor<TTo> ConvertSaturating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3163public static ref readonly TensorSpan<TTo> ConvertSaturating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3175/// Copies <paramref name="source"/> to a new <see cref="ReadOnlyTensorSpan{TTO}"/> converting each <typeparamref name="TFrom"/> 3178/// <param name="source">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3179public static Tensor<TTo> ConvertTruncating<TFrom, TTo>(in ReadOnlyTensorSpan<TFrom> source) 3194public static ref readonly TensorSpan<TTo> ConvertTruncating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in TensorSpan<TTo> destination) 3208/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3210public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, T sign) 3221/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3222/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3223public static Tensor<T> CopySign<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> sign) 3234/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3237public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, T sign, in TensorSpan<T> destination) 3248/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3249/// <param name="sign">The <see cref="ReadOnlyTensorSpan{T}"/> with the associated signs.</param> 3251public static ref readonly TensorSpan<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> sign, in TensorSpan<T> destination) 3262/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3264/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3265public static Tensor<T> Cos<T>(in ReadOnlyTensorSpan<T> x) 3274/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3276/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3278public static ref readonly TensorSpan<T> Cos<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3289/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3291/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3292public static Tensor<T> Cosh<T>(in ReadOnlyTensorSpan<T> x) 3301/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3303/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the cosine of.</param> 3305public static ref readonly TensorSpan<T> Cosh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3318/// <param name="x">The first <see cref="ReadOnlyTensorSpan{T}"/></param> 3319/// <param name="y">The second <see cref="ReadOnlyTensorSpan{T}"/></param> 3320public static T CosineSimilarity<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3332/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3345public static Tensor<T> CosPi<T>(in ReadOnlyTensorSpan<T> x) 3354/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/></param> 3368public static ref readonly TensorSpan<T> CosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3381/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3382public static Tensor<T> DegreesToRadians<T>(in ReadOnlyTensorSpan<T> x) 3393/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3395public static ref readonly TensorSpan<T> DegreesToRadians<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3408/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3409/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3410public static T Distance<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y) 3424/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3426public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, T y) 3438/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3439public static Tensor<T> Divide<T>(T x, in ReadOnlyTensorSpan<T> y) 3449/// a new <see cref="ReadOnlyTensorSpan{T}"/> with the result. 3451/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to be divided.</param> 3452/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3453public static Tensor<T> Divide<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3464/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3467public static ref readonly TensorSpan<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3479/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3481public static ref readonly TensorSpan<T> Divide<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3493/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to be divided.</param> 3494/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> divisor.</param> 3496public static ref readonly TensorSpan<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3509/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3510/// <param name="y">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3511public static T Dot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3525/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3526public static Tensor<T> Exp<T>(in ReadOnlyTensorSpan<T> x) 3537/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3539public static ref readonly TensorSpan<T> Exp<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3552/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3553public static Tensor<T> Exp10<T>(in ReadOnlyTensorSpan<T> x) 3564/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3566public static ref readonly TensorSpan<T> Exp10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3577/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3578public static Tensor<T> Exp10M1<T>(in ReadOnlyTensorSpan<T> x) 3587/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3589public static ref readonly TensorSpan<T> Exp10M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3600/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3601public static Tensor<T> Exp2<T>(in ReadOnlyTensorSpan<T> x) 3610/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3612public static ref readonly TensorSpan<T> Exp2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3623/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3624public static Tensor<T> Exp2M1<T>(in ReadOnlyTensorSpan<T> x) 3633/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3635public static ref readonly TensorSpan<T> Exp2M1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3646/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3647public static Tensor<T> ExpM1<T>(in ReadOnlyTensorSpan<T> x) 3656/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3658public static ref readonly TensorSpan<T> ExpM1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3669/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3670public static Tensor<T> Floor<T>(in ReadOnlyTensorSpan<T> x) 3679/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3681public static ref readonly TensorSpan<T> Floor<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3695/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3696/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3697public static Tensor<T> Hypot<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3709/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3710/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3712public static ref readonly TensorSpan<T> Hypot<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3724/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3725/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3726public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3736/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3737/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3739public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3748/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3749/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3750public static Tensor<T> Ieee754Remainder<T>(in ReadOnlyTensorSpan<T> x, T y) 3759/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3760/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3762public static ref readonly TensorSpan<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3771/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3772/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3773public static Tensor<T> Ieee754Remainder<T>(T x, in ReadOnlyTensorSpan<T> y) 3782/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3783/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3785public static ref readonly TensorSpan<T> Ieee754Remainder<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3796/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3797public static Tensor<int> ILogB<T>(in ReadOnlyTensorSpan<T> x) 3806/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3808public static ref readonly TensorSpan<int> ILogB<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<int> destination) 3819/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3820public static nint IndexOfMax<T>(scoped in ReadOnlyTensorSpan<T> x) 3831/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3832public static nint IndexOfMaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3842/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3843public static nint IndexOfMin<T>(scoped in ReadOnlyTensorSpan<T> x) 3855/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3856public static nint IndexOfMinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 3868/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3869public static Tensor<T> LeadingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 3880/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 3882public static ref readonly TensorSpan<T> LeadingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3893/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 3895/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3896public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x) 3905/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 3907/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 3909public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3920public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 3932public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 3943public static Tensor<T> Log<T>(in ReadOnlyTensorSpan<T> x, T y) 3955public static ref readonly TensorSpan<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 3966/// 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. 3968/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3969public static Tensor<T> Log10<T>(in ReadOnlyTensorSpan<T> x) 3978/// 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. 3980/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3982public static ref readonly TensorSpan<T> Log10<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 3993/// 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. 3995/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 3996public static Tensor<T> Log10P1<T>(in ReadOnlyTensorSpan<T> x) 4005/// 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. 4007/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 10 logarithm of.</param> 4009public static ref readonly TensorSpan<T> Log10P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4020/// 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. 4022/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4023public static Tensor<T> Log2<T>(in ReadOnlyTensorSpan<T> x) 4032/// 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. 4034/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4036public static ref readonly TensorSpan<T> Log2<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4047/// 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. 4049/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4050public static Tensor<T> Log2P1<T>(in ReadOnlyTensorSpan<T> x) 4059/// 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. 4061/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the base 2 logarithm of.</param> 4063public static ref readonly TensorSpan<T> Log2P1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4074/// 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. 4076/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4077public static Tensor<T> LogP1<T>(in ReadOnlyTensorSpan<T> x) 4086/// 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. 4088/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the natural logarithm of.</param> 4090public static ref readonly TensorSpan<T> LogP1<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4101/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4102public static T Max<T>(scoped in ReadOnlyTensorSpan<T> x) 4118public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4130public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4141public static Tensor<T> Max<T>(in ReadOnlyTensorSpan<T> x, T y) 4153public static ref readonly TensorSpan<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4164/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4165public static T MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4181public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4193public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4204public static Tensor<T> MaxMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4216public static ref readonly TensorSpan<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4227/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4228public static T MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4244public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4256public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4267public static Tensor<T> MaxMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4279public static ref readonly TensorSpan<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4290/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4291public static T MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4307public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4319public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4330public static Tensor<T> MaxNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4342public static ref readonly TensorSpan<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4353/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4354public static T Min<T>(scoped in ReadOnlyTensorSpan<T> x) 4370public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4382public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4393public static Tensor<T> Min<T>(in ReadOnlyTensorSpan<T> x, T y) 4405public static ref readonly TensorSpan<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4416/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4417public static T MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x) 4433public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4445public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4456public static Tensor<T> MinMagnitude<T>(in ReadOnlyTensorSpan<T> x, T y) 4468public static ref readonly TensorSpan<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4479/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4480public static T MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4496public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4508public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4519public static Tensor<T> MinMagnitudeNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4531public static ref readonly TensorSpan<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4542/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4543public static T MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x) 4559public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4571public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4582public static Tensor<T> MinNumber<T>(in ReadOnlyTensorSpan<T> x, T y) 4594public static ref readonly TensorSpan<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4607/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/></param> 4609public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, T y) 4621/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4622/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4623public static Tensor<T> Multiply<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4634/// <param name="x">Input <see cref="ReadOnlyTensorSpan{T}"/></param> 4637public static ref readonly TensorSpan<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4649/// <param name="x">Left <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4650/// <param name="y">Right <see cref="ReadOnlyTensorSpan{T}"/> for multiplication.</param> 4652public static ref readonly TensorSpan<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4663/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4664public static Tensor<T> Negate<T>(in ReadOnlyTensorSpan<T> x) 4673/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4675public static ref readonly TensorSpan<T> Negate<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4686/// Takes the norm of the <see cref="ReadOnlyTensorSpan{T}"/> and returns the result. 4688/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the norm of.</param> 4689public static T Norm<T>(scoped in ReadOnlyTensorSpan<T> x) 4700/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4701public static Tensor<T> OnesComplement<T>(in ReadOnlyTensorSpan<T> x) 4710/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4712public static ref readonly TensorSpan<T> OnesComplement<T>(scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4723/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4724public static Tensor<T> PopCount<T>(in ReadOnlyTensorSpan<T> x) 4733/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/></param> 4735public static ref readonly TensorSpan<T> PopCount<T>(scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4746/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4747/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4748public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 4757/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4758/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4760public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4769/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4771public static Tensor<T> Pow<T>(in ReadOnlyTensorSpan<T> x, T y) 4780/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4781/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4783public static ref readonly TensorSpan<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 4792/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4794public static Tensor<T> Pow<T>(T x, in ReadOnlyTensorSpan<T> y) 4803/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4804/// <param name="y">The second input <see cref="ReadOnlyTensorSpan{T}"/></param> 4806public static ref readonly TensorSpan<T> Pow<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 4817/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4818public static T Product<T>(scoped in ReadOnlyTensorSpan<T> x) 4829/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4830public static Tensor<T> RadiansToDegrees<T>(in ReadOnlyTensorSpan<T> x) 4839/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4841public static ref readonly TensorSpan<T> RadiansToDegrees<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4852/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4853public static Tensor<T> Reciprocal<T>(in ReadOnlyTensorSpan<T> x) 4862/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4864public static ref readonly TensorSpan<T> Reciprocal<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4877public static Tensor<T> RootN<T>(in ReadOnlyTensorSpan<T> x, int n) 4889public static ref readonly TensorSpan<T> RootN<T>(scoped in ReadOnlyTensorSpan<T> x, int n, in TensorSpan<T> destination) 4903public static Tensor<T> RotateLeft<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4916public static ref readonly TensorSpan<T> RotateLeft<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 4930public static Tensor<T> RotateRight<T>(in ReadOnlyTensorSpan<T> x, int rotateAmount) 4943public static ref readonly TensorSpan<T> RotateRight<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in TensorSpan<T> destination) 4954/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4955public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x) 4964/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4966public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 4975/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4978public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode) 4987/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 4991public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode, in TensorSpan<T> destination) 5000/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5002public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, int digits) 5011/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5014public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, in TensorSpan<T> destination) 5023/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5025public static Tensor<T> Round<T>(in ReadOnlyTensorSpan<T> x, MidpointRounding mode) 5034/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5037public static ref readonly TensorSpan<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, MidpointRounding mode, in TensorSpan<T> destination) 5048/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5049public static Tensor<T> Sigmoid<T>(in ReadOnlyTensorSpan<T> x) 5058/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5060public static ref readonly TensorSpan<T> Sigmoid<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5071/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5073/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5074public static Tensor<T> Sin<T>(in ReadOnlyTensorSpan<T> x) 5083/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 5085/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5087public static ref readonly TensorSpan<T> Sin<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5098/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5099public static Tensor<T> Sinh<T>(in ReadOnlyTensorSpan<T> x) 5108/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5110public static ref readonly TensorSpan<T> Sinh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5121/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5122public static Tensor<T> SinPi<T>(in ReadOnlyTensorSpan<T> x) 5131/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5133public static ref readonly TensorSpan<T> SinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5144/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5145public static Tensor<T> SoftMax<T>(in ReadOnlyTensorSpan<T> x) 5157/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5159public static ref readonly TensorSpan<T> SoftMax<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5173/// Takes the square root of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5175/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 5176public static Tensor<T> Sqrt<T>(in ReadOnlyTensorSpan<T> x) 5187/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the square root of.</param> 5189public static ref readonly TensorSpan<T> Sqrt<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5204public static T StdDev<T>(in ReadOnlyTensorSpan<T> x) 5220/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5222public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, T y) 5234/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> of values to subtract.</param> 5235public static Tensor<T> Subtract<T>(T x, in ReadOnlyTensorSpan<T> y) 5246/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> with values to be subtracted from.</param> 5247/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> with values to subtract.</param> 5248public static Tensor<T> Subtract<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5259/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> with values to be subtracted from.</param> 5262public static ref readonly TensorSpan<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination) 5274/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/> values to subtract.</param> 5276public static ref readonly TensorSpan<T> Subtract<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5287/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> of values to be subtracted from.</param> 5288/// <param name="y">The <see cref="ReadOnlyTensorSpan{T}"/>of values to subtract.</param> 5290public static ref readonly TensorSpan<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5305public static T Sum<T>(scoped in ReadOnlyTensorSpan<T> x) 5320internal static T SumOfSquares<T>(scoped in ReadOnlyTensorSpan<T> x) 5331/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5332public static Tensor<T> Tan<T>(in ReadOnlyTensorSpan<T> x) 5341/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5343public static ref readonly TensorSpan<T> Tan<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5354/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5355public static Tensor<T> Tanh<T>(in ReadOnlyTensorSpan<T> x) 5364/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5366public static ref readonly TensorSpan<T> Tanh<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5377/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5378public static Tensor<T> TanPi<T>(in ReadOnlyTensorSpan<T> x) 5387/// <param name="x">The <see cref="ReadOnlyTensorSpan{T}"/> to take the sin of.</param> 5389public static ref readonly TensorSpan<T> TanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5400/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5401public static Tensor<T> TrailingZeroCount<T>(in ReadOnlyTensorSpan<T> x) 5410/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5412public static ref readonly TensorSpan<T> TrailingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5423/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5424public static Tensor<T> Truncate<T>(in ReadOnlyTensorSpan<T> x) 5433/// <param name="x">The input <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5435public static ref readonly TensorSpan<T> Truncate<T>(scoped in ReadOnlyTensorSpan<T> x, in TensorSpan<T> destination) 5446/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5447/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5448public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, in ReadOnlyTensorSpan<T> y) 5457/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5458/// <param name="y">The right <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5460public static ref readonly TensorSpan<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in TensorSpan<T> destination) 5469/// Computes the element-wise Xor of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="Tensor{T}"/> with the result. 5471/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5473public static Tensor<T> Xor<T>(in ReadOnlyTensorSpan<T> x, T y) 5482/// Computes the element-wise Xor of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="TensorSpan{T}"/> with the result. 5484/// <param name="x">The left <see cref="ReadOnlyTensorSpan{T}"/>.</param> 5487public static ref readonly TensorSpan<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in TensorSpan<T> destination)
System\Numerics\Tensors\netcore\Tensor_1.cs (6)
133/// <inheritdoc cref="TensorSpan{T}.implicit operator ReadOnlyTensorSpan{T}(in TensorSpan{T})" /> 134public static implicit operator ReadOnlyTensorSpan<T>(Tensor<T> tensor) => tensor.AsReadOnlyTensorSpan(); 137public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref Unsafe.Add(ref MemoryMarshal.GetArrayDataReference(_values), _start), in _shape); 140public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 143public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 146public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges);
System\Numerics\Tensors\netcore\TensorOperation.cs (27)
29public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y) 61public static bool Invoke<TOperation, TArg>(in ReadOnlyTensorSpan<TArg> x, TArg y) 106public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 127public static void ReverseInvoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 156public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in Span<TResult> destination) 176public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, ref TResult destination) 194public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 219public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 223public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, ref TResult result) 248public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, in TensorSpan<TResult> destination) 252public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, int y, in TensorSpan<TResult> destination) 255public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, in TensorSpan<TResult> destination) 277public static void Invoke<TOperation, TArg, TResult>(TArg x, in ReadOnlyTensorSpan<TArg> y, in TensorSpan<TResult> destination) 299public static void Invoke<TOperation, TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, TArg2 y, ref TResult result) 318public static void Invoke<TOperation, TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, TArg y, ref TResult result) 321public static void ValidateCompatibility<TArg>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlySpan<nint> lengths) 328public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TResult> y) 335public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in TensorSpan<TResult> destination) 342public static void ValidateCompatibility<TArg1, TArg2, TResult>(in ReadOnlyTensorSpan<TArg1> x, in ReadOnlyTensorSpan<TArg2> y, in TensorSpan<TResult> destination) 359public static void ValidateCompatibility<TArg, TResult>(in ReadOnlyTensorSpan<TArg> x, in ReadOnlyTensorSpan<TArg> y, out Tensor<TResult> destination)
System\Numerics\Tensors\netcore\TensorSpan_1.cs (26)
35/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[])" /> 47/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint})" /> 52/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 64/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T[], int, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 76/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T})" /> 84/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint})" /> 88/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(ReadOnlySpan{T}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 96/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array)"/> 108/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(Array, ReadOnlySpan{int}, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 120/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint)" /> 128/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint})" /> 133/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ReadOnlyTensorSpan(T*, nint, ReadOnlySpan{nint}, ReadOnlySpan{nint})" /> 198/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator ==(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 203/// <inheritdoc cref="ReadOnlyTensorSpan{T}.operator !=(in ReadOnlyTensorSpan{T}, in ReadOnlyTensorSpan{T})" /> 214public static implicit operator ReadOnlyTensorSpan<T>(scoped in TensorSpan<T> tensor) => 218public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan() => new ReadOnlyTensorSpan<T>(ref _reference, in _shape); 221public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<nint> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 224public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NIndex> startIndexes) => AsReadOnlyTensorSpan().Slice(startIndexes); 227public ReadOnlyTensorSpan<T> AsReadOnlyTensorSpan(params scoped ReadOnlySpan<NRange> ranges) => AsReadOnlyTensorSpan().Slice(ranges); 241/// <inheritdoc cref="ReadOnlyTensorSpan{T}.Equals(object?)" /> 265/// <inheritdoc cref="ReadOnlyTensorSpan{T}.GetHashCode" /> 311/// <inheritdoc cref="ReadOnlyTensorSpan{T}.ToString" />
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
19public TensorSpanDebugView(ReadOnlyTensorSpan<T> span)