sweep_arithmetic: Binary operators, add/subtract/multiply/divide a vector to a...

sweep_arithmeticR Documentation

Binary operators, add/subtract/multiply/divide a vector to a matrix row by row. i.e. each row of the matrix is added/subtracted/etc by the same vector

Description

Binary operators, add/subtract/multiply/divide a vector to a matrix row by row. i.e. each row of the matrix is added/subtracted/etc by the same vector

Usage

x %_+_% y

x %_-_% y

x %_*_% y

x %_/_% y

Arguments

x

matrix or vector

y

matrix or vector (one of x and y needs to be a vector of length equal to the number of columns of the other)


wangtengyao/putils documentation built on Nov. 26, 2024, 2:01 a.m.