Module: GMP

Defined in:
ext/gmp.c,
ext/gmpf.c,
ext/gmpq.c

Defined Under Namespace

Classes: F, Q, Z

Constant Summary collapse

GMP_VERSION =
rb_str_new2(gmp_version)

Class Method Summary collapse

Class Method Details

.GMP::F(arg) ⇒ Object

A convenience method for GMP::F.new(arg).



124
125
126
127
128
# File 'ext/gmpf.c', line 124

VALUE r_gmpmod_f(int argc, VALUE *argv, VALUE module)
{
  (void)module;
  return r_gmpfsg_new(argc, argv, cGMP_F);
}

.GMP::Q(arg) ⇒ Object

A convenience method for GMP::Q.new(arg).



86
87
88
89
90
# File 'ext/gmpq.c', line 86

VALUE r_gmpmod_q(int argc, VALUE *argv, VALUE module)
{
  (void)module;
  return r_gmpqsg_new(argc, argv, cGMP_Q);
}