gmp_libmpz_init_set_ui Method |
Namespace: Math.Gmp.Native
public static void mpz_init_set_ui( mpz_t rop, uint op )
Public Shared Sub mpz_init_set_ui ( rop As mpz_t, op As UInteger )
public: static void mpz_init_set_ui( mpz_t^ rop, unsigned int op )
static member mpz_init_set_ui : rop : mpz_t * op : uint32 -> unit
// 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);
' Create, initialize, and set the value of x to 10. Dim x As New mpz_t() gmp_lib.mpz_init_set_ui(x, 10UI) ' Assert that the value of x is 10. Assert.IsTrue(gmp_lib.mpz_get_ui(x) = 10UI) ' Release unmanaged memory allocated for x. gmp_lib.mpz_clear(x)
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.