mirror of
https://github.com/Karaka-Management/phpOMS.git
synced 2026-02-09 21:48:41 +00:00
Improve matrix tests
This commit is contained in:
parent
157c6a04ce
commit
ff9f1dbaea
|
|
@ -33,7 +33,7 @@ class IdentityMatrix extends Matrix
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
public function __constrcut(int $n)
|
public function __construct(int $n)
|
||||||
{
|
{
|
||||||
$this->n = $n;
|
$this->n = $n;
|
||||||
$this->m = $n;
|
$this->m = $n;
|
||||||
|
|
|
||||||
|
|
@ -197,7 +197,7 @@ class Matrix implements \ArrayAccess, \Iterator
|
||||||
*
|
*
|
||||||
* @return Matrix
|
* @return Matrix
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \InvalidArgumentException
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -209,7 +209,7 @@ class Matrix implements \ArrayAccess, \Iterator
|
||||||
return $this->add(-$value);
|
return $this->add(-$value);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \Exception('Type');
|
throw new \InvalidArgumentException('Type');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -219,7 +219,7 @@ class Matrix implements \ArrayAccess, \Iterator
|
||||||
*
|
*
|
||||||
* @return Matrix
|
* @return Matrix
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \InvalidArgumentException
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -231,7 +231,7 @@ class Matrix implements \ArrayAccess, \Iterator
|
||||||
return $this->addScalar($value);
|
return $this->addScalar($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \Exception();
|
throw new \InvalidArgumentException();
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -324,7 +324,7 @@ class Matrix implements \ArrayAccess, \Iterator
|
||||||
*
|
*
|
||||||
* @return Matrix
|
* @return Matrix
|
||||||
*
|
*
|
||||||
* @throws \Exception
|
* @throws \InvalidArgumentException
|
||||||
*
|
*
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
|
|
@ -336,7 +336,7 @@ class Matrix implements \ArrayAccess, \Iterator
|
||||||
return $this->multScalar($value);
|
return $this->multScalar($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new \Exception('Type');
|
throw new \InvalidArgumentException('Type');
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user