mat.mult: Matrix multiplication, Cross and Tcross product.

View source: R/matrix.R

Matrix multiplicationR Documentation

Matrix multiplication, Cross and Tcross product.

Description

Matrix multiplication, Cross and Tcross product.

Usage

mat.mult(x, y)
Crossprod(x,y)
Tcrossprod(x,y)

Arguments

x

A numerical matrix.

y

A numerical matrix.

Details

The functions performs matrix multiplication, croos product and transpose cross product. There are faster(!) than R's function for large matrices. Depending on the computer, maybe higher dimensions are required for the function to make a difference. The function runs in parallel in C++.

Value

A matrix, the result of the matrix multiplication.

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>

See Also

transpose, colsums

Examples


x <- matrnorm(100, 100)
y <- matrnorm(100, 100)
a <- x 
b <- mat.mult(x, y)
b <- Crossprod(x, y)
b <- Tcrossprod(x, y)
x <- NULL
y <- NULL
b <- NULL


Rfast documentation built on Nov. 9, 2023, 5:06 p.m.