cii-text-analysis/vendor/rubix/tensor/benchmarks/Structural/SubMatrixBench.php
Jéremy Munsch f68d2ac333
premier poc
2026-02-11 08:24:04 +01:00

32 lines
514 B
PHP

<?php
namespace Tensor\Benchmarks\Structural;
use Tensor\Matrix;
/**
* @Groups({"Structural"})
* @BeforeMethods({"setUp"})
*/
class SubMatrixBench
{
/**
* @var \Tensor\Matrix
*/
protected $a;
public function setUp() : void
{
$this->a = Matrix::uniform(500, 500);
}
/**
* @Subject
* @Iterations(5)
* @OutputTimeUnit("seconds", precision=3)
*/
public function subMatrix() : void
{
$this->a->subMatrix(100, 100, 350, 350);
}
}