```python
def sum_of_digits(nums):
    """
    Computes the sum of digits for each number in a given list.

    Args:
        nums: A list of integers.

    Returns:
        A list of integers, where each element is the sum of the digits
        of the corresponding number in the input list.
    """
    return [sum(int(digit) for digit in str(abs(num))) for num in nums]

```