#!/usr/bin/env python3
""" defines function that performs matrix multiplication with numpy """


import numpy as np


def np_matmul(mat1, mat2):
    """ performs matrix multiplication using numpy.ndarrays """
    return (np.matmul(mat1, mat2))
