hmult: Hadamard product of matrices

View source: R/matrix_mult.R

hmultR 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.


exvatools documentation built on Sept. 17, 2024, 1:07 a.m.