matprod.par: Parallel calculation

Description Usage Arguments Details Author(s) Examples

View source: R/matprod_par.R

Description

Matrix calculation parallel execution

Usage

1
matprod.par(cl, A, B)

Arguments

cl

integer, number of cluster

A

Matrix

B

Matrix

Details

The idea is that we will distribute the rows of a matrix A for example on the cores and we will make the matrix product of each group of rows with another matrix B

Author(s)

Sami Ait Tilat, Afaf Ben Haj, Marie Vachet

Examples

1
2
3
4
5
6
7
8
## Not run: 
ncores=8
cl <- makeCluster(ncores)
A <- matrix(round(rnorm(16^2),1),16)
B <- t(A)+4
matprod.par(cl,A,B)

## End(Not run)

samiaittilat/Logistic-Regression-from-scratch-in-R documentation built on Dec. 22, 2021, 10:11 p.m.