public static function maximum(Vector $a, Vector $b) : self
    {
        if ($a->n() !== $b->n()) {
            throw new DimensionalityMismatchException('Vector A requires'
                . " {$a->n()} elements but Vector B has{$b->n()}.");
        }

        $c = array_map('max', $a->asArray(), $b->asArray());

        return static::quick($c);
    }
public static function maximum(Vector $a, Vector $b) : self
    {
        if ($a->n() !== $b->n()) {
            throw new DimensionalityMismatchException('Vector A requires'
                . " {$a->n()} elements but Vector B has{$b->n()}.");
        }

        $c = array_map('max', $a->asArray(), $b->asArray());

        return static::quick($c);
    }
public static function maximum ( Vector $ a , Vector $ b ) : self { if ( $ a -> n ( ) !== $ b -> n ( ) ) { throw new DimensionalityMismatchException ( 'Vector A requires' . " {$a->n()} elements but Vector B has{$b->n()}." ) ; } $ c = array_map ( 'max' , $ a -> asArray ( ) , $ b -> asArray ( ) ) ; return static :: quick ( $ c ) ; }
Return the elementwise maximum of two vectors.

@param \Rubix\Tensor\Vector $a
@param \Rubix\Tensor\Vector $b
@throws \Rubix\Tensor\Exceptions\DimensionalityMismatchException
@return self
Return the elementwise maximum of two vectors .