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/Dense.php
2019-03-18 22:49:42 +08:00

82 lines
1.7 KiB
PHP

<?php
namespace Arma\Internal;
/**
* Interface for objects with a dense layout (Mat, Col and Row).
*
* @package Arma\Internal
*/
interface Dense extends Base
{
/**
* Element-wise equality evaluation of two objects.
*
*
* @param static $other
* @return \Arma\IMat
*/
function equals($other);
/**
* Element-wise non-equality evaluation of two objects.
*
* @param static $other
* @return \Arma\IMat
*/
function notEquals($other);
/**
* Element-wise "greater than" evaluation of two objects.
*
* @param static $other
* @return \Arma\IMat
*/
function greaterThan($other);
/**
* Element-wise "smaller than" evaluation of two objects.
*
* @param static $other
* @return \Arma\IMat
*/
function smallerThan($other);
/**
* Element-wise "not greater than" evaluation of two objects.
*
* @param static $other
* @return \Arma\IMat
*/
function notGreaterThan($other);
/**
* Element-wise "not smaller than" evaluation of two objects.
*
* @param static $other
* @return \Arma\IMat
*/
function notSmallerThan($other);
/**
* Sets the elements to a specified value. The type of value must match the type of elements used by
* the container object.
*
* For matrices, filling is done column-by-column.
*
* @param number|\Arma\Complex $value
* @return void
*/
function fill($value);
/**
* Fill with values provided by a callback function.
*
* For matrices, filling is done column-by-column.
*
* @param callable $callback () => $fill_value
* @return void
*/
function imbue($callback);
}