row_add: Add one row to a multiple of another row

View source: R/row_operations.R

row_addR Documentation

Add one row to a multiple of another row

Description

Add one row to a multiple of another row

Usage

row_add(A, row1, row2, a)

Arguments

A

The matrix of which to add multiple of one row to another

row1

The row to be modified

row2

The row to be multiplied and added to row1

a

The number to multiply by row 2

Value

The matrix A where row1 is added to a times row 2

Examples


A <- diag(3)
row_add(A, 2, 3, -2)


jtipton25/dasc2594 documentation built on Oct. 7, 2022, 3:46 p.m.