You are here

function Matrix::get in Recommender API 7.6

Same name and namespace in other branches
  1. 6.2 Matrix.php \Matrix::get()

File

classes/Matrix.php, line 54

Class

Matrix
This PHP file does not require 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 get($row, $column) {
  return isset($this->values[$row][$column]) ? $this->values[$row][$column] : NAN;
}