25 lines
345 B
PHP
25 lines
345 B
PHP
--TEST--
|
|
Test for method `toMat()`.
|
|
--SKIPIF--
|
|
<?php
|
|
require_once 'includes/loaded.php';
|
|
is_php_arma_loaded();
|
|
?>
|
|
--FILE--
|
|
<?php
|
|
|
|
$mat = Arma\IMat::init(3, 3, Arma\Fill::ZEROS);
|
|
$submat = $mat->submat(1, 1, 2, 2);
|
|
$mat1 = $submat->toMat();
|
|
$mat1->at(0, 0)->setTo(1);
|
|
$mat->rawPrint();
|
|
$mat1->rawPrint();
|
|
|
|
?>
|
|
--EXPECT--
|
|
0 0 0
|
|
0 0 0
|
|
0 0 0
|
|
1 0
|
|
0 0
|