This repository has been archived on 2020-06-07. You can view files and clone it, but cannot push or open issues or pull requests.
2019-09-21 11:45:08 +00:00
|
|
|
--TEST--
|
2019-10-08 15:44:28 +00:00
|
|
|
Test for method `copySize()`.
|
2019-09-21 11:45:08 +00:00
|
|
|
--SKIPIF--
|
|
|
|
<?php
|
|
|
|
require_once 'includes/loaded.php';
|
|
|
|
is_php_arma_loaded();
|
|
|
|
?>
|
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
|
|
|
|
require_once 'includes/assert.php';
|
|
|
|
|
|
|
|
$imat = Arma\IMat::init(3, 3);
|
|
|
|
$dmat = Arma\DMat::init(2, 5);
|
|
|
|
$dmat->copySize($dmat->submat(0, 1, 1, 3));
|
|
|
|
$imat->copySize($imat->diag());
|
|
|
|
batch_assert('method `copySize()`',
|
|
|
|
[$dmat->nRows(), 2],
|
|
|
|
[$dmat->nCols(), 3],
|
|
|
|
[$imat->nRows(), 3],
|
|
|
|
[$imat->nCols(), 1]
|
|
|
|
);
|
|
|
|
|
|
|
|
?>
|
|
|
|
--EXPECT--
|