Matrix multiplication. Multiply m×n matrix A with n×p matrix B to get m×p matrix C = AB
Dimension of the matrix A : ×
Dimension of the matrix B : ×
A =
B =
C = AB =
Multiply matrices specified in the file to be uploaded. Result is returned as a file to be downloaded. Output file format is the same as the format of the input file.File format:
File must be ASCII file.
File can contain multiple sets of matrices. Each set contains two or more matrices to be multiplied.
Each set of matrices to be multiplied is preceded by a keyword MATRIX (case insensitive), optionally followed by the alphanumeric id. If id is ommited, sequential number is assigned as an id by default.
Next line in the file must contain a single integer specifying the number of matrices in that set.
Each matrix in the set is preceded by a line that must contain two comma (',') separated integers, specifying the dimensions of the matrix. For each two consecutive matrices in the set, number of columns of a preceeding matrix must be equal to the number of rows of a following matrix.
Next, each matrix is represented by a sequence of its rows, each row in a separate line.
Elements of the matrix in a single row are separated by a single comma character. Comma can't be used inside the number's representation.
Each element of a matrix must be a number in a decimal form, either as an integer or a floating point number. Exponent notation (e or E) can't be used.
All whitespaces surrounding numbers are ignored, as are the empty lines.