cii-text-analysis/vendor/rubix/tensor/benchmarks/Structural/FlattenMatrixBench.php

33 lines
496 B
PHP
Raw Permalink Normal View History

2026-02-10 16:19:59 +01:00
<?php
namespace Tensor\Benchmarks\Structural;
use Tensor\Matrix;
/**
* @Groups({"Structural"})
* @BeforeMethods({"setUp"})
*/
class FlattenMatrixBench
{
/**
* @var \Tensor\Matrix
*/
protected $a;
public function setUp() : void
{
$this->a = Matrix::uniform(500, 500);
}
/**
* @Subject
* @Iterations(5)
* @OutputTimeUnit("seconds", precision=3)
*/
public function flatten() : void
{
$this->a->flatten();
}
}