matrixClippingUpperBench   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 24
Duplicated Lines 0 %

Importance

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

2 Methods

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