Прочетете на английски

Споделяне чрез


Tensor.OnesComplement Method

Definition

Overloads

OnesComplement<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

Computes the element-wise one's complement of numbers in the specified tensor.

OnesComplement<T>(ReadOnlyTensorSpan<T>)

Computes the element-wise one's complement of numbers in the specified tensor.

OnesComplement<T>(ReadOnlyTensorSpan<T>, TensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Computes the element-wise one's complement of numbers in the specified tensor.

C#
public static ref readonly System.Numerics.Tensors.TensorSpan<T> OnesComplement<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IBitwiseOperators<T,T,T>;

Type Parameters

T

Parameters

destination
TensorSpan<T>

Returns

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)

OnesComplement<T>(ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Computes the element-wise one's complement of numbers in the specified tensor.

C#
public static System.Numerics.Tensors.Tensor<T> OnesComplement<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x) where T : System.Numerics.IBitwiseOperators<T,T,T>;

Type Parameters

T

Parameters

Returns

Applies to

.NET 10 (package-provided) и други версии
Продукт Версии
.NET 8 (package-provided), 9 (package-provided), 10 (package-provided)