Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
import _wignerpy
from _wignerpy import wigner3j, wigner3jvec, wigner6j, wigner6jvec
4 changes: 2 additions & 2 deletions src/_wignerpy/wignerSymbols-cpp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ double wigner3j(double l1, double l2, double l3,
double l1min = std::max(std::fabs(l2-l3),std::fabs(m1));

// We fetch the proper value in the array.
int index = (int)l1-l1min;
int index = (int)(l1-l1min);

return wigner3j(l2,l3,m1,m2,m3)[index];
}
Expand Down Expand Up @@ -447,7 +447,7 @@ double wigner6j(double l1, double l2, double l3,

// We compute l1min and the position of the array we will want.
double l1min = std::max(std::fabs(l2-l3),std::fabs(l5-l6));
int index = (int)l1-l1min;
int index = (int)(l1-l1min);

return wigner6j(l2,l3,l4,l5,l6)[index];
}
Expand Down