Skip to content

Add a basis_domain method to Bsplines #896

@EmilyBourne

Description

@EmilyBourne

Bsplines have 1 method which returns the "full domain":

/** @brief Returns the discrete domain including eventual additional B-splines in the periodic case. See size().
*
* @return The discrete domain including eventual additional B-splines.
*/
KOKKOS_INLINE_FUNCTION discrete_domain_type full_domain() const
{
return discrete_domain_type(m_reference, discrete_vector_type(size()));
}

however it is common to require the domain without duplicate bsplines. This can be obtained with:

ddc::discrete_space<BSplinesR>().full_domain().take_first(ddc::DiscreteVector<BSplinesR>(ddc::discrete_space<BSplinesR>().nbasis()));

but this is very wordy for such a simple calculation. It would make sense to provide this functionality

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions