Package: flint 0.0.4

flint: Fast Library for Number Theory

An R interface to 'FLINT' <https://flintlib.org/>, a C library for number theory. 'FLINT' extends GNU 'MPFR' <https://www.mpfr.org/> and GNU 'MP' <https://gmplib.org/> with support for operations on standard rings (the integers, the integers modulo n, finite fields, the rational, p-adic, real, and complex numbers) as well as matrices and polynomials over rings. 'FLINT' implements midpoint-radius interval arithmetic, also known as ball arithmetic, in the real and complex numbers, enabling computation in arbitrary precision with rigorous propagation of rounding errors; see Johansson (2017) <doi:10.1109/TC.2017.2690633>. Finally, 'FLINT' provides ball arithmetic implementations of many special mathematical functions, with high coverage of reference works such as the NIST Digital Library of Mathematical Functions <https://dlmf.nist.gov/>. The R interface defines S4 classes, generic functions, and methods for representation and basic operations as well as plain R functions mirroring and vectorizing entry points in the C library.

Authors:Mikael Jagan [aut, cre]

flint_0.0.4.tar.gz
flint_0.0.4.zip(r-4.5)flint_0.0.4.zip(r-4.4)flint_0.0.4.zip(r-4.3)
flint_0.0.4.tgz(r-4.5-x86_64)flint_0.0.4.tgz(r-4.5-arm64)flint_0.0.4.tgz(r-4.4-x86_64)flint_0.0.4.tgz(r-4.4-arm64)flint_0.0.4.tgz(r-4.3-x86_64)flint_0.0.4.tgz(r-4.3-arm64)
flint_0.0.4.tar.gz(r-4.5-noble)flint_0.0.4.tar.gz(r-4.4-noble)
flint.pdf |flint.html
flint/json (API)
NEWS

# Install 'flint' in R:
install.packages('flint', repos = c('https://jaganmn.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/jaganmn/flint/issues

Uses libs:
  • flint– C library for number theory
  • mpfr4– Multiple precision floating-point computation
  • gmp– Multiprecision arithmetic library

On CRAN:

Conda:

flintmpfr4gmp

5.18 score 6 stars 20 scripts 337 downloads 91 exports 0 dependencies

Last updated 5 hours agofrom:0626db3a66. Checks:12 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKMar 12 2025
R-4.5-win-x86_64OKMar 12 2025
R-4.5-mac-x86_64OKMar 12 2025
R-4.5-mac-aarch64OKMar 12 2025
R-4.5-linux-x86_64OKMar 12 2025
R-4.4-win-x86_64OKMar 12 2025
R-4.4-mac-x86_64OKMar 12 2025
R-4.4-mac-aarch64OKMar 12 2025
R-4.4-linux-x86_64OKMar 12 2025
R-4.3-win-x86_64OKMar 12 2025
R-4.3-mac-x86_64OKMar 12 2025
R-4.3-mac-aarch64OKMar 12 2025

Exports:.acb.acf.arb.arf.fmpq.fmpz.mag.slong.ulongacb_dirichlet_hurwitzacb_dirichlet_lerch_phiacb_dirichlet_zetaacb_hypgeom_2f1acb_hypgeom_betaacb_hypgeom_beta_loweracb_hypgeom_gammaacb_hypgeom_gamma_loweracb_hypgeom_gamma_upperacb_hypgeom_lgammaacb_hypgeom_polygammaacb_hypgeom_rgammaacb_lambertwall.equalanyDuplicatedarb_const_earb_const_log10arb_const_log2arb_const_piarb_dirichlet_hurwitzarb_dirichlet_zetaarb_hypgeom_2f1arb_hypgeom_betaarb_hypgeom_beta_lowerarb_hypgeom_gammaarb_hypgeom_gamma_lowerarb_hypgeom_gamma_upperarb_hypgeom_lgammaarb_hypgeom_rgammaarb_lambertwas.arrayas.data.frameas.Dateas.matrixas.POSIXctas.POSIXltc.flintcoerceComplexcutDenDen<-duplicatedfindIntervalflintABIflintIdenticalflintLengthflintPrecflintRndflintSizeflintTripleflintVersionformatImagImag<-initializeis.na<-is.unsortedmatchMathMath2meanMidMid<-mtfrmNumNum<-OpsprintquantileRadRad<-RealReal<-rep_lenrep.intseqsequenceshowsummarySummaryunique

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
R Package 'flint'flint-package flint flintABI flintIdentical flintLength flintPrec flintRnd flintSize flintTriple flintVersion
Arbitrary Precision Floating-Point Complex Numbers with Error Bounds!,acb-method +,acb,missing-method -,acb,missing-method .acb acb acb-class anyNA,acb-method as.vector,acb-method coerce,ANY,acb-method Complex,acb-method initialize,acb-method is.finite,acb-method is.infinite,acb-method is.na,acb-method is.nan,acb-method is.unsorted,acb-method log,acb-method Math,acb-method Math2,acb-method mean,acb-method Ops,acb,acb-method Ops,acb,acf-method Ops,acb,ANY-method Ops,acb,arb-method Ops,acb,arf-method Ops,acb,fmpq-method Ops,acb,fmpz-method Ops,acb,mag-method Ops,acb,slong-method Ops,acb,ulong-method Ops,ANY,acb-method Summary,acb-method xtfrm,acb-method
Arbitrary Precision Floating-Point Complex Numbers!,acf-method +,acf,missing-method -,acf,missing-method .acf acf acf-class anyNA,acf-method as.vector,acf-method coerce,ANY,acf-method Complex,acf-method initialize,acf-method is.finite,acf-method is.infinite,acf-method is.na,acf-method is.nan,acf-method is.unsorted,acf-method Math,acf-method Math2,acf-method mean,acf-method Ops,acf,acb-method Ops,acf,acf-method Ops,acf,ANY-method Ops,acf,arb-method Ops,acf,arf-method Ops,acf,fmpq-method Ops,acf,fmpz-method Ops,acf,mag-method Ops,acf,slong-method Ops,acf,ulong-method Ops,ANY,acf-method Summary,acf-method xtfrm,acf-method
Zeta and Related Functionsacb_dirichlet_hurwitz acb_dirichlet_lerch_phi acb_dirichlet_zeta arb_dirichlet_hurwitz arb_dirichlet_lerch_phi arb_dirichlet_zeta
Hypergeometric Functionsacb_hypgeom_2f1 arb_hypgeom_2f1
Gamma and Related Functionsacb_hypgeom_beta acb_hypgeom_gamma acb_hypgeom_lgamma acb_hypgeom_polygamma acb_hypgeom_rgamma arb_hypgeom_beta arb_hypgeom_gamma arb_hypgeom_lgamma arb_hypgeom_polygamma arb_hypgeom_rgamma
Incomplete Gamma and Related Functionsacb_hypgeom_beta_lower acb_hypgeom_gamma_lower acb_hypgeom_gamma_upper arb_hypgeom_beta_lower arb_hypgeom_gamma_lower arb_hypgeom_gamma_upper
Lambert W functionacb_lambertw arb_lambertw
Arbitrary Precision Floating-Point Real Numbers with Error Bounds!,arb-method +,arb,missing-method -,arb,missing-method .arb anyNA,arb-method arb arb-class as.vector,arb-method coerce,ANY,arb-method Complex,arb-method initialize,arb-method is.finite,arb-method is.infinite,arb-method is.na,arb-method is.nan,arb-method is.unsorted,arb-method log,arb-method Math,arb-method Math2,arb-method mean,arb-method Ops,ANY,arb-method Ops,arb,acb-method Ops,arb,acf-method Ops,arb,ANY-method Ops,arb,arb-method Ops,arb,arf-method Ops,arb,fmpq-method Ops,arb,fmpz-method Ops,arb,mag-method Ops,arb,slong-method Ops,arb,ulong-method Summary,arb-method xtfrm,arb-method
Arbitrary Precision Floating-Point Real Numbers!,arf-method +,arf,missing-method -,arf,missing-method .arf anyNA,arf-method arf arf-class as.vector,arf-method coerce,ANY,arf-method Complex,arf-method initialize,arf-method is.finite,arf-method is.infinite,arf-method is.na,arf-method is.nan,arf-method is.unsorted,arf-method Math,arf-method Math2,arf-method mean,arf-method Ops,ANY,arf-method Ops,arf,acb-method Ops,arf,acf-method Ops,arf,ANY-method Ops,arf,arb-method Ops,arf,arf-method Ops,arf,fmpq-method Ops,arf,fmpz-method Ops,arf,mag-method Ops,arf,slong-method Ops,arf,ulong-method Summary,arf-method
Concatenate Vectorsc.flint
Mathematical Constants Represented to Arbitrary Precisionarb_const_e arb_const_log10 arb_const_log2 arb_const_pi Constants
Class of FLINT-Type Vectorsall.equal,ANY,flint-method all.equal,flint,ANY-method all.equal,flint,flint-method anyDuplicated,flint-method as.array,flint-method as.complex,flint-method as.data.frame,flint-method as.Date,flint-method as.double,flint-method as.integer,flint-method as.logical,flint-method as.matrix,flint-method as.numeric,flint-method as.POSIXct,flint-method as.POSIXlt,flint-method as.raw,flint-method c,flint-method coerce,ANY,flint-method cut,flint-method duplicated,flint-method findInterval,flint-method flint-class is.na<-,flint-method length,flint-method length<-,flint-method match,ANY,flint-method match,flint,ANY-method match,flint,flint-method mtfrm,flint-method names,flint-method names<-,flint,character-method names<-,flint,NULL-method print,flint-method quantile,flint-method rep,flint-method rep.int,flint-method rep_len,flint-method seq,flint-method sequence,flint-method show,flint-method summary,flint-method unique,flint-method [,ANY,flint,missing,missing-method [,flint,ANY,missing,missing-method [,flint,flint,missing,missing-method [<-,ANY,ANY,missing,flint-method [<-,ANY,flint,missing,ANY-method [<-,ANY,flint,missing,flint-method [<-,flint,ANY,missing,ANY-method [<-,flint,ANY,missing,flint-method [<-,flint,flint,missing,ANY-method [<-,flint,flint,missing,flint-method [[,ANY,flint,missing-method [[,flint,ANY,missing-method [[,flint,flint,missing-method [[<-,ANY,ANY,missing,flint-method [[<-,ANY,flint,missing,ANY-method [[<-,ANY,flint,missing,flint-method [[<-,flint,ANY,missing,ANY-method [[<-,flint,ANY,missing,flint-method [[<-,flint,flint,missing,ANY-method [[<-,flint,flint,missing,flint-method
Arbitrary Precision Rational Numbers!,fmpq-method +,fmpq,missing-method -,fmpq,missing-method .fmpq anyNA,fmpq-method as.vector,fmpq-method coerce,ANY,fmpq-method Complex,fmpq-method fmpq fmpq-class initialize,fmpq-method is.finite,fmpq-method is.infinite,fmpq-method is.na,fmpq-method is.nan,fmpq-method is.unsorted,fmpq-method Math,fmpq-method Math2,fmpq-method mean,fmpq-method Ops,ANY,fmpq-method Ops,fmpq,acb-method Ops,fmpq,acf-method Ops,fmpq,ANY-method Ops,fmpq,arb-method Ops,fmpq,arf-method Ops,fmpq,fmpq-method Ops,fmpq,fmpz-method Ops,fmpq,mag-method Ops,fmpq,slong-method Ops,fmpq,ulong-method Summary,fmpq-method
Arbitrary Precision Signed Integers!,fmpz-method +,fmpz,missing-method -,fmpz,missing-method .fmpz anyNA,fmpz-method as.vector,fmpz-method coerce,ANY,fmpz-method Complex,fmpz-method fmpz fmpz-class initialize,fmpz-method is.finite,fmpz-method is.infinite,fmpz-method is.na,fmpz-method is.nan,fmpz-method is.unsorted,fmpz-method Math,fmpz-method Math2,fmpz-method mean,fmpz-method Ops,ANY,fmpz-method Ops,fmpz,acb-method Ops,fmpz,acf-method Ops,fmpz,ANY-method Ops,fmpz,arb-method Ops,fmpz,arf-method Ops,fmpz,fmpq-method Ops,fmpz,fmpz-method Ops,fmpz,mag-method Ops,fmpz,slong-method Ops,fmpz,ulong-method Summary,fmpz-method
Format FLINT-type Numbers as Stringsformat,acb-method format,acf-method format,arb-method format,arf-method format,fmpq-method format,fmpz-method format,mag-method format,slong-method format,ulong-method format-methods
Fixed Precision Magnitude (Error) Bounds!,mag-method +,mag,missing-method -,mag,missing-method .mag anyNA,mag-method as.vector,mag-method coerce,ANY,mag-method Complex,mag-method initialize,mag-method is.finite,mag-method is.infinite,mag-method is.na,mag-method is.nan,mag-method is.unsorted,mag-method log,mag-method mag mag-class Math,mag-method Math2,mag-method mean,mag-method Ops,ANY,mag-method Ops,mag,acb-method Ops,mag,acf-method Ops,mag,ANY-method Ops,mag,arb-method Ops,mag,arf-method Ops,mag,fmpq-method Ops,mag,fmpz-method Ops,mag,mag-method Ops,mag,slong-method Ops,mag,ulong-method Summary,mag-method
Get or Set One Part of a VectorDen Den,fmpq-method Den<- Den<-,fmpq-method Imag Imag,acb-method Imag,acf-method Imag<- Imag<-,acb-method Imag<-,acf-method Mid Mid,arb-method Mid<- Mid<-,arb-method Num Num,fmpq-method Num<- Num<-,fmpq-method Part Rad Rad,arb-method Rad<- Rad<-,arb-method Real Real,acb-method Real,acf-method Real<- Real<-,acb-method Real<-,acf-method
Fixed Precision Unsigned and Signed Integers!,slong-method !,ulong-method +,slong,missing-method +,ulong,missing-method -,slong,missing-method -,ulong,missing-method .slong .ulong anyNA,slong-method anyNA,ulong-method as.vector,slong-method as.vector,ulong-method coerce,ANY,slong-method coerce,ANY,ulong-method Complex,slong-method Complex,ulong-method initialize,slong-method initialize,ulong-method is.finite,slong-method is.finite,ulong-method is.infinite,slong-method is.infinite,ulong-method is.na,slong-method is.na,ulong-method is.nan,slong-method is.nan,ulong-method is.unsorted,slong-method is.unsorted,ulong-method Math,slong-method Math,ulong-method Math2,slong-method Math2,ulong-method mean,slong-method mean,ulong-method Ops,ANY,slong-method Ops,ANY,ulong-method Ops,slong,acb-method Ops,slong,acf-method Ops,slong,ANY-method Ops,slong,arb-method Ops,slong,arf-method Ops,slong,fmpq-method Ops,slong,fmpz-method Ops,slong,mag-method Ops,slong,slong-method Ops,slong,ulong-method Ops,ulong,acb-method Ops,ulong,acf-method Ops,ulong,ANY-method Ops,ulong,arb-method Ops,ulong,arf-method Ops,ulong,fmpq-method Ops,ulong,fmpz-method Ops,ulong,mag-method Ops,ulong,slong-method Ops,ulong,ulong-method slong slong-class Summary,slong-method Summary,ulong-method ulong ulong-class