Language

Tensor.StackAlongDimension Method

Definition

Overloads

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

Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have equivalent shapes.

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

Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have equivalent shapes.

StackAlongDimension<T>(Int32, ReadOnlySpan<Tensor<T>>)

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

Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have equivalent shapes.

public:
generic <typename T>
 static System::Numerics::Tensors::Tensor<T> ^ StackAlongDimension(int dimension, ReadOnlySpan<System::Numerics::Tensors::Tensor<T> ^> tensors);
public static System.Numerics.Tensors.Tensor<T> StackAlongDimension<T>(int dimension, scoped ReadOnlySpan<System.Numerics.Tensors.Tensor<T>> tensors);
static member StackAlongDimension : int * ReadOnlySpan<System.Numerics.Tensors.Tensor<'T>> -> System.Numerics.Tensors.Tensor<'T>
Public Function StackAlongDimension(Of T) (dimension As Integer, tensors As ReadOnlySpan(Of Tensor(Of T))) As Tensor(Of T)

Type Parameters

T

Parameters

dimension
Int32

Index of where the new dimension will be.

tensors
ReadOnlySpan<Tensor<T>>

Input Tensor<T>.

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

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

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

Join multiple Tensor<T> along a new dimension. The axis parameter specifies the index of the new dimension. All tensors must have equivalent shapes.

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

Type Parameters

T

Parameters

tensors
ReadOnlySpan<Tensor<T>>

Input Tensor<T>.

destination
TensorSpan<T>
dimension
Int32

Index of where the new dimension will be.

Returns

Remarks

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

Applies to