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/ResizableVector.php

36 lines
845 B
PHP
Raw Normal View History

2019-03-10 15:23:11 +00:00
<?php
namespace Arma\Internal;
2019-03-13 15:19:05 +00:00
/**
2019-03-27 08:29:00 +00:00
* Interface for resizable (non-subview) vectors.
2019-03-13 15:19:05 +00:00
*
* @package Arma\Internal
*/
2019-03-18 14:49:42 +00:00
interface ResizableVector extends Resizable, Vector
2019-03-10 15:23:11 +00:00
{
/**
* Recreate the object according to given size specifications, while preserving the elements
* as well as the layout of the elements.
*
* @param int $n_elem
* @return void
*/
function resize($n_elem);
/**
* Change the size of an object, without explicitly preserving data and without initialising the elements.
*
* @param int $n_elem
* @return void
*/
function setSize($n_elem);
2019-03-18 14:49:42 +00:00
/**
* Set the elements of an object to zero, optionally first changing the size to specified dimensions.
*
* @param int $n_elem[optional]
2019-06-12 03:06:18 +00:00
* @return $this
2019-03-18 14:49:42 +00:00
*/
function zeros($n_elem);
2019-03-10 15:23:11 +00:00
}