[MAP Logo]

Materials Algorithms Project
Program Library



Subroutine MAP_UTIL_PROD

  1. Provenance of code.
  2. Purpose of code.
  3. Specification.
  4. Description of subroutine's operation.
  5. References.
  6. Parameter descriptions.
  7. Error indicators.
  8. Accuracy estimate.
  9. Any additional information.
  10. Example of code
  11. Auxiliary subroutines required.
  12. Keywords.
  13. Download source code.
  14. Links.

Provenance of Source Code

H.K.D.H. Bhadeshia,
Phase Transformations Group,
Department of Materials Science and Metallurgy,
University of Cambridge,
Cambridge, U.K.

Top | Next

Purpose

To calculate the product of two 3x3 matrices.

Top | Next | Prev

Specification

Language:FORTRAN
Product form:Source code

SUBROUTINE MAP_UTIL_PROD(A,B,C)

REAL A(9),B(9),C(9)

Top | Next | Prev

Description

MAP_UTIL_PROD calculates the matrix product A of the two 3x3 matrices B and C. A, B and C are in vector form.

Top | Next | Prev

References

None supplied.

Top | Next | Prev

Parameters

Input parameters

B,C - real arrays of dimension 9.
B and C are input marices in vector form.

Output parameters

A - real array of dimension 9.
A contains the product of B and C.

Top | Next | Prev

Error Indicators

None.

Top | Next | Prev

Accuracy

No information supplied.

Top | Next | Prev

Further Comments

Used by the crystal analysis program MAP_CRYSTAL_PROGRAM.

Top | Next | Prev

Example

1. Program text

       REAL A(9), B(9), C(9)
       INTEGER I
       READ (5,*) (B(I), I=1,9)
       READ (5,*) (C(I), I=1,9)
       CALL MAP_UTIL_PROD(A, B, C)
       WRITE (6,*) (A(I), I=1,9)
       STOP
       END

2. Program data

 1.0   2.0   0.0   3.0  -1.0   1.0   4.0  -2.0   1.0
-2.0   1.0  -3.0   4.0  -1.0   0.0   3.0   1.0   2.0

3. Program results

6.0  -1.0  -3.0  -7.0   5.0  -7.0  -13.0   7.0  -10.0

Top | Next | Prev

Auxiliary Routines

None.

Top | Next | Prev

Keywords

product

Top | Next | Prev

Download

Download source code

Top | Prev


MAP originated from a joint project of the National Physical Laboratory and the University of Cambridge.

MAP Website administration / map@msm.cam.ac.uk

Top | Index | MAP Homepage Valid HTML 3.2!