Ler em inglês

Compartilhar via


Tensor.FillGaussianNormalDistribution<T> Method

Definition

Fills the given TensorSpan<T> with random data in a Gaussian normal distribution. Random can optionally be provided for seeding.

public static ref readonly System.Numerics.Tensors.TensorSpan<T> FillGaussianNormalDistribution<T> (in System.Numerics.Tensors.TensorSpan<T> destination, Random? random = default) where T : System.Numerics.IFloatingPoint<T>;

Type Parameters

T

The element type.

Parameters

destination
TensorSpan<T>

The destination TensorSpan<T> where the data will be stored.

random
Random

Random to provide random seeding. Defaults to Shared if not provided.

Returns

Applies to

Produto Versões
.NET 8 (package-provided), 9 (package-provided)