Learn R Programming

Brobdingnag (version 1.2-9)

brobmat.mult: Brobdingagian matrix arithmetic

Description

Basic arithmetic for Brobdingnagian matrices

Usage

brobmat.mult(e1, e2)
brobmat.add(e1, e2)
brobmat.mult(e1, e2)
brobmat.power(e1, e2)
brobmat.inverse(e1)
brobmat.greater(e1, e2)
brobmat.equal(e1, e2)
getat(e1,e2)

Value

Return a brobmat, or logical for the comparison operators.

Arguments

e1,e2

Arguments coerced to brobmat

Author

Robin K. S. Hankin

Details

These functions are helper functions used by the brobmat Arith group and are not designed to be user-friendly. Function getat() is a helper function that sets attributes such as dimnames of returned values.

Examples

Run this code
a <- brobmat(1:54,6,9)
rownames(a) <- letters[1:6]
a + 1e30
a-a

b <- as.brobmat(matrix(rnorm(27),9,3))
colnames(b) <- month.abb[1:3]

a %*% b

Run the code above in your browser using DataLab