Skip to content

Latest commit

 

History

History
15 lines (10 loc) · 770 Bytes

README.md

File metadata and controls

15 lines (10 loc) · 770 Bytes

Matrix-Multiplication

A simple program to multiply two matrices using Fortran

This is part of a numerical problem solving class. A simple program to multiply a 3x3 matrix.

Example

$$\begin{bmatrix}5&1&9\\3&6&3\\5&4&2\end{bmatrix} \times \begin{bmatrix}2&0&6\\3&3&-1\\7&0&5\end{bmatrix} = \begin{bmatrix}76&3&74\\45&18&27\\36&12&36\end{bmatrix}$$

The Program

This program would take an input file name matin.dat with simple matrix element of both A and B in the same file. Sample input file is provided in matin.dat inside code folder. After multiplying the matrices an output file name matout.dat is created. A sample output file is included in the matout.dat inside code folder.