Language

Tensor.Concatenate Method

Definition

Overloads

Name Description
Concatenate<T>(ReadOnlySpan<Tensor<T>>)

Join a sequence of tensors along an existing axis.

Concatenate<T>(ReadOnlySpan<Tensor<T>>, TensorSpan<T>)

Join a sequence of tensors along an existing axis.

Concatenate<T>(ReadOnlySpan<Tensor<T>>)

Source:
Tensor.cs
Source:
TensorExtensions.cs
Source:
Tensor.cs

Join a sequence of tensors along an existing axis.

public:
generic <typename T>
 static System::Numerics::Tensors::Tensor<T> ^ Concatenate(ReadOnlySpan<System::Numerics::Tensors::Tensor<T> ^> tensors);
public static System.Numerics.Tensors.Tensor<T> Concatenate<T>(scoped ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors);
static member Concatenate : ReadOnlySpan<System.Numerics.Tensors.Tensor<'T>> -> System.Numerics.Tensors.Tensor<'T>
Public Function Concatenate(Of T) (tensors As ReadOnlySpan(Of Tensor(Of T))) As Tensor(Of T)

Type Parameters

T

Parameters

tensors
ReadOnlySpan<Tensor<T>>

The tensors must have the same shape, except in the dimension corresponding to axis (the first, by default).

Returns

Remarks

Leading singleton padding is ignored when aligning inputs to the first tensor's shape. Rank-zero empty tensors have effective shape [0].

Applies to

Concatenate<T>(ReadOnlySpan<Tensor<T>>, TensorSpan<T>)

Source:
Tensor.cs
Source:
TensorExtensions.cs
Source:
Tensor.cs

Join a sequence of tensors along an existing axis.

public:
generic <typename T>
 static System::Numerics::Tensors::TensorSpan<T> ^ Concatenate(ReadOnlySpan<System::Numerics::Tensors::Tensor<T> ^> tensors, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> Concatenate<T>(scoped ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, in System.Numerics.Tensors.TensorSpan<T> destination);
static member Concatenate : ReadOnlySpan<System.Numerics.Tensors.Tensor<'T>> * TensorSpan -> TensorSpan
Public Function Concatenate(Of T) (tensors As ReadOnlySpan(Of Tensor(Of T)), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

tensors
ReadOnlySpan<Tensor<T>>

The tensors must have the same shape, except in the dimension corresponding to axis (the first, by default).

destination
TensorSpan<T>

Returns

Remarks

Inputs and the destination are aligned to the first tensor's effective shape by adding or removing leading singleton dimensions. Rank-zero empty tensors have effective shape [0].

Applies to