|
torch::Tensor | as_tensor () const |
| Returns all coefficients of all spline objects as a single tensor.
|
|
int64_t | as_tensor_size () const |
| Returns the size of the single tensor representation of all spline objects.
|
|
BoundaryCommon | clone () const |
| Returns a clone of the boundary object.
|
|
auto | device () const noexcept |
| Auto-generated functions.
|
|
auto | device_index () const noexcept |
| Returns the device_index property of all splines.
|
|
auto | dtype () const noexcept |
| Returns the dtype property of all splines.
|
|
template<bool memory_optimized = false, typename... Indices> |
auto | find_coeff_indices (const std::tuple< Indices... > &indices) const |
| Returns the indices of the spline objects' coefficients corresponding to the knot indices indices
|
|
template<typename... Xi> |
auto | find_knot_indices (const std::tuple< Xi... > &xi) const |
| Returns the knot indicies of knot spans containing xi
|
|
auto & | from_tensor (const torch::Tensor &tensor) |
| Sets the coefficients of all spline objects from a single tensor.
|
|
BoundaryCommon & | from_xml (const pugi::xml_document &doc, int id=0, std::string label="", int index=-1) |
| Updates the boundary object from XML object.
|
|
BoundaryCommon & | from_xml (const pugi::xml_node &root, int id=0, std::string label="", int index=-1) |
| Updates the boundary object from XML node.
|
|
auto | is_nonuniform () const noexcept |
| Returns true if the B-spline is non-uniform if all splines.
|
|
auto | is_sparse () const noexcept |
| Returns if the layout is sparse of all splines.
|
|
auto | is_uniform () const noexcept |
| Returns true if the B-spline is uniform of all splines.
|
|
template<typename BoundaryCore_ > |
bool | isclose (const BoundaryCommon< BoundaryCore_ > &other, typename BoundaryCore::spline_type::value_type rtol=typename BoundaryCore::spline_type::value_type{1e-5}, typename BoundaryCore::spline_type::value_type atol=typename BoundaryCore::spline_type::value_type{1e-8}) const |
| Returns true if both boundary objects are close up to the given tolerances.
|
|
auto | layout () const noexcept |
| Returns the layout property of all splines.
|
|
void | load (const std::string &filename, const std::string &key="boundary") |
| Loads the boundary spline object from file.
|
|
template<typename BoundaryCore_ > |
bool | operator!= (const BoundaryCommon< BoundaryCore_ > &other) const |
| Returns true if both boundary objects are different.
|
|
template<typename BoundaryCore_ > |
bool | operator== (const BoundaryCommon< BoundaryCore_ > &other) const |
| Returns true if both boundary objects are the same.
|
|
auto | pinned_memory () const noexcept |
| Returns the pinned_memory property of all splines.
|
|
torch::serialize::InputArchive & | read (torch::serialize::InputArchive &archive, const std::string &key="boundary") |
| Loads the boundary spline object from a torch::serialize::InputArchive object.
|
|
auto | requires_grad () const noexcept |
| Returns the requires_grad property of all splines.
|
|
void | save (const std::string &filename, const std::string &key="boundary") const |
| Saves the boundary spline to file.
|
|
BoundaryCommon & | set_requires_grad (bool requires_grad) |
| Sets the boundary object's requires_grad property.
|
|
template<typename real_t > |
auto | to () const |
| Returns a copy of the boundary object with real_t type.
|
|
template<typename real_t > |
auto | to (Options< real_t > options) const |
| Returns a copy of the boundary object with settings from options.
|
|
auto | to (torch::Device device) const |
| Returns a copy of the boundary object with settings from device.
|
|
pugi::xml_document | to_xml (int id=0, std::string label="", int index=-1) const |
| Returns the boundary object as XML object.
|
|
pugi::xml_node & | to_xml (pugi::xml_node &root, int id=0, std::string label="", int index=-1) const |
| Returns the boundary object as XML node.
|
|
auto & | uniform_refine (int numRefine=1, int dim=-1) |
| Returns the spline objects with uniformly refined knot and coefficient vectors.
|
|
torch::serialize::OutputArchive & | write (torch::serialize::OutputArchive &archive, const std::string &key="boundary") const |
| Writes the boundary spline object into a torch::serialize::OutputArchive object.
|
|
|
|
|
|
template<std::size_t... Is> |
torch::Tensor | as_tensor_ (std::index_sequence< Is... >) const |
| Returns all coefficients of all spline objects as a single tensor.
|
|
template<std::size_t... Is> |
int64_t | as_tensor_size_ (std::index_sequence< Is... >) const |
| Returns the size of the single tensor representation of all spline objects.
|
|
template<bool memory_optimized = false, size_t... Is, typename... Indices> |
auto | find_coeff_indices_ (std::index_sequence< Is... >, const std::tuple< Indices... > &indices) const |
| Returns the indices of the boundary spline object's coefficients corresponding to the knot indices indices
|
|
template<size_t... Is, typename... Xi> |
auto | find_knot_indices_ (std::index_sequence< Is... >, const std::tuple< Xi... > &xi) const |
| Returns the knot indicies of boundary spline object's knot spans containing xi
|
|
template<std::size_t... Is> |
auto & | from_tensor_ (std::index_sequence< Is... >, const torch::Tensor &tensor) |
| Sets the coefficients of all spline objects from a single tensor.
|
|
template<typename BoundaryCore_ , size_t... Is> |
bool | isclose_ (std::index_sequence< Is... >, const BoundaryCommon< BoundaryCore_ > &other, typename BoundaryCore::spline_type::value_type rtol, typename BoundaryCore::spline_type::value_type atol) const |
| Returns true if both boundary spline objects are close up to the given tolerances.
|
|
template<typename BoundaryCore_ , size_t... Is> |
bool | isequal_ (std::index_sequence< Is... >, const BoundaryCommon< BoundaryCore_ > &other) const |
| Returns true if both boundary spline objects are the same.
|
|
template<size_t... Is> |
torch::serialize::InputArchive & | read_ (std::index_sequence< Is... >, torch::serialize::InputArchive &archive, const std::string &key="boundary") |
| Loads the function space object from a torch::serialize::InputArchive object.
|
|
template<size_t... Is> |
auto & | uniform_refine_ (std::index_sequence< Is... >, int numRefine=1, int dim=-1) |
| Returns the boundary spline object with uniformly refined knot and coefficient vectors.
|
|
template<size_t... Is> |
torch::serialize::OutputArchive & | write_ (std::index_sequence< Is... >, torch::serialize::OutputArchive &archive, const std::string &key="boundary") const |
| Writes the boundary spline object into a torch::serialize::OutputArchive object.
|
|
|
|
|
Boundary (common high-level functionality)