Find this useful? Enter your email to receive occasional updates for securing PHP code.
Signing you up...
Thank you for signing up!
PHP Decode
--TEST-- NDArray::allclose --FILE-- <?php use \NDArray as nd; $a = nd::array([[1, 2], [3,..
Decoded Output download
--TEST--
NDArray::allclose
--FILE--
<?php
use \NDArray as nd;
$a = nd::array([[1, 2], [3, 4]]);
$b = nd::array([[5, 6], [7, 8]]);
$c = nd::array([9, 10]);
var_dump(nd::allclose($a, $b));
var_dump(nd::allclose($a, $a));
var_dump(nd::allclose($c, $c));
?>
--EXPECT--
bool(false)
bool(true)
bool(true)
Did this file decode correctly?
Original Code
--TEST--
NDArray::allclose
--FILE--
<?php
use \NDArray as nd;
$a = nd::array([[1, 2], [3, 4]]);
$b = nd::array([[5, 6], [7, 8]]);
$c = nd::array([9, 10]);
var_dump(nd::allclose($a, $b));
var_dump(nd::allclose($a, $a));
var_dump(nd::allclose($c, $c));
?>
--EXPECT--
bool(false)
bool(true)
bool(true)
Function Calls
None |
Stats
MD5 | 78019a64a8326832550d872bcf335278 |
Eval Count | 0 |
Decode Time | 76 ms |