Go to the source code of this file.
Functions | |
void | ccp4_dcross (const double a[3], const double b[3], double c[3]) |
void | ccp4_3matmul (double c[3][3], const double a[3][3], const double b[3][3]) |
void | ccp4_4matmul (float c[4][4], const float a[4][4], const float b[4][4]) |
double | invert3matrix (const double a[3][3], double ai[3][3]) |
float | invert4matrix (const float a[4][4], float ai[4][4]) |
float | ccp4_pow_ii (const float base, const int power) |
void ccp4_3matmul | ( | double | c[3][3], | |
const double | a[3][3], | |||
const double | b[3][3] | |||
) |
3x3 matrix product This function computes the matrix product between two 3x3 matrices.
[out] | c | matrix product |
[in] | a | left matrix |
[in] | b | right matrix |
Referenced by ccp4uc_fracu_to_orthu(), and ccp4uc_orthu_to_fracu().
void ccp4_4matmul | ( | float | c[4][4], | |
const float | a[4][4], | |||
const float | b[4][4] | |||
) |
4x4 matrix product. This function computes the matrix product between two 4x4 matrices.
[out] | c | matrix product |
[in] | a | left matrix |
[in] | b | right matrix |
Referenced by ccp4spg_load_spacegroup().
void ccp4_dcross | ( | const double | a[3], | |
const double | b[3], | |||
double | c[3] | |||
) |
Vector cross product This function computes the vector cross product c = a X b
[in] | a | vector 1 |
[in] | b | vector 2 |
[out] | c | cross product vector |
Referenced by invert3matrix().
float ccp4_pow_ii | ( | const float | base, | |
const int | power | |||
) |
Compute powers. This function computes powers of any base to any integer power.
[in] | base | |
[in] | power |
Referenced by invert4matrix().
double invert3matrix | ( | const double | a[3][3], | |
double | ai[3][3] | |||
) |
3x3 matrix inversion.
[in] | a | 3*3 matrix to be inverted |
[out] | ai | inverse matrix |
References ccp4_dcross().
Referenced by ccp4uc_frac_orth_mat().
float invert4matrix | ( | const float | a[4][4], | |
float | ai[4][4] | |||
) |
4x4 matrix inversion.
[in] | a | 4x4 matrix to be inverted |
[out] | ai | inverse matrix |
References ccp4_pow_ii().
Referenced by ccp4_symop_invert(), and ccp4spg_load_spacegroup().