Bioplib
Protein Structure C Library
|
Include file for matrix operations. More...
Go to the source code of this file.
Macros | |
#define | _MATRIX_H_DEPRECATED |
Functions | |
void | blMatMult3_33 (VEC3F vecin, REAL matin[3][3], VEC3F *vecout) |
void | blMatMult33_33 (REAL a[3][3], REAL b[3][3], REAL out[3][3]) |
void | blInvert33 (REAL s[3][3], REAL ss[3][3]) |
void | blCreateRotMat (char direction, REAL angle, REAL matrix[3][3]) |
REAL | blVecDist (REAL *a, REAL *b, int len) |
Include file for matrix operations.
This code is NOT IN THE PUBLIC DOMAIN, but it may be copied according to the conditions laid out in the accompanying file COPYING.DOC.
The code may be modified as required, but any modifications must be documented so that the person responsible can be identified.
The code may not be sold commercially or included as part of a commercial product except as described in the file COPYING.DOC.
Definition in file matrix.h.
[in] | direction | Axis about which to rotate |
[in] | angle | Angle (in rads) to rotate |
[out] | matrix | Rotation matrix |
Create a 3x3 rotation matrix. Takes a direction as a single character ('x', 'y', or 'z'), an angle (in rads) and outputs a rotation matrix
Definition at line 101 of file CreateRotMat.c.
[in] | s | Input matrix |
[out] | ss | Ouput inverted matrix |
Invert a 3x3 matrix
Definition at line 102 of file invert33.c.
[in] | a | Matrix to be multiplied |
[in] | b | Matrix to be multiplied |
[out] | out | Output matrix |
Multiply two 3x3 matrices
Definition at line 99 of file MatMult33_33.c.
[in] | vecin | Vector to be multiplied |
[in] | matin | Rotation matrix |
[out] | *vecout | Output multiplied vector |
Multiply a 3-vector by a 3x3 matrix
Definition at line 100 of file MatMult3_33.c.
[in] | *a | An arbitrary length vector (as an array) |
[in] | *b | An arbitrary length vector (as an array) |
[in] | len | The dimensionality of the vectors (array length) |
Finds the distance between two vectors of arbitrary length