#NEWLINE# def batch_matmul( a , b , transa = False , transb = False ) : #NEWLINE# #INDENT# "Computes the batch matrix multiplications of two sets of arrays.\n\n    Args:\n        a (Variable): The left operand of the batch matrix multiplications.\n            A 2-D array of shape ``(B, N)`` is considered as B\n            :math:`N \\times 1` matrices.\n            A 3-D array of shape ``(B, M, N)`` is considered as B\n            :math:`M \\times N` matrices.\n        b (Variable): The right operand of the batch matrix multiplications.\n            Its array is treated as matrices in the same way as ``a``'s array.\n        transa (bool): If ``True``, transpose each matrix in a.\n        transb (bool): If ``True``, transpose each matrix in b.\n\n    Returns:\n        ~chainer.Variable: The result of the batch matrix multiplications as a\n            3-D array.\n    " #NEWLINE# return BatchMatMul ( transa = transa , transb = transb ) ( a , transb )