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

54 lines
1.0 KiB
PHP
Raw Normal View History

2019-03-07 15:19:47 +00:00
<?php
namespace Arma\Internal;
2019-03-08 14:15:02 +00:00
/**
* Interface for diagonal subview of matrix (Mat and SpMat).
*
* @package Arma\Internal
*/
2019-03-13 15:19:05 +00:00
interface Diagonal extends Common, Subview
2019-03-07 15:19:47 +00:00
{
/**
* Sets the elements to a specified value. The type of value must match the type of elements used by
* the container object.
*
*
* @param number|\Arma\Complex $value
* @return void
*/
function fill($value);
/**
* Set the elements of an object to zero.
*
* @return void
*/
function zeros();
/**
* Set all the elements of an object to one.
*
* @return void
*/
function ones();
/**
* Set all the elements to random values.
*
* Uses a uniform distribution in the [0,1] interval.
*
* @return void
*/
function randu();
/**
* Set all the elements to random values.
*
* Uses a normal/Gaussian distribution with zero mean and unit variance.
*
* @return void
*/
function randn();
}