update default param value of `j()`.

This commit is contained in:
CismonX 2019-12-10 15:28:09 +08:00
parent 0134e6427d
commit da3a6aee74
2 changed files with 2 additions and 2 deletions

View File

@ -27,7 +27,7 @@ namespace php_arma
PHP_FUNCTION(j)
{
double imag = 0.;
double imag = 1.;
ZEND_PARSE_PARAMETERS_START(0, 1)
Z_PARAM_OPTIONAL
Z_PARAM_DOUBLE(imag)

View File

@ -17,7 +17,7 @@ function cx_double($real = 0., $imag = 0.) {}
* @param double $imag[optional]
* @return CxDouble
*/
function j($imag = 0.) {}
function j($imag = 1.) {}
/**
* Change the RNG seed (used within the php-armadillo extension).