matrix_multiplication
Multiply two matrices by supplying rows as lists of lists; returns the resulting product matrix or an error message.
Instructions
Multiplies two matrices.
Args: matrix_a: The first matrix as a list of lists. matrix_b: The second matrix as a list of lists.
Returns: On success: {"result": } On error: {"error": }
Examples: >>> matrix_multiplication([[1, 2], [3, 4]], [[5, 6], [7, 8]]) {'result': [[19, 22], [43, 50]]}
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| matrix_a | Yes | ||
| matrix_b | Yes |