eignBench   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 5
dl 0
loc 24
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A eign() 0 3 1
A setUp() 0 5 1
1
<?php
2
3
namespace Np\benchmarks\matrix\decomposition;
4
5
use Np\matrix;
6
7
/**
8
 * @Groups({"Decompositions"})
9
 */
10
class eignBench
11
{
12
    /**
13
     * @var \Np\matrix
14
     */
15
    protected $a;
16
17
    public function setUp() : void
18
    {
19
        $this->a = matrix::uniform(500, 500);
20
21
        $this->a = $this->a->dot($this->a);
22
    }
23
24
    /**
25
     * @Subject
26
     * @Iterations(5)
27
     * @revs(5)
28
     * @BeforeMethods({"setUp"})
29
     * @OutputTimeUnit("seconds", precision=3)
30
     */
31
    public function eign() : void
32
    {
33
        $this->a->eign();
34
    }
35
}
36