scalar_hadamard: scalar-hadamard product

Description Usage Arguments See Also Examples

Description

Simple hadamard of a matrix and a blockmatrix

Usage

1
2
3
  x %sh% y

  scalar_hadamard(x, y)

Arguments

x

a matrix

y

a block-matrix

See Also

scalar_hadamard

Examples

1
2
3
4
5
6
7
8
# blockmatrix
X = blockmatrix(matrix(1:48, 6, 8), rowparts = c(3, 3), colparts = c(4, 4))

# matrix
m = matrix(rep(c(1,2), 6), 3, 4, byrow = TRUE)

# scalar-hadamard
m %sh% X

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