/**
* @param $column
*
* @return array
*
* @throws MatrixException
*/
public function getColumnValues($column)
{
if ($column >= $this->columns) {
throw MatrixException::columnOutOfRange();
}
$values = [];
for ($i = 0; $i < $this->rows; ++$i) {
$values[] = $this->matrix[$i][$column];
}
return $values;
}