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

102 lines
1.6 KiB
PHP
Raw Normal View History

2019-03-18 14:49:42 +00:00
<?php
namespace Arma\Internal;
2019-04-04 08:07:37 +00:00
use Arma\SpSvMat;
use Arma\SpDiagView;
2019-03-18 14:49:42 +00:00
/**
2019-03-27 08:29:00 +00:00
* Interface for sparse matrices.
2019-03-18 14:49:42 +00:00
*
* @package Arma
*/
interface SparseMatrix extends Sparse, Matrix
{
// Subview
/**
* {@inheritdoc}
*
* @param int $col_number
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
function col($col_number);
/**
* {@inheritdoc}
*
* @param int $row_number
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
function row($row_number);
/**
* {@inheritdoc}
*
* @param int $first_col
* @param int $last_col
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
function cols($first_col, $last_col);
/**
* {@inheritdoc}
*
* @param int $first_row
* @param int $last_row
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
function rows($first_row, $last_row);
/**
* {@inheritdoc}
*
* @param int $first_row
* @param int $first_col
* @param int $last_row
* @param int $last_col
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
function submat($first_row, $first_col, $last_row, $last_col);
/**
* {@inheritdoc}
*
* @param int $n_cols
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
2019-05-25 18:20:02 +00:00
function headCols($n_cols);
2019-03-18 14:49:42 +00:00
/**
* {@inheritdoc}
*
* @param int $n_rows
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
2019-05-25 18:20:02 +00:00
function headRows($n_rows);
2019-03-18 14:49:42 +00:00
/**
* {@inheritdoc}
*
* @param int $n_cols
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
2019-05-25 18:20:02 +00:00
function tailCols($n_cols);
2019-03-18 14:49:42 +00:00
/**
* {@inheritdoc}
*
* @param int $n_rows
2019-04-04 08:07:37 +00:00
* @return SpSvMat
2019-03-18 14:49:42 +00:00
*/
2019-05-25 18:20:02 +00:00
function tailRows($n_rows);
2019-03-18 14:49:42 +00:00
/**
* {@inheritdoc}
*
* @param int $k[optional]
2019-04-04 08:07:37 +00:00
* @return SpDiagView
2019-03-18 14:49:42 +00:00
*/
function diag($k = 0);
}