Tensor.CreateAndFillUniformDistribution Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
CreateAndFillUniformDistribution<T>(Random, ReadOnlySpan<IntPtr>) |
Creates a Tensor<T> and initializes it with random data uniformly distributed. |
CreateAndFillUniformDistribution<T>(ReadOnlySpan<IntPtr>) |
Creates a Tensor<T> and initializes it with random data uniformly distributed. |
CreateAndFillUniformDistribution<T>(Random, ReadOnlySpan<IntPtr>)
- Source:
- Tensor.Factory.cs
- Source:
- Tensor.Factory.cs
Creates a Tensor<T> and initializes it with random data uniformly distributed.
public:
generic <typename T>
where T : System::Numerics::IFloatingPoint<T> static System::Numerics::Tensors::Tensor<T> ^ CreateAndFillUniformDistribution(Random ^ random, ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.Tensor<T> CreateAndFillUniformDistribution<T> (Random random, scoped ReadOnlySpan<IntPtr> lengths) where T : System.Numerics.IFloatingPoint<T>;
static member CreateAndFillUniformDistribution : Random * ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Function CreateAndFillUniformDistribution(Of T As IFloatingPoint(Of T)) (random As Random, lengths As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)
Type Parameters
- T
Parameters
- random
- Random
- lengths
-
ReadOnlySpan<nativeint>
A ReadOnlySpan<T> indicating the lengths of each dimension.
Returns
Applies to
CreateAndFillUniformDistribution<T>(ReadOnlySpan<IntPtr>)
- Source:
- Tensor.Factory.cs
- Source:
- Tensor.Factory.cs
Creates a Tensor<T> and initializes it with random data uniformly distributed.
public:
generic <typename T>
where T : System::Numerics::IFloatingPoint<T> static System::Numerics::Tensors::Tensor<T> ^ CreateAndFillUniformDistribution(ReadOnlySpan<IntPtr> lengths);
public static System.Numerics.Tensors.Tensor<T> CreateAndFillUniformDistribution<T> (scoped ReadOnlySpan<IntPtr> lengths) where T : System.Numerics.IFloatingPoint<T>;
static member CreateAndFillUniformDistribution : ReadOnlySpan<nativeint> -> System.Numerics.Tensors.Tensor<'T (requires 'T :> System.Numerics.IFloatingPoint<'T>)> (requires 'T :> System.Numerics.IFloatingPoint<'T>)
Public Function CreateAndFillUniformDistribution(Of T As IFloatingPoint(Of T)) (lengths As ReadOnlySpan(Of IntPtr)) As Tensor(Of T)
Type Parameters
- T
Parameters
- lengths
-
ReadOnlySpan<nativeint>
A ReadOnlySpan<T> indicating the lengths of each dimension.