```python
def sum_of_digits(nums):
    """
    Computes the sum of digits of each number of a given list.
    """
    result = []
    for number in nums:
        # Take the absolute value to handle negative numbers correctly.
        # The sum of digits for -123 is considered 1 + 2 + 3 = 6.
        positive_number = abs(number)
        
        # Convert the number to a string to iterate over its digits.
        number_string = str(positive_number)
        
        current_sum = 0
        for digit_char in number_string:
            # Convert the character back to an integer and add to the sum.
            current_sum += int(digit_char)
        
        result.append(current_sum)
        
    return result
```