pwtools._flib.cart2frac

pwtools._flib.cart2frac = <fortran function cart2frac>

coords_frac = cart2frac(coords,cell,[natoms])

Wrapper for cart2frac.

Parameters:
  • coords (input rank-2 array('d') with bounds (natoms,3)) –

  • cell (input rank-2 array('d') with bounds (3,3)) –

  • natoms (input int, optional) – Default: shape(coords, 0)

Returns:

coords_frac

Return type:

rank-2 array(‘d’) with bounds (natoms,3)