40 lines
1018 B
PHP
40 lines
1018 B
PHP
<?php
|
|
|
|
namespace Arma\Internal;
|
|
|
|
interface DenseResizableMatrix extends DenseMatrix, ResizableMatrix
|
|
{
|
|
// Initialization
|
|
|
|
/**
|
|
* Set all the elements of an object to one, optionally first changing the size to specified dimensions.
|
|
*
|
|
* @param int $n_rows[optional]
|
|
* @param int $n_cols[optional]
|
|
* @return void
|
|
*/
|
|
function ones($n_rows, $n_cols);
|
|
|
|
/**
|
|
* Set all the elements to random values, optionally first changing the size to specified dimensions.
|
|
*
|
|
* Uses a uniform distribution in the [0,1] interval.
|
|
*
|
|
* @param int $n_rows
|
|
* @param int $n_cols
|
|
* @return void
|
|
*/
|
|
function randu($n_rows, $n_cols);
|
|
|
|
/**
|
|
* Set all the elements to random values, optionally first changing the size to specified dimensions.
|
|
*
|
|
* Uses a normal/Gaussian distribution with zero mean and unit variance.
|
|
*
|
|
* @param int $n_rows
|
|
* @param int $n_cols
|
|
* @return void
|
|
*/
|
|
function randn($n_rows, $n_cols);
|
|
}
|