55 for (i = 0; i < 3; i++)
68 for (i = 0; i < 3; i++)
70 fprintf(file, fmt, a.
v[i]);
84 c.
v[0] = a.
v[0] + b.
v[0];
85 c.
v[1] = a.
v[1] + b.
v[1];
86 c.
v[2] = a.
v[2] + b.
v[2];
97 c.
v[0] = a.
v[0] - b.
v[0];
98 c.
v[1] = a.
v[1] - b.
v[1];
99 c.
v[2] = a.
v[2] - b.
v[2];
110 c.
v[0] = b.
v[0] + a.
v[0] * cos(b.
v[2]) - a.
v[1] * sin(b.
v[2]);
111 c.
v[1] = b.
v[1] + a.
v[0] * sin(b.
v[2]) + a.
v[1] * cos(b.
v[2]);
112 c.
v[2] = b.
v[2] + a.
v[2];
113 c.
v[2] = atan2(sin(c.
v[2]), cos(c.
v[2]));
124 c.
v[0] = +(a.
v[0] - b.
v[0]) * cos(b.
v[2]) + (a.
v[1] - b.
v[1]) * sin(b.
v[2]);
125 c.
v[1] = -(a.
v[0] - b.
v[0]) * sin(b.
v[2]) + (a.
v[1] - b.
v[1]) * cos(b.
v[2]);
126 c.
v[2] = a.
v[2] - b.
v[2];
127 c.
v[2] = atan2(sin(c.
v[2]), cos(c.
v[2]));
139 for (i = 0; i < 3; i++)
140 for (j = 0; j < 3; j++)
152 for (i = 0; i < 3; i++)
153 for (j = 0; j < 3; j++)
154 if (!finite(a.
m[i][j]))
166 for (i = 0; i < 3; i++)
168 for (j = 0; j < 3; j++)
170 fprintf(file, fmt, a.
m[i][j]);
240 for (i = 0; i < 3; i++)
242 for (j = 0; j < 3; j++)
245 aa[i][j] = a.
m[i][j];
259 for (i = 0; i < 3; i++)
262 d->
m[i][i] = eval[i];
263 for (j = 0; j < 3; j++)
266 r->
m[i][j] = evec[i][j];
void pf_matrix_fprintf(pf_matrix_t a, FILE *file, const char *fmt)
pf_vector_t pf_vector_sub(pf_vector_t a, pf_vector_t b)
int pf_matrix_finite(pf_matrix_t a)
int pf_vector_finite(pf_vector_t a)
void eigen_decomposition(double A[3][3], double V[3][3], double d[3])
pf_vector_t pf_vector_zero()
void pf_matrix_unitary(pf_matrix_t *r, pf_matrix_t *d, pf_matrix_t a)
pf_matrix_t pf_matrix_zero()
void pf_vector_fprintf(pf_vector_t a, FILE *file, const char *fmt)
pf_vector_t pf_vector_coord_sub(pf_vector_t a, pf_vector_t b)
pf_vector_t pf_vector_coord_add(pf_vector_t a, pf_vector_t b)
pf_vector_t pf_vector_add(pf_vector_t a, pf_vector_t b)