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

33 lines
504 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 MatrixTransposeBench
{
/**
* @var \Tensor\Matrix
*/
protected $a;
public function setUp() : void
{
$this->a = Matrix::uniform(1000, 1000);
}
/**
* @Subject
* @Iterations(5)
* @OutputTimeUnit("seconds", precision=3)
*/
public function transpose() : void
{
$this->a->transpose();
}
}