Fix times and power in Shared/JAMA/Matrix
I add $args in count line 1
This commit is contained in:
parent
37669270f5
commit
0c7df7721b
|
@ -1000,7 +1000,7 @@ class Matrix
|
||||||
*/
|
*/
|
||||||
public function times(...$args)
|
public function times(...$args)
|
||||||
{
|
{
|
||||||
if (count() > 0) {
|
if (count($args) > 0) {
|
||||||
$match = implode(',', array_map('gettype', $args));
|
$match = implode(',', array_map('gettype', $args));
|
||||||
|
|
||||||
switch ($match) {
|
switch ($match) {
|
||||||
|
@ -1094,7 +1094,7 @@ class Matrix
|
||||||
*/
|
*/
|
||||||
public function power(...$args)
|
public function power(...$args)
|
||||||
{
|
{
|
||||||
if (count() > 0) {
|
if (count($args) > 0) {
|
||||||
$match = implode(',', array_map('gettype', $args));
|
$match = implode(',', array_map('gettype', $args));
|
||||||
|
|
||||||
switch ($match) {
|
switch ($match) {
|
||||||
|
|
Loading…
Reference in New Issue