Composer fixes

This commit is contained in:
MarkBaker 2021-01-29 17:40:51 +01:00
parent cd2f260db1
commit 8ab02883be
3 changed files with 4 additions and 4 deletions

View File

@ -44,7 +44,7 @@ jobs:
echo "::set-output name=flags::--ignore-platform-reqs"
- name: Install dependencies
run: composer install --no-progress --prefer-dist --optimize-autoloader ${{ steps.composer-lock.outputs.flags }}
run: composer update --no-progress --prefer-dist --optimize-autoloader ${{ steps.composer-lock.outputs.flags }}
- name: Setup problem matchers for PHP
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"

View File

@ -240,11 +240,11 @@ class LUDecomposition
/**
* Solve A*X = B.
*
* @param mixed $B a Matrix with as many rows as A and any number of columns
* @param Matrix $B a Matrix with as many rows as A and any number of columns
*
* @return Matrix X so that L*U*X = B(piv,:)
*/
public function solve($B)
public function solve(Matrix $B)
{
if ($B->getRowDimension() == $this->m) {
if ($this->isNonsingular()) {

View File

@ -205,7 +205,7 @@ class QRDecomposition
*
* @return Matrix matrix that minimizes the two norm of Q*R*X-B
*/
public function solve($B)
public function solve(Matrix $B)
{
if ($B->getRowDimension() == $this->m) {
if ($this->isFullRank()) {