29 lines
612 B
PHP
29 lines
612 B
PHP
<?php
|
|
|
|
namespace Arma;
|
|
|
|
abstract class Mat implements Internal\DenseResizableMatrix
|
|
{
|
|
/**
|
|
* Construct the matrix to have user specified dimensions and fill with specified pattern.
|
|
*
|
|
* @param int $n_rows[optional]
|
|
* @param int $n_cols[optional]
|
|
* @param int $fill[optional]
|
|
* @return Mat
|
|
*/
|
|
static function init($n_rows, $n_cols, $fill) {
|
|
return new static;
|
|
}
|
|
|
|
/**
|
|
* Create the matrix from a textual description.
|
|
*
|
|
* @param string $text
|
|
* @return Mat
|
|
*/
|
|
static function fromString($text) {
|
|
return new static;
|
|
}
|
|
}
|