Skip to content

Commit

Permalink
fixed incorrect names in MapFactory
Browse files Browse the repository at this point in the history
  • Loading branch information
MMRROOO committed Apr 24, 2024
1 parent ab58379 commit f28416d
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions MParT/MapFactory.h
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ namespace mpart{
unsigned int inputDim, unsigned int totalOrder, Eigen::Ref<const Eigen::RowVectorXd> centers,
MapOptions opts) {
StridedVector<const double, Kokkos::HostSpace> centersVec = ConstVecToKokkos<double, Kokkos::HostSpace>(centers);
Kokkos::View<const double*, MemorySpace> centers = Kokkos::create_mirror_view_and_copy(MemorySpace(), centersVec);
return CreateSigmoidComponent<MemorySpace>(inputDim, totalOrder, centers, opts);
Kokkos::View<const double*, MemorySpace> centers_copy = Kokkos::create_mirror_view_and_copy(MemorySpace(), centersVec);
return CreateSigmoidComponent<MemorySpace>(inputDim, totalOrder, centers_copy, opts);
}

template<typename MemorySpace>
Expand All @@ -159,8 +159,8 @@ namespace mpart{
FixedMultiIndexSet<MemorySpace> mset,
Eigen::Ref<const Eigen::RowVectorXd> centers, MapOptions opts) {
StridedVector<const double, Kokkos::HostSpace> centersVec = ConstVecToKokkos<double, Kokkos::HostSpace>(centers);
Kokkos::View<const double*, MemorySpace> centers = Kokkos::create_mirror_view_and_copy(MemorySpace(), centersVec);
return CreateSigmoidComponent<MemorySpace>(mset, centers, opts);
Kokkos::View<const double*, MemorySpace> centers_copy = Kokkos::create_mirror_view_and_copy(MemorySpace(), centersVec);
return CreateSigmoidComponent<MemorySpace>(mset, centers_copy, opts);
}

template<typename MemorySpace>
Expand Down

0 comments on commit f28416d

Please sign in to comment.