mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-01-11 17:58:41 +00:00
19 lines
299 B
PHP
19 lines
299 B
PHP
abstract class Matrix {
|
|
private $matrix = null;
|
|
|
|
public function __construct() {
|
|
|
|
}
|
|
|
|
public function setColumn($i, $vector) {
|
|
$this->matrix[$i] = $vector;
|
|
}
|
|
|
|
public function setRow($i, $vector) {
|
|
$count = count($vector)-1;
|
|
|
|
for($c = 0; $c < $count; $c++) {
|
|
$this->matrix[$c][$i] = $vector[$c];
|
|
}
|
|
}
|
|
} |