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

42 lines
838 B
PHP

<?php
namespace Arma\Internal;
/**
* Interface for resizable (non-subview) sparse vectors.
*
* @package Arma\Internal
*/
interface SparseResizableVector extends SparseVector, ResizableVector
{
/**
* Construct the vector to have user specified size and fill with specified pattern.
*
* $density should be specified when filling the vector with random values.
*
* @param int $n_elem[optional]
* @param int $fill[optional]
* @param double $density[optional]
* @return static
*/
static function init($n_elem, $fill, $density);
/// Subview
/**
* {@inheritdoc}
*
* @param int $idx
* @return SpMapVal
*/
function __invoke($idx);
/**
* {@inheritdoc}
*
* @param int $idx
* @return SpMapVal
*/
function at($idx);
}