Share via


Tensor.Multiply Method

Definition

Overloads

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>, 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>, 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>)

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:
generic <typename T>
 where T : System::Numerics::IMultiplyOperators<T, T, T>, System::Numerics::IMultiplicativeIdentity<T, T> static System::Numerics::Tensors::Tensor<T> ^ Multiply(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y);
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>;
static member Multiply : ReadOnlyTensorSpan * ReadOnlyTensorSpan -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)> (requires 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)
Public Function Multiply(Of T As {IMultiplyOperators(Of T, T, T), IMultiplicativeIdentity(Of T, T)}) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T)) As Tensor(Of T)

Type Parameters

T

Parameters

x
ReadOnlyTensorSpan<T>

Left ReadOnlyTensorSpan<T> for multiplication.

y
ReadOnlyTensorSpan<T>

Right ReadOnlyTensorSpan<T> for multiplication.

Returns

Applies to

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

Source:
TensorExtensions.cs

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

public:
generic <typename T>
 where T : System::Numerics::IMultiplyOperators<T, T, T>, System::Numerics::IMultiplicativeIdentity<T, T> static System::Numerics::Tensors::Tensor<T> ^ Multiply(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y);
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>;
static member Multiply : ReadOnlyTensorSpan * 'T -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)> (requires 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)
Public Function Multiply(Of T As {IMultiplyOperators(Of T, T, T), IMultiplicativeIdentity(Of T, T)}) (ByRef x As ReadOnlyTensorSpan(Of T), y As T) As Tensor(Of T)

Type Parameters

T

Parameters

y
T

T value to multiply by.

Returns

Applies to

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

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:
generic <typename T>
 where T : System::Numerics::IMultiplyOperators<T, T, T>, System::Numerics::IMultiplicativeIdentity<T, T> static System::Numerics::Tensors::TensorSpan<T> ^ Multiply(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, System::Numerics::Tensors::ReadOnlyTensorSpan<T> % y, System::Numerics::Tensors::TensorSpan<T> % destination);
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>;
static member Multiply : ReadOnlyTensorSpan * ReadOnlyTensorSpan * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)
Public Function Multiply(Of T As {IMultiplyOperators(Of T, T, T), IMultiplicativeIdentity(Of T, T)}) (ByRef x As ReadOnlyTensorSpan(Of T), ByRef y As ReadOnlyTensorSpan(Of T), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of 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

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

Source:
TensorExtensions.cs

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

public:
generic <typename T>
 where T : System::Numerics::IMultiplyOperators<T, T, T>, System::Numerics::IMultiplicativeIdentity<T, T> static System::Numerics::Tensors::TensorSpan<T> ^ Multiply(System::Numerics::Tensors::ReadOnlyTensorSpan<T> % x, T y, System::Numerics::Tensors::TensorSpan<T> % destination);
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>;
static member Multiply : ReadOnlyTensorSpan * 'T * TensorSpan -> TensorSpan (requires 'T :> System.Numerics.IMultiplyOperators<'T, 'T, 'T> and 'T :> System.Numerics.IMultiplicativeIdentity<'T, 'T>)
Public Function Multiply(Of T As {IMultiplyOperators(Of T, T, T), IMultiplicativeIdentity(Of T, T)}) (ByRef x As ReadOnlyTensorSpan(Of T), y As T, ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

y
T

T value to multiply by.

destination
TensorSpan<T>

Returns

Applies to