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

Поделиться через


Tensor.Multiply Method

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Overloads

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

Multiplies each element of x with y and returns a new TensorSpan<T> with the result.

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

Multiplies each element of x with y and returns a new TensorSpan<T> with the result. If the shapes are not the same they are broadcast to the smallest compatible shape.

Multiply<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Multiplies each element of x with y and returns a new Tensor<T> with the result. If the shapes are not the same they are broadcast to the smallest compatible shape.

Multiply<T>(ReadOnlyTensorSpan<T>, T)

Multiplies each element of x with y and returns a new Tensor<T> with the result.

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Multiplies each element of x with y and returns a new TensorSpan<T> with the result.

public static ref readonly System.Numerics.Tensors.TensorSpan<T> Multiply<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IMultiplyOperators<T,T,T>, System.Numerics.IMultiplicativeIdentity<T,T>;

Type Parameters

T

Parameters

y
T

T value to multiply by.

destination
TensorSpan<T>

Returns

Applies to

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

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

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Multiplies each element of x with y and returns a new TensorSpan<T> with the result. If the shapes are not the same they are broadcast to the smallest compatible shape.

public static ref readonly System.Numerics.Tensors.TensorSpan<T> Multiply<T>(scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, scoped in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y, in System.Numerics.Tensors.TensorSpan<T> destination) where T : System.Numerics.IMultiplyOperators<T,T,T>, System.Numerics.IMultiplicativeIdentity<T,T>;

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

Left ReadOnlyTensorSpan<T> for multiplication.

y
ReadOnlyTensorSpan<T>

Right ReadOnlyTensorSpan<T> for multiplication.

destination
TensorSpan<T>

Returns

Applies to

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

Multiply<T>(ReadOnlyTensorSpan<T>, ReadOnlyTensorSpan<T>)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Multiplies each element of x with y and returns a new Tensor<T> with the result. If the shapes are not the same they are broadcast to the smallest compatible shape.

public static System.Numerics.Tensors.Tensor<T> Multiply<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, in System.Numerics.Tensors.ReadOnlyTensorSpan<T> y) where T : System.Numerics.IMultiplyOperators<T,T,T>, System.Numerics.IMultiplicativeIdentity<T,T>;

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

Left ReadOnlyTensorSpan<T> for multiplication.

y
ReadOnlyTensorSpan<T>

Right ReadOnlyTensorSpan<T> for multiplication.

Returns

Applies to

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

Multiply<T>(ReadOnlyTensorSpan<T>, T)

Source:
TensorExtensions.cs
Source:
TensorExtensions.cs

Multiplies each element of x with y and returns a new Tensor<T> with the result.

public static System.Numerics.Tensors.Tensor<T> Multiply<T>(in System.Numerics.Tensors.ReadOnlyTensorSpan<T> x, T y) where T : System.Numerics.IMultiplyOperators<T,T,T>, System.Numerics.IMultiplicativeIdentity<T,T>;

Type Parameters

T

Parameters

y
T

T value to multiply by.

Returns

Applies to

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