Click or drag to resize
gmp_libmpz_init_set_ui Method
Initialize rop with limb space and set the initial numeric value from op.

Namespace:  Math.Gmp.Native
Assembly:  Math.Gmp.Native (in Math.Gmp.Native.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
public static void mpz_init_set_ui(
	mpz_t rop,
	uint op
)

Parameters

rop
Type: Math.Gmp.Nativempz_t
The destination integer.
op
Type: SystemUInt32
The source integer.
Examples
// Create, initialize, and set the value of x to 10.
mpz_t x = new mpz_t();
gmp_lib.mpz_init_set_ui(x, 10U);

// Assert that the value of x is 10.
Assert.IsTrue(gmp_lib.mpz_get_ui(x) == 10U);

// Release unmanaged memory allocated for x.
gmp_lib.mpz_clear(x);
See Also