bind-methods: "mpfr" '...' - Methods for Functions cbind(), rbind()

Description Usage Arguments Value Methods Author(s) See Also Examples

Description

cbind and rbind methods for signature ... (see dotsMethods are provided for class Mnumber, i.e., for binding numeric vectors and class "mpfr" vectors and matrices ("mpfrMatrix") together.

Usage

1
2
cbind(..., deparse.level = 1)
rbind(..., deparse.level = 1)

Arguments

...

matrix-/vector-like R objects to be bound together, see the base documentation, cbind.

deparse.level

integer determining under which circumstances column and row names are built from the actual arguments' ‘expression’, see cbind.

Value

typically a ‘matrix-like’ object, here typically of class "mpfrMatrix".

Methods

... = "Mnumber"

is used to (c|r)bind multiprecision “numbers” (inheriting from class "mpfr") together, maybe combined with simple numeric vectors.

... = "ANY"

reverts to cbind and rbind from package base.

Author(s)

Martin Maechler

See Also

cbind2, cbind, Documentation in base R's methods package

Examples

1
  cbind(1, mpfr(6:3, 70)/7, 3:0)

Example output

Loading required package: gmp

Attaching package: 'gmp'

The following objects are masked from 'package:base':

    %*%, apply, crossprod, matrix, tcrossprod

C code of R package 'Rmpfr': GMP using 64 bits per limb


Attaching package: 'Rmpfr'

The following objects are masked from 'package:stats':

    dbinom, dnorm, dpois, pnorm

The following objects are masked from 'package:base':

    cbind, pmax, pmin, rbind

'mpfrMatrix' of dim(.) =  (4, 3) of precision  53 .. 70  bits 
     [,1]               [,2]                      [,3]                    
[1,] 1.0000000000000000 0.85714285714285714285738 3.0000000000000000000000
[2,] 1.0000000000000000 0.71428571428571428571392 2.0000000000000000000000
[3,] 1.0000000000000000 0.57142857142857142857131 1.0000000000000000000000
[4,] 1.0000000000000000 0.42857142857142857142869 0.0000000000000000000000

Rmpfr documentation built on July 31, 2018, 1 a.m.