Skip to content

fdiengdoh/matrix-multiplication

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

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.

About

A simple program to multiply two matrices using Fortran

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published