Bioplib
Protein Structure C Library
 All Data Structures Files Functions Variables Typedefs Macros Pages
Macros | Functions
matrix.h File Reference

Include file for matrix operations. More...

#include "MathType.h"
#include "deprecated.h"

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)
 

Detailed Description

Include file for matrix operations.

Version
V1.9
Date
14.08.14
Author
Dr. Andrew C. R. Martin
Institute of Structural & Molecular Biology, University College London, Gower Street, London. WC1E 6BT.
andre.nosp@m.w@bi.nosp@m.oinf..nosp@m.org..nosp@m.uk andre.nosp@m.w.ma.nosp@m.rtin@.nosp@m.ucl..nosp@m.ac.uk

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.

Description:

Usage:

Revision History:

Definition in file matrix.h.

Macro Definition Documentation

#define _MATRIX_H_DEPRECATED

Definition at line 87 of file matrix.h.

Function Documentation

void blCreateRotMat ( char  direction,
REAL  angle,
REAL  matrix[3][3] 
)
Parameters
[in]directionAxis about which to rotate
[in]angleAngle (in rads) to rotate
[out]matrixRotation 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

  • 22.07.93 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 101 of file CreateRotMat.c.

void blInvert33 ( REAL  s[3][3],
REAL  ss[3][3] 
)
Parameters
[in]sInput matrix
[out]ssOuput inverted matrix

Invert a 3x3 matrix

  • 06.09.91 Original
  • 01.06.92 Documented
  • 10.06.93 void return
  • 12.09.02 Fixed SERIOUS bug! Was basically rubbish before!
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 102 of file invert33.c.

void blMatMult33_33 ( REAL  a[3][3],
REAL  b[3][3],
REAL  out[3][3] 
)
Parameters
[in]aMatrix to be multiplied
[in]bMatrix to be multiplied
[out]outOutput matrix

Multiply two 3x3 matrices

  • 27.09.95 Original
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 99 of file MatMult33_33.c.

void blMatMult3_33 ( VEC3F  vecin,
REAL  matin[3][3],
VEC3F vecout 
)
Parameters
[in]vecinVector to be multiplied
[in]matinRotation matrix
[out]*vecoutOutput multiplied vector

Multiply a 3-vector by a 3x3 matrix

  • 30.09.92 Original
  • 03.08.93 Changed multiplication to standard direction
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 100 of file MatMult3_33.c.

REAL blVecDist ( REAL a,
REAL b,
int  len 
)
Parameters
[in]*aAn arbitrary length vector (as an array)
[in]*bAn arbitrary length vector (as an array)
[in]lenThe dimensionality of the vectors (array length)
Returns
The distance between the points described by the two vectors

Finds the distance between two vectors of arbitrary length

  • 28.07.95 Original By: ACRM
  • 07.07.14 Use bl prefix for functions By: CTP

Definition at line 98 of file VecDist.c.