The outage for Sunday 24th November has been cancelled.
Bioplib
Protein Structure C Library
Main Page
Related Pages
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Macros
Pages
src
MatMult3_33.c
Go to the documentation of this file.
1
/************************************************************************/
2
/**
3
4
\file MatMult3_33.c
5
6
\version V1.7
7
\date 07.07.14
8
\brief
9
10
\copyright (c) UCL / Dr. Andrew C. R. Martin 1991-5
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 blMatMult3_33()
65
Multiply a 3-vector by a 3x3 matrix
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 blMatMult3_33(VEC3F vecin, REAL matin[3][3], VEC3F *vecout)
87
----------------------------------------------------------------
88
*/
/**
89
90
\param[in] vecin Vector to be multiplied
91
\param[in] matin Rotation matrix
92
\param[out] *vecout Output multiplied vector
93
94
Multiply a 3-vector by a 3x3 matrix
95
96
- 30.09.92 Original
97
- 03.08.93 Changed multiplication to standard direction
98
- 07.07.14 Use bl prefix for functions By: CTP
99
*/
100
void
blMatMult3_33
(
VEC3F
vecin,
101
REAL
matin[3][3],
102
VEC3F
*vecout)
103
{
104
vecout->
x
= vecin.
x
* matin[0][0] +
105
vecin.
y
* matin[1][0] +
106
vecin.
z
* matin[2][0];
107
vecout->
y
= vecin.
x
* matin[0][1] +
108
vecin.
y
* matin[1][1] +
109
vecin.
z
* matin[2][1];
110
vecout->
z
= vecin.
x
* matin[0][2] +
111
vecin.
y
* matin[1][2] +
112
vecin.
z
* matin[2][2];
113
}
114
VEC3F::x
REAL x
Definition:
MathType.h:70
blMatMult3_33
void blMatMult3_33(VEC3F vecin, REAL matin[3][3], VEC3F *vecout)
Definition:
MatMult3_33.c:100
VEC3F
Definition:
MathType.h:69
REAL
double REAL
Definition:
MathType.h:67
MathType.h
Type definitions for maths.
VEC3F::z
REAL z
Definition:
MathType.h:70
VEC3F::y
REAL y
Definition:
MathType.h:70
Generated on Tue Oct 24 2017 10:57:11 for Bioplib by
1.8.8