Skip to contents

Performs matrix multiplication using R's BLAS. This function is merely a wrapper for the BLAS dgemm function.

Usage

cpuMatMult(a, b)

Arguments

a

a numeric matrix.

b

a numeric matrix.

Value

A numeric matrix. The matrix is just the product of arguments 'a' and 'b'.

Examples

matA <- matrix(runif(2*3), 2, 3)
matB <- matrix(runif(3*4), 3, 4)
cpuMatMult(matA, matB)
#>           [,1]      [,2]      [,3]      [,4]
#> [1,] 0.2196993 0.5891015 0.1982172 0.2587013
#> [2,] 0.8026774 0.8636260 0.2665793 0.2563847