mirror of
https://gitlab.com/scemama/QCaml.git
synced 2024-12-22 04:13:33 +01:00
Corrected ordering
This commit is contained in:
parent
0face5817e
commit
0715f56eaf
@ -121,13 +121,13 @@ let cmp a b =
|
|||||||
*)
|
*)
|
||||||
let of_contracted_shell_array ?(cutoff=Constants.epsilon) basis =
|
let of_contracted_shell_array ?(cutoff=Constants.epsilon) basis =
|
||||||
let rec loop accu = function
|
let rec loop accu = function
|
||||||
| [] -> List.rev accu
|
| [] -> accu
|
||||||
| (s_a :: rest) as l ->
|
| (s_a :: rest) as l ->
|
||||||
let new_accu =
|
let new_accu =
|
||||||
(List.map (fun s_b -> make ~cutoff s_a s_b) l) :: accu
|
(List.map (fun s_b -> make ~cutoff s_a s_b) l) :: accu
|
||||||
in loop new_accu rest
|
in loop new_accu rest
|
||||||
in
|
in
|
||||||
loop [] (Array.to_list basis)
|
loop [] (List.rev (Array.to_list basis))
|
||||||
|> List.concat
|
|> List.concat
|
||||||
|> list_some
|
|> list_some
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user