1<?php
2
3namespace Tensor\Benchmarks\Structural;
4
5use Tensor\Vector;
6
7/**
8 * @Groups({"Structural"})
9 * @BeforeMethods({"setUp"})
10 */
11class ReshapeVectorBench
12{
13    /**
14     * @var \Tensor\Vector
15     */
16    protected $a;
17
18    public function setUp() : void
19    {
20        $this->a = Vector::uniform(250000);
21    }
22
23    /**
24     * @Subject
25     * @Iterations(5)
26     * @OutputTimeUnit("seconds", precision=3)
27     */
28    public function reshape() : void
29    {
30        $this->a->reshape(500, 500);
31    }
32}
33