Del via


Tensor.ConcatenateOnDimension Method

Definition

Overloads

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:
TensorExtensions.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

Applies to

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

Source:
TensorExtensions.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

Applies to