## S3 method for class 'memuse':
howmany(x, nrow, ncol, out.type="full", ...,
type="double", intsize=4)
## S3 method for class 'memuse':
howmany.par(x, nrow, ncol, out.type="full", cores=1,
par="row", ..., type="double", intsize=4,
ICTXT=0, bldim=c(4, 4))
memuse
class object.howbig.par()
with par="dmat"
.howmany()
returns a numeric pair, the dimensions of a matrix. howmany.par()
returns a list (the global and local dimensions),
each of which is a numeric pair.
nrow
and ncol
are missing (blank inputs), then
the largest square matrix will be returned. If one of nrow
or
ncol
is supplied and the other is missing, then the non-supplied
argument (nrow
or ncol
) will be determined according to the
supplied one. If both arguments are supplied, an error is produced ---
you probably meant to use howmany()
. If out.type="approximate"
, then a reduced representation of the
dimensions will be returned. For example, the reduced representation of
the number 1234567890 would be "1.2b", since this number is basically
1.2 billion. Not super useful, but kind of cute, and it arguably
enhances readability when fishing for a ballpark figure.
howbig
x <- mu(1, "gib")
# largest square matrix that's 1 GiB
howmany(x)
# same, but ballpark figure
howmany(mu(1, "gib"), out.type="approx")
Run the code above in your browser using DataLab