rowMultiply: A function to efficiently row multiply a matrix and a vector

View source: R/rowMultiply.R

rowMultiplyR Documentation

A function to efficiently row multiply a matrix and a vector

Description

A function to efficiently row multiply a matrix and a vector

Usage

rowMultiply(matrix, vector)

Arguments

matrix

a numeric matrix of dimension a-by-b

vector

a numeric vector of length b

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

Details

Memory intensive but that does not matter with given matrix sizes

Value

a matrix, row multplied by the vector


CenterForStatistics-UGent/compIntegrate documentation built on Aug. 4, 2023, 1:08 p.m.