bingham_matrix¶
Import in python using from mcutils.scripts.MDE.fit_dispersion import bingham_matrix
-
mcutils.scripts.MDE.fit_dispersion.
bingham_matrix
(lk1, lk2, phi, theta, psi, derivative=False)[source]¶ Returns the Bingham matrix after rotation
- Parameters
lk1 – logarithm of k1
lk2 – logarithm of k2
phi – main fibre orientation in the x-y plane
theta – polar angle (0 for main fibre orientation in z-direction, pi/2 for main fibre orientation in x-y plane)
psi – rotation of the major dispersion axis around the main fibre orientation
derivative – also return a (5, 3, 3) derivative matrix
- Returns
(3, 3) Bingham matrix (and a (5, 3, 3) matrix with derivatives if requested)