luBench   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 21
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 4
dl 0
loc 21
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

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