hadamard_scalar: hadamard-scalar product

Description Usage Arguments See Also Examples

Description

Hadamard-scalar product of a matrix and a blockmatrix

Usage

1
2
3
  x %hs% y

  hadamard_scalar(x, y)

Arguments

x

a matrix

y

a block-matrix

See Also

hadamard_usual

Examples

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

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

# hadamard-scalar
m %hs% X

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