Show / Hide Table of Contents

Class curand

curand mapping Full documentation here

Inheritance
System.Object
curand
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Hybridizer.Runtime.CUDAImports
Assembly: Hybridizer.Runtime.CUDAImports.dll
Syntax
public class curand

Fields

instance

Declaration
public static curand.ICurand instance
Field Value
Type Description
curand.ICurand

Methods

curandCreateGenerator(out curand.curandGenerator_t, curand.curandRngType_t)

Declaration
public curand.curandStatus_t curandCreateGenerator(out curand.curandGenerator_t generator, curand.curandRngType_t type)
Parameters
Type Name Description
curand.curandGenerator_t generator
curand.curandRngType_t type
Returns
Type Description
curand.curandStatus_t

curandGenerate(curand.curandGenerator_t, IntPtr, size_t)

Declaration
public curand.curandStatus_t curandGenerate(curand.curandGenerator_t generator, IntPtr outputPtr, size_t num)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t num
Returns
Type Description
curand.curandStatus_t

curandGenerateLogNormal(curand.curandGenerator_t, IntPtr, size_t, Single, Single)

Declaration
public curand.curandStatus_t curandGenerateLogNormal(curand.curandGenerator_t generator, IntPtr outputPtr, size_t n, float mean, float stddev)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t n
System.Single mean
System.Single stddev
Returns
Type Description
curand.curandStatus_t

curandGenerateLogNormalDouble(curand.curandGenerator_t, IntPtr, size_t, Double, Double)

Declaration
public curand.curandStatus_t curandGenerateLogNormalDouble(curand.curandGenerator_t generator, IntPtr outputPtr, size_t n, double mean, double stddev)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t n
System.Double mean
System.Double stddev
Returns
Type Description
curand.curandStatus_t

curandGenerateNormal(curand.curandGenerator_t, IntPtr, size_t, Single, Single)

Declaration
public curand.curandStatus_t curandGenerateNormal(curand.curandGenerator_t generator, IntPtr outputPtr, size_t n, float mean, float stddev)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t n
System.Single mean
System.Single stddev
Returns
Type Description
curand.curandStatus_t

curandGenerateNormalDouble(curand.curandGenerator_t, IntPtr, size_t, Double, Double)

Declaration
public curand.curandStatus_t curandGenerateNormalDouble(curand.curandGenerator_t generator, IntPtr outputPtr, size_t n, double mean, double stddev)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t n
System.Double mean
System.Double stddev
Returns
Type Description
curand.curandStatus_t

curandGeneratePoisson(curand.curandGenerator_t, IntPtr, size_t, Double)

Declaration
public curand.curandStatus_t curandGeneratePoisson(curand.curandGenerator_t generator, IntPtr outputPtr, size_t n, double lambda)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t n
System.Double lambda
Returns
Type Description
curand.curandStatus_t

curandGenerateUniform(curand.curandGenerator_t, IntPtr, size_t)

Declaration
public curand.curandStatus_t curandGenerateUniform(curand.curandGenerator_t generator, IntPtr outputPtr, size_t num)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t num
Returns
Type Description
curand.curandStatus_t

curandGenerateUniformDouble(curand.curandGenerator_t, IntPtr, size_t)

Declaration
public curand.curandStatus_t curandGenerateUniformDouble(curand.curandGenerator_t generator, IntPtr outputPtr, size_t num)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.IntPtr outputPtr
size_t num
Returns
Type Description
curand.curandStatus_t

curandSetGeneratorOffset(curand.curandGenerator_t, UInt64)

Declaration
public curand.curandStatus_t curandSetGeneratorOffset(curand.curandGenerator_t generator, ulong type)
Parameters
Type Name Description
curand.curandGenerator_t generator
System.UInt64 type
Returns
Type Description
curand.curandStatus_t

curandSetGeneratorOrdering(curand.curandGenerator_t, curand.curandOrdering_t)

Declaration
public curand.curandStatus_t curandSetGeneratorOrdering(curand.curandGenerator_t prngGPU, curand.curandOrdering_t type)
Parameters
Type Name Description
curand.curandGenerator_t prngGPU
curand.curandOrdering_t type
Returns
Type Description
curand.curandStatus_t

curandSetPseudoRandomGeneratorSeed(curand.curandGenerator_t, UInt64)

Declaration
public curand.curandStatus_t curandSetPseudoRandomGeneratorSeed(curand.curandGenerator_t prngGPU, ulong seed)
Parameters
Type Name Description
curand.curandGenerator_t prngGPU
System.UInt64 seed
Returns
Type Description
curand.curandStatus_t

switchToVersion(curand.VERSION)

Declaration
public static void switchToVersion(curand.VERSION v)
Parameters
Type Name Description
curand.VERSION v
Back to top Generated by DocFX