dimops: matsums

Description Usage Arguments Value

Description

Compute the sums/means of the rows/columns of a matrix.

Sweep a vector through the rows/cols of a matrix using an arithmetic operation.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11

Arguments

x

Input matrix.

s

Either NULL or an already allocated fml matrix of the same class and type as x.

op

The operation: SWEEP_ADD, SWEEP_SUB, SWEEP_MUL, or SWEEP_DIV.

Value

Returns the matrix sum.

Returns the matrix sum.


fml-fam/fmlr documentation built on Jan. 16, 2022, 9:27 a.m.