Class "Mnumber" and "mNumber" of "mpfr" and regular numbers and arrays from them
Classes "Mnumber"
"mNumber"
are class unions of "mpfr"
and regular numbers and arrays from them.
Its purpose is for method dispatch, notably defining a
cbind(...)
method where ...
contains objects of one of
the member classes of "Mnumber"
.
Classes "mNumber"
is considerably smaller is it does not
contain "matrix"
and "array"
since these also extend "character"
which is not really desirable for generalized numbers.
It extends the simple "numericVector"
class by mpfr*
classes.
signature(x = "mpfrMatrix", y = "Mnumber")
: ...
signature(x = "mpfr", y = "Mnumber")
: ...
signature(x = "Mnumber", y = "mpfr")
: ...
etc. These are documented with the classes mpfr
and or mpfrMatrix
.
the array_or_vector
sub class;
cbind-methods
.
## "Mnumber" encompasses (i.e., "extends") quite a few ## "vector / array - like" classes: showClass("Mnumber") stopifnot(extends("mpfrMatrix", "Mnumber"), extends("array", "Mnumber")) Mnsub <- names(getClass("Mnumber")@subclasses) (mNsub <- names(getClass("mNumber")@subclasses)) ## mNumber has *one* subclass which is not in Mnumber: setdiff(mNsub, Mnsub)# namely "numericVector" ## The following are only subclasses of "Mnumber", but not of "mNumber": setdiff(Mnsub, mNsub)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.