mirror of
https://gitlab.com/libeigen/eigen.git
synced 2025-08-01 17:50:40 +08:00
Made the gaussian generator usable on GPU
This commit is contained in:
parent
2a69290ddb
commit
1301d744f8
@ -895,7 +895,7 @@ class GaussianGenerator {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
T operator()(const array<Index, NumDims>& coordinates) const {
|
EIGEN_DEVICE_FUNC T operator()(const array<Index, NumDims>& coordinates) const {
|
||||||
T tmp = T(0);
|
T tmp = T(0);
|
||||||
for (size_t i = 0; i < NumDims; ++i) {
|
for (size_t i = 0; i < NumDims; ++i) {
|
||||||
T offset = coordinates[i] - m_means[i];
|
T offset = coordinates[i] - m_means[i];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user