eignBench::eign()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 1
nc 1
nop 0
dl 0
loc 3
rs 10
c 0
b 0
f 0
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