Changes between Version 8 and Version 9 of LatticeComputations


Ignore:
Timestamp:
Jul 6, 2010 3:01:27 PM (13 years ago)
Author:
toby
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • LatticeComputations

    v8 v9  
    1919Xfrac = np.array( [0.1,0.1,0.1] )
    2020Xortho = np.sum(A*Xfrac,axis=1) 
     21}}}
     22
     23
     24or to process an array of coordinates:
     25{{{
     26import numpy as np
     27import GSASIIlattice as latt
     28A,B = latt.cell2AB( (4.1,4.1,5.2,90,90,90) )
     29Xfrac = np.array([[1,1,1],[0,0,0],[.1,.2,.3]])
     30Xortho = np.dot(A, Xfrac.transpose() ).transpose()
    2131}}}
    2232