Changes between Version 5 and Version 6 of LatticeComputations
- Timestamp:
- Jul 6, 2010 2:15:34 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
LatticeComputations
v5 v6 12 12 13 13 a code fragment that shows how this can be used is: 14 {{ 14 {{{ 15 15 import numpy as np 16 16 import GSASIIlattice as latt … … 18 18 Xfrac = np.array( [0,0,0] ) 19 19 Xortho = np.sum(A*Xfrac,axis=1) 20 }} 20 }}} 21 21 22 22 In addition, A and B are used to define a pair of 3x3 transformation matrices, where A*x converts Cartesian coordinates x into fractional ones and B does the inverse transform.