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

Description Usage Arguments Details Value

View source: R/F_rowMultiply.R

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

1

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


reconsi documentation built on Nov. 8, 2020, 5:04 p.m.

Related to rowMultiply in reconsi...