src/PHPSci/Kernel/CArray/Wrapper.php
public static function sum(\CArray $a, int $axis = null): \CArray
    {
        if (!isset($axis)) {
            return parent::sum($a);
        }

        return parent::sum($a, $axis);
    }
public static function sum(\CArray $a, int $axis = null): \CArray
    {
        if (!isset($axis)) {
            return parent::sum($a);
        }

        return parent::sum($a, $axis);
    }
public static function sum ( \ CArray $ a , int $ axis = null ) : \ CArray { if ( ! isset ( $ axis ) ) { return parent :: sum ( $ a ) ; } return parent :: sum ( $ a , $ axis ) ; }
Sum of target CArray elements over a given axis.

@param \CArray $a Target CArray
@param int $axis  (Optional) Axis or axes along which a sum is performed.
Defaults to null.

@return \CArray   An CArray with the same shape as $a, with the specified axis removed.
Sum of target CArray elements over a given axis .