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/internal/ResizableMatrix.php

38 lines
979 B
PHP
Raw Normal View History

2019-03-10 15:23:11 +00:00
<?php
namespace Arma\Internal;
interface ResizableMatrix extends Resizable
{
/**
* Recreate the object according to given size specifications, with the elements taken from the
* previous version of the object in a column-wise manner.
*
* The elements in the generated object are placed column-wise.
*
* @param int $n_rows
* @param int $n_cols
* @return void
*/
function reshape($n_rows, $n_cols);
/**
* Recreate the object according to given size specifications, while preserving the elements
* as well as the layout of the elements.
*
* @param int $n_rows
* @param int $n_cols
* @return void
*/
function resize($n_rows, $n_cols);
/**
* Change the size of an object, without explicitly preserving data and without initialising the elements.
*
* @param int $n_rows
* @param int $n_cols
* @return void
*/
function setSize($n_rows, $n_cols);
}