hmult {exvatools}R Documentation

Hadamard product of matrices

Description

Hadamard product, i.e., element by element product of matrix df1 and matrix df2 (by blocks). Both matrices must be block matrices, and the number and dimension of blocks in matrix df1 and df2 must be compatible.

Usage

hmult(df1, df2)

Arguments

df1

A block matrix with named rows and columns (country/sector)

df2

A block matrix with named rows and columns (country/sector)

Details

In a Hadamard product, matrices are multiplied block by block, i.e., block (s,r) %*% block(s,r).

Value

Hadamard product of the two matrices.


[Package exvatools version 0.8.0 Index]