You are here

function Matrix::set in Recommender API 6.2

Same name and namespace in other branches
  1. 7.6 classes/Matrix.php \Matrix::set()

File

./Matrix.php, line 54

Class

Matrix
This PHP file has to work with Drupal. Including both Matrix and Vector implementation. Missing data are treated as NAN. Some extra complexity comes from trying to increase memory/cpu performance Note, this implementation does check input parameters.…

Code

function set($row, $column, $value) {
  $this->values[$row][$column] = $value;

  // we assume no OutOfIndexException.
}