rowMultiply: A function to efficiently row multiply a a-by-b matrix by a...

View source: R/F_rowMultiply.R

rowMultiplyR Documentation

A function to efficiently row multiply a a-by-b matrix by a vector of length b. More memory intensive but that does not matter with given matrix sizes

Description

A function to efficiently row multiply a a-by-b matrix by a vector of length b. More memory intensive but that does not matter with given matrix sizes

Usage

rowMultiply(matrix, vector)

Arguments

matrix

a numeric matrix of dimension a-by-b

vector

a numeric vector of length b

Details

t(t(matrix)*vector) but then faster

Value

a matrix, row multplied by the vector


CenterForStatistics-UGent/rransi documentation built on Nov. 13, 2023, 2:07 a.m.