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.
php-armadillo/tests/017-set-real-imag.phpt

24 lines
415 B
PHP

--TEST--
Test for methods `setReal()` and `setImag()`.
--SKIPIF--
<?php
require_once 'includes/loaded.php';
is_php_arma_loaded();
?>
--FILE--
<?php
$cx_dmat = Arma\CxDMat::fromString('(1,2) (3,4); (5,6) (7,8)');
$dmat = Arma\DMat::fromString('3 5; 7 9');
$cx_dmat->setImag($dmat);
$cx_dmat->rawPrint();
$cx_dmat->setReal($dmat);
$cx_dmat->rawPrint();
?>
--EXPECT--
(1,3) (3,5)
(5,7) (7,9)
(3,3) (5,5)
(7,7) (9,9)