1 instantiation of TensorSpan
System.Numerics.Tensors (1)
System\Numerics\Tensors\netcore\TensorSpan.cs (1)
652
public static implicit operator TensorSpan<T>(T[]? array) => new
TensorSpan
<T>(array);
478 references to TensorSpan
System.Numerics.Tensors (478)
System\Numerics\Tensors\netcore\ITensor.cs (8)
96
/// <returns>The converted <see cref="
TensorSpan
{T}"/>.</returns>
97
TensorSpan
<T> AsTensorSpan();
103
/// <returns>The converted <see cref="
TensorSpan
{T}"/>.</returns>
104
TensorSpan
<T> AsTensorSpan(params scoped ReadOnlySpan<nint> start);
110
/// <returns>The converted <see cref="
TensorSpan
{T}"/>.</returns>
111
TensorSpan
<T> AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndex);
117
/// <returns>The converted <see cref="
TensorSpan
{T}"/>.</returns>
118
TensorSpan
<T> AsTensorSpan(params scoped ReadOnlySpan<NRange> range);
System\Numerics\Tensors\netcore\ReadOnlyTensorSpan.cs (7)
370
/// Gets a value indicating whether this <see cref="
TensorSpan
{T}"/> is empty.
376
/// Gets the length of each dimension in this <see cref="
TensorSpan
{T}"/>.
382
/// Gets the rank, or number of dimensions, of this <see cref="
TensorSpan
{T}"/>.
387
/// Gets the strides of this <see cref="
TensorSpan
{T}"/>.
544
TensorSpan
<T> destinationSlice = destination.Slice(tempLengths);
600
TensorSpan
<T> destinationSlice = destination.Slice(tempLengths);
622
/// Defines an implicit conversion of an array to a <see cref="
TensorSpan
{T}"/>.
System\Numerics\Tensors\netcore\Tensor.cs (23)
236
TensorSpan
<T> srcSpan;
377
/// Defines an implicit conversion of a <see cref="Tensor{T}"/> to a <see cref="
TensorSpan
{T}"/>.
379
public static implicit operator
TensorSpan
<T>(Tensor<T> value) => new TensorSpan<T>(ref MemoryMarshal.GetArrayDataReference(value._values), value._lengths, value._strides, value._flattenedLength);
382
/// Defines an implicit conversion of a <see cref="Tensor{T}"/> to a <see cref="
TensorSpan
{T}"/>.
387
/// Converts this <see cref="Tensor{T}"/> to a <see cref="
TensorSpan
{T}"/> pointing to the same backing memory."/>
389
/// <returns><see cref="
TensorSpan
{T}"/></returns>
390
public
TensorSpan
<T> AsTensorSpan() => new TensorSpan<T>(ref MemoryMarshal.GetArrayDataReference(_values), _lengths, _strides, _flattenedLength);
393
/// Converts this <see cref="Tensor{T}"/> to a <see cref="
TensorSpan
{T}"/> pointing to the same backing memory based on the provided ranges."/>
395
/// <param name="start">The ranges you want in the <see cref="
TensorSpan
{T}"/>.</param>
396
/// <returns><see cref="
TensorSpan
{T}"/> based on the provided ranges.</returns>
397
public
TensorSpan
<T> AsTensorSpan(params scoped ReadOnlySpan<NRange> start) => AsTensorSpan().Slice(start);
400
/// Converts this <see cref="Tensor{T}"/> to a <see cref="
TensorSpan
{T}"/> pointing to the same backing memory based on the provided start locations."/>
402
/// <param name="start">The start location you want in the <see cref="
TensorSpan
{T}"/>.</param>
403
/// <returns><see cref="
TensorSpan
{T}"/> based on the provided ranges.</returns>
404
public
TensorSpan
<T> AsTensorSpan(params scoped ReadOnlySpan<nint> start) => Slice(start);
407
/// Converts this <see cref="Tensor{T}"/> to a <see cref="
TensorSpan
{T}"/> pointing to the same backing memory based on the provided start indexes."/>
409
/// <param name="startIndex">The ranges you want in the <see cref="
TensorSpan
{T}"/>.</param>
410
/// <returns><see cref="
TensorSpan
{T}"/> based on the provided ranges.</returns>
411
public
TensorSpan
<T> AsTensorSpan(params scoped ReadOnlySpan<NIndex> startIndex) => AsTensorSpan().Slice(startIndex);
465
TensorSpan
<T> s = AsTensorSpan(start);
520
public void CopyTo(
TensorSpan
<T> destination) => AsTensorSpan().CopyTo(destination);
536
public bool TryCopyTo(
TensorSpan
<T> destination) => AsTensorSpan().TryCopyTo(destination);
668
/// Creates a <see cref="string"/> representation of the <see cref="
TensorSpan
{T}"/>."/>
System\Numerics\Tensors\netcore\Tensor.Factory.cs (8)
182
/// Fills the given <see cref="
TensorSpan
{T}"/> with random data in a Gaussian normal distribution. <see cref="System.Random"/>
186
/// <param name="destination">The destination <see cref="
TensorSpan
{T}"/> where the data will be stored.</param>
189
public static ref readonly
TensorSpan
<T> FillGaussianNormalDistribution<T>(in
TensorSpan
<T> destination, Random? random = null) where T : IFloatingPoint<T>
199
/// Fills the given <see cref="
TensorSpan
{T}"/> with random data in a uniform distribution. <see cref="System.Random"/>
203
/// <param name="destination">The destination <see cref="
TensorSpan
{T}"/> where the data will be stored.</param>
206
public static ref readonly
TensorSpan
<T> FillUniformDistribution<T>(in
TensorSpan
<T> destination, Random? random = null) where T : IFloatingPoint<T>
System\Numerics\Tensors\netcore\TensorExtensions.cs (400)
33
/// <param name="lengths">The shape for the <see cref="
TensorSpan
{T}"/></param>
44
/// <param name="lengths">The shape for the <see cref="
TensorSpan
{T}"/></param>
46
public static
TensorSpan
<T> AsTensorSpan<T>(this T[]? array, params scoped ReadOnlySpan<nint> lengths) => new(array, 0, lengths, default);
53
/// <param name="x">The <see cref="
TensorSpan
{T}"/> to take the mean of.</param>
96
/// <param name="source">Input <see cref="
TensorSpan
{T}"/>.</param>
98
public static void BroadcastTo<T>(this Tensor<T> source, in
TensorSpan
<T> destination)
111
/// <param name="source">Input <see cref="
TensorSpan
{T}"/>.</param>
112
/// <param name="destination">Other <see cref="
TensorSpan
{T}"/> to make shapes broadcastable.</param>
113
public static void BroadcastTo<T>(in this
TensorSpan
<T> source, in
TensorSpan
<T> destination)
126
/// <param name="source">Input <see cref="
TensorSpan
{T}"/>.</param>
128
public static void BroadcastTo<T>(in this ReadOnlyTensorSpan<T> source, in
TensorSpan
<T> destination)
144
/// <param name="input">Input <see cref="
TensorSpan
{T}"/>.</param>
147
internal static
TensorSpan
<T> LazyBroadcast<T>(in
TensorSpan
<T> input, ReadOnlySpan<nint> shape)
176
TensorSpan
<T> output = new TensorSpan<T>(ref input._reference, shape, strides, input._shape._memoryLength);
187
/// <param name="input">Input <see cref="
TensorSpan
{T}"/>.</param>
219
TensorSpan
<T> output = new TensorSpan<T>(ref input._reference, shape, strides, input._shape._memoryLength);
339
public static ref readonly
TensorSpan
<T> Concatenate<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in
TensorSpan
<T> destination)
351
public static ref readonly
TensorSpan
<T> ConcatenateOnDimension<T>(int dimension, scoped ReadOnlySpan<Tensor<T>> tensors, in
TensorSpan
<T> destination)
449
/// before they are compared. It returns a <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not."/>
453
/// <returns>A <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not.</returns>
474
/// before they are compared. It returns a <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not."/>
479
/// <returns>A <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not.</returns>
480
public static ref readonly
TensorSpan
<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
530
/// before they are compared. It returns a <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not."/>
534
/// <returns>A <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not.</returns>
545
/// before they are compared. It returns a <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not."/>
550
/// <returns>A <see cref="
TensorSpan
{Boolean}"/> where the value is true if the elements are equal and false if they are not.</returns>
551
public static ref readonly
TensorSpan
<bool> Equals<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<bool> destination)
761
public static ref readonly
TensorSpan
<T> FilteredUpdate<T>(in this
TensorSpan
<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, T value)
787
public static ref readonly
TensorSpan
<T> FilteredUpdate<T>(in this
TensorSpan
<T> tensor, scoped in ReadOnlyTensorSpan<bool> filter, scoped in ReadOnlyTensorSpan<T> values)
851
public static ref readonly
TensorSpan
<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
926
public static ref readonly
TensorSpan
<bool> GreaterThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<bool> destination)
986
public static ref readonly
TensorSpan
<bool> GreaterThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
1060
public static ref readonly
TensorSpan
<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
1135
public static ref readonly
TensorSpan
<bool> GreaterThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<bool> destination)
1195
public static ref readonly
TensorSpan
<bool> GreaterThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
1763
public static ref readonly
TensorSpan
<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
1838
public static ref readonly
TensorSpan
<bool> LessThan<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<bool> destination)
1898
public static ref readonly
TensorSpan
<bool> LessThan<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
1972
public static ref readonly
TensorSpan
<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
2047
public static ref readonly
TensorSpan
<bool> LessThanOrEqual<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<bool> destination)
2107
public static ref readonly
TensorSpan
<bool> LessThanOrEqual<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<bool> destination)
2655
TensorSpan
<T> ospan;
2656
TensorSpan
<T> ispan;
2791
/// <param name="tensor"><see cref="
TensorSpan
{T}"/> you want to reshape.</param>
2793
public static
TensorSpan
<T> Reshape<T>(in this
TensorSpan
<T> tensor, params scoped ReadOnlySpan<nint> lengths)
2853
TensorSpan
<T> output = new TensorSpan<T>(ref tensor._reference, arrLengths, strides, tensor._shape._memoryLength);
2862
/// <param name="tensor"><see cref="
TensorSpan
{T}"/> you want to reshape.</param>
2954
/// <param name="destination">Destination <see cref="
TensorSpan
{T}"/> with the desired new shape.</param>
2955
public static void ResizeTo<T>(scoped in Tensor<T> tensor, in
TensorSpan
<T> destination)
2969
/// <param name="tensor">Input <see cref="
TensorSpan
{T}"/>.</param>
2970
/// <param name="destination">Destination <see cref="
TensorSpan
{T}"/> with the desired new shape.</param>
2971
public static void ResizeTo<T>(scoped in
TensorSpan
<T> tensor, in
TensorSpan
<T> destination)
2986
/// <param name="destination">Destination <see cref="
TensorSpan
{T}"/> with the desired new shape.</param>
2987
public static void ResizeTo<T>(scoped in ReadOnlyTensorSpan<T> tensor, in
TensorSpan
<T> destination)
3028
/// <param name="tensor">Input <see cref="
TensorSpan
{T}"/>.</param>
3030
public static ref readonly
TensorSpan
<T> Reverse<T>(scoped in ReadOnlyTensorSpan<T> tensor, in
TensorSpan
<T> destination)
3039
/// <param name="tensor">Input <see cref="
TensorSpan
{T}"/>.</param>
3042
public static ref readonly
TensorSpan
<T> ReverseDimension<T>(scoped in ReadOnlyTensorSpan<T> tensor, in
TensorSpan
<T> destination, int dimension)
3113
public static bool SequenceEqual<T>(this scoped in
TensorSpan
<T> tensor, scoped in ReadOnlyTensorSpan<T> other)
3144
SetSlice((
TensorSpan
<T>)tensor, values, ranges);
3155
public static ref readonly
TensorSpan
<T> SetSlice<T>(this in
TensorSpan
<T> tensor, scoped in ReadOnlyTensorSpan<T> values, params scoped ReadOnlySpan<NRange> ranges)
3157
TensorSpan
<T> srcSpan;
3235
TensorSpan
<T> oslice = outputs[i].AsTensorSpan().Slice(outputs[i]._lengths);
3317
/// <param name="tensor">The <see cref="
TensorSpan
{T}"/> to remove all dimensions of length 1.</param>
3318
public static
TensorSpan
<T> Squeeze<T>(in this
TensorSpan
<T> tensor)
3327
/// <param name="tensor">The <see cref="
TensorSpan
{T}"/> to remove dimension of length 1.</param>
3329
public static
TensorSpan
<T> SqueezeDimension<T>(in this
TensorSpan
<T> tensor, int dimension)
3469
public static ref readonly
TensorSpan
<T> Stack<T>(scoped in ReadOnlySpan<Tensor<T>> tensors, in
TensorSpan
<T> destination)
3480
public static ref readonly
TensorSpan
<T> StackAlongDimension<T>(scoped ReadOnlySpan<Tensor<T>> tensors, in
TensorSpan
<T> destination, int dimension)
3507
/// <param name="x">The <see cref="
TensorSpan
{T}"/> to take the standard deviation of.</param>
3525
/// Creates a <see cref="string"/> representation of the <see cref="
TensorSpan
{T}"/>."/>
3527
/// <param name="tensor">The <see cref="
TensorSpan
{T}"/> you want to represent as a string.</param>
3530
public static string ToString<T>(this in
TensorSpan
<T> tensor, params ReadOnlySpan<nint> maximumLengths) => ((ReadOnlyTensorSpan<T>)tensor).ToString(maximumLengths);
3613
/// <param name="destination">Destination <see cref="
TensorSpan
{T}"/>.</param>
3614
public static bool TryBroadcastTo<T>(this Tensor<T> tensor, in
TensorSpan
<T> destination)
3623
/// <param name="tensor">Input <see cref="
TensorSpan
{T}"/>.</param>
3624
/// <param name="destination">Destination <see cref="
TensorSpan
{T}"/>.</param>
3625
public static bool TryBroadcastTo<T>(in this
TensorSpan
<T> tensor, in
TensorSpan
<T> destination)
3635
/// <param name="destination">Destination <see cref="
TensorSpan
{T}"/>.</param>
3636
public static bool TryBroadcastTo<T>(in this ReadOnlyTensorSpan<T> tensor, in
TensorSpan
<T> destination)
3678
/// <param name="tensor">The <see cref="
TensorSpan
{T}"/> to add a dimension of length 1.</param>
3680
public static
TensorSpan
<T> Unsqueeze<T>(in this
TensorSpan
<T> tensor, int dimension)
3739
/// Takes the absolute value of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
3741
/// <param name="x">The <see cref="
TensorSpan
{T}"/> to take the abs of.</param>
3742
/// <param name="destination">The <see cref="
TensorSpan
{T}"/> destination.</param>
3743
public static ref readonly
TensorSpan
<T> Abs<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
3766
/// <param name="x">The <see cref="
TensorSpan
{T}"/> to take the sin of.</param>
3768
public static ref readonly
TensorSpan
<T> Acos<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
3789
/// Takes the inverse hyperbolic cosine of each element of the <see cref="
TensorSpan
{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
3791
/// <param name="x">The <see cref="
TensorSpan
{T}"/> to take the sin of.</param>
3793
public static ref readonly
TensorSpan
<T> Acosh<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
3814
/// Takes the inverse hyperbolic cosine divided by pi of each element of the <see cref="
TensorSpan
{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
3818
public static ref readonly
TensorSpan
<T> AcosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
3867
public static ref readonly
TensorSpan
<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
3874
/// Adds <paramref name="y"/> to each element of <paramref name="x"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
3879
public static ref readonly
TensorSpan
<T> Add<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
3900
/// Takes the inverse sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
3904
public static ref readonly
TensorSpan
<T> Asin<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
3925
/// 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.
3929
public static ref readonly
TensorSpan
<T> Asinh<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
3950
/// 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.
3954
public static ref readonly
TensorSpan
<T> AsinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
3975
/// Takes the arc tangent of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
3979
public static ref readonly
TensorSpan
<T> Atan<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4010
/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4015
public static ref readonly
TensorSpan
<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4036
/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4041
public static ref readonly
TensorSpan
<T> Atan2<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
4062
/// Takes the arc tangent of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4067
public static ref readonly
TensorSpan
<T> Atan2<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4098
/// 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.
4103
public static ref readonly
TensorSpan
<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4110
/// 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.
4124
/// 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.
4129
public static ref readonly
TensorSpan
<T> Atan2Pi<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
4136
/// 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.
4150
/// 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.
4155
public static ref readonly
TensorSpan
<T> Atan2Pi<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4177
/// 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.
4181
public static ref readonly
TensorSpan
<T> Atanh<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4202
/// 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.
4206
public static ref readonly
TensorSpan
<T> AtanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4237
/// 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.
4242
public static ref readonly
TensorSpan
<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4263
/// 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.
4268
public static ref readonly
TensorSpan
<T> BitwiseAnd<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
4299
/// 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.
4304
public static ref readonly
TensorSpan
<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4325
/// 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.
4330
public static ref readonly
TensorSpan
<T> BitwiseOr<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
4351
/// Computes the element-wise cube root of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4355
public static ref readonly
TensorSpan
<T> Cbrt<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4376
/// Computes the element-wise ceiling of the input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4380
public static ref readonly
TensorSpan
<T> Ceiling<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4404
/// Copies <paramref name="source"/> to a new <see cref="
TensorSpan
{TTo}"/> converting each <typeparamref name="TFrom"/>
4407
/// <param name="source">The input <see cref="
TensorSpan
{TFrom}"/>.</param>
4409
public static ref readonly
TensorSpan
<TTo> ConvertChecked<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in
TensorSpan
<TTo> destination)
4434
/// Copies <paramref name="source"/> to a new <see cref="
TensorSpan
{TTo}"/> converting each <typeparamref name="TFrom"/>
4437
/// <param name="source">The input <see cref="
TensorSpan
{TFrom}"/>.</param>
4439
public static ref readonly
TensorSpan
<TTo> ConvertSaturating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in
TensorSpan
<TTo> destination)
4464
/// Copies <paramref name="source"/> to a new <see cref="
TensorSpan
{TTo}"/> converting each <typeparamref name="TFrom"/>
4467
/// <param name="source">The input <see cref="
TensorSpan
{TFrom}"/>.</param>
4469
public static ref readonly
TensorSpan
<TTo> ConvertTruncating<TFrom, TTo>(scoped in ReadOnlyTensorSpan<TFrom> source, in
TensorSpan
<TTo> destination)
4520
public static ref readonly
TensorSpan
<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, T sign, in
TensorSpan
<T> destination)
4527
/// Computes the element-wise result of copying the sign from one number to another number in the specified tensors and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4532
public static ref readonly
TensorSpan
<T> CopySign<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> sign, in
TensorSpan
<T> destination)
4553
/// Takes the cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4557
public static ref readonly
TensorSpan
<T> Cos<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4578
/// Takes the hyperbolic cosine of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4582
public static ref readonly
TensorSpan
<T> Cosh<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4625
public static ref readonly
TensorSpan
<T> CosineSimilarity<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4694
/// <summary>Computes the element-wise cosine of the value in the specified tensor that has been multiplied by Pi and returns a new <see cref="
TensorSpan
{T}"/> with the results.</summary>
4709
public static ref readonly
TensorSpan
<T> CosPi<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4734
public static ref readonly
TensorSpan
<T> DegreesToRadians<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4805
/// Divides each element of <paramref name="x"/> by <paramref name="y"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
4810
public static ref readonly
TensorSpan
<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
4817
/// Divides <paramref name="x"/> by each element of <paramref name="y"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result."/>
4822
public static ref readonly
TensorSpan
<T> Divide<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4830
/// a new <see cref="
TensorSpan
{T}"/> with the result.
4835
public static ref readonly
TensorSpan
<T> Divide<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
4873
public static ref readonly
TensorSpan
<T> Exp<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4898
public static ref readonly
TensorSpan
<T> Exp10<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4919
public static ref readonly
TensorSpan
<T> Exp10M1<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4940
public static ref readonly
TensorSpan
<T> Exp2<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4961
public static ref readonly
TensorSpan
<T> Exp2M1<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
4982
public static ref readonly
TensorSpan
<T> ExpM1<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5003
public static ref readonly
TensorSpan
<T> Floor<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5041
public static ref readonly
TensorSpan
<T> Hypot<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5075
public static ref readonly
TensorSpan
<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5097
public static ref readonly
TensorSpan
<T> Ieee754Remainder<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5119
public static ref readonly
TensorSpan
<T> Ieee754Remainder<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5140
public static ref readonly
TensorSpan
<int> ILogB<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<int> destination)
5211
public static ref readonly
TensorSpan
<T> LeadingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5232
/// Takes the natural logarithm of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
5236
public static ref readonly
TensorSpan
<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5266
public static ref readonly
TensorSpan
<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5288
public static ref readonly
TensorSpan
<T> Log<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5309
/// 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.
5313
public static ref readonly
TensorSpan
<T> Log10<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5334
/// 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.
5338
public static ref readonly
TensorSpan
<T> Log10P1<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5359
/// 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.
5363
public static ref readonly
TensorSpan
<T> Log2<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5384
/// 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.
5388
public static ref readonly
TensorSpan
<T> Log2P1<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5409
/// 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.
5413
public static ref readonly
TensorSpan
<T> LogP1<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
5453
public static ref readonly
TensorSpan
<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5474
public static ref readonly
TensorSpan
<T> Max<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5514
public static ref readonly
TensorSpan
<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5535
public static ref readonly
TensorSpan
<T> MaxMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5575
public static ref readonly
TensorSpan
<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5596
public static ref readonly
TensorSpan
<T> MaxMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5636
public static ref readonly
TensorSpan
<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5657
public static ref readonly
TensorSpan
<T> MaxNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5697
public static ref readonly
TensorSpan
<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5718
public static ref readonly
TensorSpan
<T> Min<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5758
public static ref readonly
TensorSpan
<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5779
public static ref readonly
TensorSpan
<T> MinMagnitude<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5819
public static ref readonly
TensorSpan
<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5840
public static ref readonly
TensorSpan
<T> MinMagnitudeNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5849
/// <param name="x">The input <see cref="
TensorSpan
{T}"/>..</param>
5880
public static ref readonly
TensorSpan
<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5901
public static ref readonly
TensorSpan
<T> MinNumber<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5946
/// Multiplies each element of <paramref name="x"/> with <paramref name="y"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
5951
public static ref readonly
TensorSpan
<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
5961
/// Multiplies each element of <paramref name="x"/> with <paramref name="y"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
5967
public static ref readonly
TensorSpan
<T> Multiply<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
5988
public static ref readonly
TensorSpan
<T> Negate<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6021
public static ref readonly
TensorSpan
<T> OnesComplement<T>(scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
6042
public static ref readonly
TensorSpan
<T> PopCount<T>(scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
6074
public static ref readonly
TensorSpan
<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
6096
public static ref readonly
TensorSpan
<T> Pow<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
6118
public static ref readonly
TensorSpan
<T> Pow<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
6149
public static ref readonly
TensorSpan
<T> RadiansToDegrees<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6170
public static ref readonly
TensorSpan
<T> Reciprocal<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6193
public static ref readonly
TensorSpan
<T> RootN<T>(scoped in ReadOnlyTensorSpan<T> x, int n, in
TensorSpan
<T> destination)
6224
public static ref readonly
TensorSpan
<T> RotateLeft<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in
TensorSpan
<T> destination)
6255
public static ref readonly
TensorSpan
<T> RotateRight<T>(scoped in ReadOnlyTensorSpan<T> x, int rotateAmount, in
TensorSpan
<T> destination)
6282
public static ref readonly
TensorSpan
<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6305
public static ref readonly
TensorSpan
<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, MidpointRounding mode, in
TensorSpan
<T> destination)
6332
public static ref readonly
TensorSpan
<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, int digits, in
TensorSpan
<T> destination)
6359
public static ref readonly
TensorSpan
<T> Round<T>(scoped in ReadOnlyTensorSpan<T> x, MidpointRounding mode, in
TensorSpan
<T> destination)
6386
public static ref readonly
TensorSpan
<T> Sigmoid<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6407
/// Takes the sin of each element of the <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
6411
public static ref readonly
TensorSpan
<T> Sin<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6432
public static ref readonly
TensorSpan
<T> Sinh<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6453
public static ref readonly
TensorSpan
<T> SinPi<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6474
public static ref readonly
TensorSpan
<T> SoftMax<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6495
/// Takes the square root of each element of the <paramref name="x"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
6499
public static ref readonly
TensorSpan
<T> Sqrt<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6556
/// Subtracts <paramref name="y"/> from each element of <paramref name="x"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
6561
public static ref readonly
TensorSpan
<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
6568
/// Subtracts each element of <paramref name="y"/> from <paramref name="x"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
6573
public static ref readonly
TensorSpan
<T> Subtract<T>(T x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
6580
/// Subtracts each element of <paramref name="x"/> from <paramref name="y"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
6585
public static ref readonly
TensorSpan
<T> Subtract<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
6619
public static ref readonly
TensorSpan
<T> Tan<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6640
public static ref readonly
TensorSpan
<T> Tanh<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6661
public static ref readonly
TensorSpan
<T> TanPi<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6682
public static ref readonly
TensorSpan
<T> TrailingZeroCount<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6703
public static ref readonly
TensorSpan
<T> Truncate<T>(scoped in ReadOnlyTensorSpan<T> x, in
TensorSpan
<T> destination)
6735
public static ref readonly
TensorSpan
<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, scoped in ReadOnlyTensorSpan<T> y, in
TensorSpan
<T> destination)
6755
/// Computes the element-wise Xor of the two input <see cref="ReadOnlyTensorSpan{T}"/> and returns a new <see cref="
TensorSpan
{T}"/> with the result.
6760
public static ref readonly
TensorSpan
<T> Xor<T>(scoped in ReadOnlyTensorSpan<T> x, T y, in
TensorSpan
<T> destination)
6845
TensorSpan
<T> broadcastedLeft = new TensorSpan<T>(new T[newLength], newLengths, ReadOnlySpan<nint>.Empty);
6846
TensorSpan
<T> broadcastedRight = new TensorSpan<T>(new T[newLength], newLengths, ReadOnlySpan<nint>.Empty);
6856
private static ref readonly
TensorSpan
<TOut> TensorPrimitivesHelperSpanInSpanOut<TIn, TOut>(scoped in ReadOnlyTensorSpan<TIn> input, in
TensorSpan
<TOut> destination, PerformCalculationSpanInSpanOut<TIn, TOut> performCalculation)
6863
TensorSpan
<TOut> slicedDestination = destination.Slice(input._shape.Lengths);
6910
private static ref readonly
TensorSpan
<T> TensorPrimitivesHelperSpanInTInSpanOut<T>(scoped in ReadOnlyTensorSpan<T> input, T value, in
TensorSpan
<T> destination, PerformCalculationSpanInTInSpanOut<T> performCalculation)
6916
TensorSpan
<T> slicedDestination = destination.Slice(input._shape.Lengths);
6962
private static ref readonly
TensorSpan
<T> TensorPrimitivesHelperTInSpanInSpanOut<T>(T value, scoped in ReadOnlyTensorSpan<T> input, in
TensorSpan
<T> destination, PerformCalculationTInSpanInSpanOut<T> performCalculation)
6968
TensorSpan
<T> slicedDestination = destination.Slice(input._shape.Lengths);
7014
private static ref readonly
TensorSpan
<T> TensorPrimitivesHelperTwoSpanInSpanOut<T>(scoped in ReadOnlyTensorSpan<T> left, scoped in ReadOnlyTensorSpan<T> right, in
TensorSpan
<T> destination, PerformCalculationTwoSpanInSpanOut<T> performCalculation)
7018
TensorSpan
<T> slicedDestination = destination.Slice(newSize);
System\Numerics\Tensors\netcore\TensorSpan.cs (31)
112
/// Creates a new <see cref="
TensorSpan
{T}"/> over the provided <see cref="Span{T}"/>. The new <see cref="
TensorSpan
{T}"/> will
119
/// Creates a new <see cref="
TensorSpan
{T}"/> over the provided <see cref="Span{T}"/> using the specified lengths and strides.
143
/// Creates a new <see cref="
TensorSpan
{T}"/> over the provided <see cref="Array"/>. The new <see cref="
TensorSpan
{T}"/> will
150
/// Creates a new <see cref="
TensorSpan
{T}"/> over the provided <see cref="Array"/> using the specified start offsets, lengths, and strides.
195
/// Creates a new <see cref="
TensorSpan
{T}"/> over the provided <see cref="Array"/> using the specified start offsets, lengths, and strides.
359
public
TensorSpan
<T> this[params scoped ReadOnlySpan<NRange> ranges]
378
/// Gets a value indicating whether this <see cref="
TensorSpan
{T}"/> is empty.
384
/// Gets the length of each dimension in this <see cref="
TensorSpan
{T}"/>.
390
/// Gets the rank, aka the number of dimensions, of this <see cref="
TensorSpan
{T}"/>.
395
/// Gets the strides of this <see cref="
TensorSpan
{T}"/>
404
public static bool operator !=(
TensorSpan
<T> left,
TensorSpan
<T> right) => !(left == right);
410
public static bool operator ==(
TensorSpan
<T> left,
TensorSpan
<T> right) =>
440
/// Returns an empty <see cref="
TensorSpan
{T}"/>
442
public static
TensorSpan
<T> Empty => default;
447
/// <summary>Enumerates the elements of a <see cref="
TensorSpan
{T}"/>.</summary>
451
private readonly
TensorSpan
<T> _span;
460
internal Enumerator(
TensorSpan
<T> span)
575
TensorSpan
<T> destinationSlice = destination.Slice(tempLengths);
629
TensorSpan
<T> destinationSlice = destination.Slice(tempLengths);
650
/// Implicitly converts an array to a <see cref="
TensorSpan
{T}"/>.
652
public static implicit operator
TensorSpan
<T>(T[]? array) => new TensorSpan<T>(array);
655
/// Implicitly converts a <see cref="
TensorSpan
{T}"/> to a <see cref="ReadOnlyTensorSpan{T}"/>
657
public static implicit operator ReadOnlyTensorSpan<T>(
TensorSpan
<T> span) =>
674
public
TensorSpan
<T> Slice(params scoped ReadOnlySpan<NIndex> indexes)
689
internal
TensorSpan
<T> Slice(params scoped ReadOnlySpan<nint> lengths)
705
public
TensorSpan
<T> Slice(params scoped ReadOnlySpan<NRange> ranges)
710
TensorSpan
<T> toReturn;
System\Numerics\Tensors\netcore\TensorSpanDebugView.cs (1)
15
public TensorSpanDebugView(
TensorSpan
<T> span)