Skip to content

Commit

Permalink
Sync DDC version 563a323
Browse files Browse the repository at this point in the history
  • Loading branch information
SELF_COMMIT_TOKEN committed Apr 25, 2023
1 parent aca26bd commit 9fa78df
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions vendor/ddc/include/ddc/uniform_point_sampling.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -56,31 +56,31 @@ class UniformPointSampling

template <class OriginMemorySpace>
explicit Impl(Impl<OriginMemorySpace> const& impl)
: m_origin(impl.m_origin)
, m_step(impl.m_step)
{
m_origin = impl.m_origin;
m_step = impl.m_step;
}

Impl(Impl&&) = default;

/** @brief Construct a `Impl` from a point and a spacing step.
*
* @param origin the real coordinate of mesh coordinate 0
* @param step the real distance between two points of mesh distance 1
*/
*
* @param origin the real coordinate of mesh coordinate 0
* @param step the real distance between two points of mesh distance 1
*/
constexpr Impl(continuous_element_type origin, double step) : m_origin(origin), m_step(step)
{
assert(step > 0);
}

/** @brief Construct a `Impl` from a segment \f$[a, b] \subset [a, +\infty[\f$ and a number of points `n`.
*
* @param a the coordinate of a first real point (will have mesh coordinate 0)
* @param b the coordinate of the second real point (will have mesh coordinate `n-1`)
* @param n the number of points to map the segment \f$[a, b]\f$ including a & b
*
* @deprecated use the version accepting a vector for n instead
*/
*
* @param a the coordinate of a first real point (will have mesh coordinate 0)
* @param b the coordinate of the second real point (will have mesh coordinate `n-1`)
* @param n the number of points to map the segment \f$[a, b]\f$ including a & b
*
* @deprecated use the version accepting a vector for n instead
*/
[[deprecated(
"Use the version accepting a vector for n "
"instead.")]] constexpr Impl(continuous_element_type a, continuous_element_type b, std::size_t n)
Expand All @@ -92,11 +92,11 @@ class UniformPointSampling
}

/** @brief Construct a `Impl` from a segment \f$[a, b] \subset [a, +\infty[\f$ and a number of points `n`.
*
* @param a the coordinate of a first real point (will have mesh coordinate 0)
* @param b the coordinate of the second real point (will have mesh coordinate `n-1`)
* @param n the number of points to map the segment \f$[a, b]\f$ including a & b
*/
*
* @param a the coordinate of a first real point (will have mesh coordinate 0)
* @param b the coordinate of the second real point (will have mesh coordinate `n-1`)
* @param n the number of points to map the segment \f$[a, b]\f$ including a & b
*/
constexpr Impl(continuous_element_type a, continuous_element_type b, discrete_vector_type n)
: m_origin(a)
, m_step((b - a) / (n - 1))
Expand Down

0 comments on commit 9fa78df

Please sign in to comment.