10
1
mirror of https://gitlab.com/scemama/QCaml.git synced 2024-07-17 00:20:23 +02:00
QCaml/Utils/SphericalToCartesian.mli

24 lines
650 B
OCaml

val matrix : AngularMomentum.t -> float array
(** Returns a transformation matrix to rotate between the basis of atom-centered
spherical coordinates to x,y,z coordinates.
The first index of the result matrix is the index of the cartesian shell, as
obtained by the [index] function, and the second index is the index of the
spherical shell.
Example:
{[
SphericalToCartesian.matrix AngularMomentum.D ->
]}
*)
val index : int -> int -> int -> int
(** Unique index given to a triplet of powers. Used to identify a cartesian shell.
Example:
{[
let nx, ny, nz = 3, 2, 1 in
SphericalToCartesian.index nx ny nz -> 8
]}
*)