Backends/SiaNet.Backend.Torch/TypeGeneration.cs
/// <summary>
///  Populates the tensor with random values from 0 to n, using the provided random source generator.
/// </summary>
/// <param name="source">The random generator source</param>
/// <param name="p"></param>
Populates the tensor with random values from 0 to n, using the provided random source generator.
Populates the tensor with random values from 0 to n using the provided random source generator .
public void Geometric (RandomGenerator source, double p)
        {
            if (source == null)
                throw new ArgumentNullException (nameof (source));
            THDoubleTensor_geometric (handle, source.handle, p);
        }
public void Geometric ( RandomGenerator source , double p ) { if ( source == null ) throw new ArgumentNullException ( nameof ( source ) ) ; THDoubleTensor_geometric ( handle , source . handle , p ) ; }
Populates the tensor with random values from 0 to n, using the provided random source generator.
Populates the tensor with random values from 0 to n using the provided random source generator .
source
RandomGenerator
The random generator source
The random generator source
p
double
None