The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
MatMult33_33.c
Go to the documentation of this file.
1 /************************************************************************/
2 /**
3 
4  \file MatMult33_33.c
5 
6  \version V1.7
7  \date 07.07.14
8  \brief
9 
10  \copyright (c) Dr. Andrew C. R. Martin, University of Reading, 2002-14
11  \author Dr. Andrew C. R. Martin
12  \par
13  Institute of Structural & Molecular Biology,
14  University College London,
15  Gower Street,
16  London.
17  WC1E 6BT.
18  \par
19  andrew@bioinf.org.uk
20  andrew.martin@ucl.ac.uk
21 
22 **************************************************************************
23 
24  This code is NOT IN THE PUBLIC DOMAIN, but it may be copied
25  according to the conditions laid out in the accompanying file
26  COPYING.DOC.
27 
28  The code may be modified as required, but any modifications must be
29  documented so that the person responsible can be identified.
30 
31  The code may not be sold commercially or included as part of a
32  commercial product except as described in the file COPYING.DOC.
33 
34 **************************************************************************
35 
36  Description:
37  ============
38 
39 
40 **************************************************************************
41 
42  Usage:
43  ======
44 
45 **************************************************************************
46 
47  Revision History:
48  =================
49 - V1.0 06.09.91 Original
50 - V1.0a 01.06.92 Documented
51 - V1.1 30.09.92 Matrix multiplication added
52 - V1.2 10.06.93 void return from matrix multiplication
53 - V1.3 22.07.93 Added CreateRotMat()
54 - V1.4 03.08.93 Changed matrix multiplication to standard direction
55 - V1.5 28.07.95 Added VecDist()
56 - V1.6 27.09.95 Added MatMult33_33()
57 - V1.7 07.07.14 Use bl prefix for functions By: CTP
58 
59 *************************************************************************/
60 /* Doxygen
61  -------
62  #GROUP Maths
63  #SUBGROUP Matrices
64  #FUNCTION blMatMult33_33()
65  Multiply two 3x3 matrices
66 */
67 /************************************************************************/
68 /* Includes
69 */
70 #include "MathType.h"
71 
72 /************************************************************************/
73 /* Defines and macros
74 */
75 
76 /************************************************************************/
77 /* Globals
78 */
79 
80 /************************************************************************/
81 /* Prototypes
82 */
83 
84 
85 /************************************************************************/
86 /*>void blMatMult33_33(REAL a[3][3], REAL b[3][3], REAL out[3][3])
87  ---------------------------------------------------------------
88 *//**
89 
90  \param[in] a Matrix to be multiplied
91  \param[in] b Matrix to be multiplied
92  \param[out] out Output matrix
93 
94  Multiply two 3x3 matrices
95 
96 - 27.09.95 Original
97 - 07.07.14 Use bl prefix for functions By: CTP
98 */
99 void blMatMult33_33(REAL a[3][3], REAL b[3][3], REAL out[3][3])
100 {
101  int i, j, k;
102  REAL ab;
103 
104  for(i=0; i<3; i++)
105  {
106  for(j=0; j<3; j++)
107  {
108  ab = (REAL)0.0;
109  for(k=0; k<3; k++)
110  {
111  ab += a[i][k]*b[k][j];
112  }
113  out[i][j]=ab;
114  }
115  }
116 }
117 
118 
119 
120 
121 
void blMatMult33_33(REAL a[3][3], REAL b[3][3], REAL out[3][3])
Definition: MatMult33_33.c:99
double REAL
Definition: MathType.h:67
Type definitions for maths.