Skip to main content

builtin_kronecker

Function builtin_kronecker 

Source
fn builtin_kronecker(
    args: &[RValue],
    named: &[(String, RValue)],
) -> Result<RValue, RError>
Expand description

Kronecker product of two matrices (or vectors treated as single-column matrices).

The default FUN is “*” (standard Kronecker product). The result has dimensions (nrow(A)*nrow(B)) x (ncol(A)*ncol(B)).

Can also be called via the %x% operator: A %x% B.

@param A numeric matrix or vector @param B numeric matrix or vector @param FUN the function to apply element-wise: “*” (default), “+”, “-”, “/” @return a numeric matrix @namespace base