public function compute(Matrix $z) : Matrix
    {
        $zHat = $z->transpose()->exp();

        $total = $zHat->sum();

        return $zHat->divide($total)->transpose();
    }
public function compute(Matrix $z) : Matrix
    {
        $zHat = $z->transpose()->exp();

        $total = $zHat->sum();

        return $zHat->divide($total)->transpose();
    }
public function compute ( Matrix $ z ) : Matrix { $ zHat = $ z -> transpose ( ) -> exp ( ) ; $ total = $ zHat -> sum ( ) ; return $ zHat -> divide ( $ total ) -> transpose ( ) ; }
Compute the output value.

@param \Rubix\Tensor\Matrix $z
@return \Rubix\Tensor\Matrix
Compute the output value .