Composer fixes
This commit is contained in:
parent
cd2f260db1
commit
8ab02883be
|
|
@ -44,7 +44,7 @@ jobs:
|
||||||
echo "::set-output name=flags::--ignore-platform-reqs"
|
echo "::set-output name=flags::--ignore-platform-reqs"
|
||||||
|
|
||||||
- name: Install dependencies
|
- 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
|
- name: Setup problem matchers for PHP
|
||||||
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
run: echo "::add-matcher::${{ runner.tool_cache }}/php.json"
|
||||||
|
|
|
||||||
|
|
@ -240,11 +240,11 @@ class LUDecomposition
|
||||||
/**
|
/**
|
||||||
* Solve A*X = B.
|
* 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,:)
|
* @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 ($B->getRowDimension() == $this->m) {
|
||||||
if ($this->isNonsingular()) {
|
if ($this->isNonsingular()) {
|
||||||
|
|
|
||||||
|
|
@ -205,7 +205,7 @@ class QRDecomposition
|
||||||
*
|
*
|
||||||
* @return Matrix matrix that minimizes the two norm of Q*R*X-B
|
* @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 ($B->getRowDimension() == $this->m) {
|
||||||
if ($this->isFullRank()) {
|
if ($this->isFullRank()) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue