row_add#

static vectorious.row_add(x, dest, source, scalar)#

Adds a multiple of one row multiplied by scalar to another inside x.

Arguments:
  • x (NDArray)

  • dest (Number)

  • source (Number)

  • scalar (Number)

Returns:

NDArray

Examples:

import { row_add } from 'vectorious/core/row_add';

row_add([[1, 2], [3, 4]], 1, 0, 2); // => array([[1, 2], [5, 8]])