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