Language

Tensor.ConcatenateOnDimension Method

Definition

Overloads

Name Description
ConcatenateOnDimension<T>(Int32, ReadOnlySpan<Tensor<T>>)

Join a sequence of tensors along an existing axis.

ConcatenateOnDimension<T>(Int32, ReadOnlySpan<Tensor<T>>, TensorSpan<T>)

Join a sequence of tensors along an existing axis.

ConcatenateOnDimension<T>(Int32, 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> ^ ConcatenateOnDimension(int dimension, ReadOnlySpan<System::Numerics::Tensors::Tensor<T> ^> tensors);
public static System.Numerics.Tensors.Tensor<T> ConcatenateOnDimension<T>(int dimension, scoped ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors);
static member ConcatenateOnDimension : int * ReadOnlySpan<System.Numerics.Tensors.Tensor<'T>> -> System.Numerics.Tensors.Tensor<'T>
Public Function ConcatenateOnDimension(Of T) (dimension As Integer, tensors As ReadOnlySpan(Of Tensor(Of T))) As Tensor(Of T)

Type Parameters

T

Parameters

dimension
Int32

The axis along which the tensors will be joined. If axis is -1, arrays are flattened before use. Default is 0.

tensors
ReadOnlySpan<Tensor<T>>

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

Returns

Remarks

The dimension refers to the first tensor's effective shape. Other inputs are aligned by adding or removing leading singleton dimensions. Rank-zero empty tensors have effective shape [0].

Applies to

ConcatenateOnDimension<T>(Int32, 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> ^ ConcatenateOnDimension(int dimension, ReadOnlySpan<System::Numerics::Tensors::Tensor<T> ^> tensors, System::Numerics::Tensors::TensorSpan<T> % destination);
public static ref readonly System.Numerics.Tensors.TensorSpan<T> ConcatenateOnDimension<T>(int dimension, scoped ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors, in System.Numerics.Tensors.TensorSpan<T> destination);
static member ConcatenateOnDimension : int * ReadOnlySpan<System.Numerics.Tensors.Tensor<'T>> * TensorSpan -> TensorSpan
Public Function ConcatenateOnDimension(Of T) (dimension As Integer, tensors As ReadOnlySpan(Of Tensor(Of T)), ByRef destination As TensorSpan(Of T)) As TensorSpan(Of T)

Type Parameters

T

Parameters

dimension
Int32

The axis along which the tensors will be joined. If axis is -1, arrays are flattened before use. Default is 0.

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

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

Applies to