mxm
mxm,
a Python code which
sets up a matrix-matrix multiplication problem A = B * C,
and carries it out using
-
Nested DO I, J, K loops;
-
Nested DO I, K, J loops;
-
Nested DO J, I, K loops;
-
Nested DO J, K, I loops;
-
Nested DO K, I, J loops;
-
Nested DO K, J, I loops;
-
the numpy matmul() function: A = np.matmul ( B, C );
The user is allowed to specify N1, N2, and N3, which define
the matrix sizes.
Usage:
mxm n1 n2 n3
where
-
n1 is the number of rows in B.
-
n2 is the number of columns in B and rows in C.
-
n3 is the number of columns in C;
Licensing:
The information on this web page is distributed under the MIT license.
Languages:
mxm is available in
a C version and
a C++ version and
a Fortran77 version and
a Fortran90 version and
a MATLAB version and
an Octave version and
a Python version.
Related Data and Programs:
timer_test,
a Python code which
demonstrates how to compute CPU time or elapsed time.
Reference:
-
John Burkardt, Paul Puglielli,
Pittsburgh Supercomputing Center,
MATMUL: An Interactive Matrix Multiplication Benchmark
Source Code:
Last revised on 01 January 2024.