mypkgs.math =========== .. py:module:: mypkgs.math .. autoapi-nested-parse:: Mathematical operations and linear algebra utilities. Functions --------- .. autoapisummary:: mypkgs.math.multiply_matrices Module Contents --------------- .. py:function:: multiply_matrices(matrix_a, matrix_b) Multiply two matrices using matrix multiplication (dot product). This function utilizes the ``@`` operator for standard 2D matrix multiplication, which is equivalent to calling :obj:`numpy.matmul`. :param matrix_a: The first input matrix (2D array). :type matrix_a: numpy.ndarray :param matrix_b: The second input matrix (2D array). The number of rows in `matrix_b` must strictly match the number of columns in `matrix_a`. :type matrix_b: numpy.ndarray :returns: The resulting matrix from the multiplication. :rtype: numpy.ndarray :raises ValueError: If the inner dimensions of the matrices do not align for multiplication.