This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
php-armadillo/stubs/Mat.php

44 lines
839 B
PHP
Raw Normal View History

2018-11-09 13:56:34 +00:00
<?php
namespace Arma;
2019-03-26 11:54:58 +00:00
/**
* Dense matrix.
*
* @package Arma
*/
2019-03-18 14:49:42 +00:00
abstract class Mat implements Internal\DenseResizableMatrix
2018-11-09 13:56:34 +00:00
{
/**
* Construct the matrix to have user specified dimensions and fill with specified pattern.
*
2019-03-12 10:14:12 +00:00
* @param int $n_rows[optional]
* @param int $n_cols[optional]
2018-11-09 13:56:34 +00:00
* @param int $fill[optional]
2019-03-18 14:49:42 +00:00
* @return Mat
2018-11-09 13:56:34 +00:00
*/
2019-03-18 14:49:42 +00:00
static function init($n_rows, $n_cols, $fill) {
return new static;
}
2018-11-09 13:56:34 +00:00
/**
* Create the matrix from a textual description.
*
* @param string $text
2019-03-18 14:49:42 +00:00
* @return Mat
2018-11-09 13:56:34 +00:00
*/
2019-03-18 14:49:42 +00:00
static function fromString($text) {
return new static;
}
/**
* Create the matrix from a PHP array.
*
* @param array $arr
* @return Mat
*/
static function fromArray($arr) {
return new static;
}
2019-02-05 13:31:16 +00:00
}