hadamard_hadamard: hadamard-hadamard product

Description Usage Arguments See Also Examples

Description

Hadamard-hadamard product of a blockmatrix and a blockmatrix

Usage

1
2
3
  x %hh% y

  hadamard_hadamard(x, y)

Arguments

x

a block-matrix

y

a block-matrix

See Also

hadamard_scalar

Examples

1
2
3
4
5
6
7
# blockmatrix
X = blockmatrix(matrix(1:25, 5, 5), rowparts = c(2, 3), colparts = c(2, 3))
Y = blockmatrix(matrix(rep(1:5, 5), 5, 5),
        rowparts = c(2, 3), colparts = c(2, 3))

# hadamard-hadamard
X %hh% Y

gastonstat/blockberry documentation built on May 16, 2019, 5:44 p.m.