![]() |
IgANet
IGAnets - Isogeometric Analysis Networks
|
Boundary (common high-level functionality). More...
#include </home/runner/work/iganet/iganet/include/iganet/splines/boundary.hpp>
Public Member Functions | |
| 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 indices 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, const std::string &label="", int index=-1) |
| Updates the boundary object from XML object. | |
| BoundaryCommon & | from_xml (const pugi::xml_node &root, int id=0, const std::string &label="", int index=-1) |
| Updates the boundary object from XML node. | |
| auto | is_nonuniform () const noexcept |
| Returns whether each B-spline is non-uniform. | |
| auto | is_sparse () const noexcept |
| Returns whether the layout of each spline is sparse. | |
| auto | is_uniform () const noexcept |
| Returns whether each B-spline is uniform. | |
| template<typename BoundaryCore_ > | |
| bool | isclose (const BoundaryCommon< BoundaryCore_ > &other, BoundaryCore::spline_type::value_type rtol=typename BoundaryCore::spline_type::value_type{1e-5}, 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, const 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, const 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. | |
Private Member Functions | |
| 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 indices of the boundary spline object 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, BoundaryCore::spline_type::value_type rtol, 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).
|
inline |
Returns all coefficients of all spline objects as a single tensor.
|
inlineprivate |
Returns all coefficients of all spline objects as a single tensor.
|
inline |
Returns the size of the single tensor representation of all spline objects.
|
inlineprivate |
Returns the size of the single tensor representation of all spline objects.
|
inline |
Returns a clone of the boundary object.
|
inlinenoexcept |
Auto-generated functions.
Returns the device property of all splines.
|
inlinenoexcept |
Returns the device_index property of all splines.
|
inlinenoexcept |
Returns the dtype property of all splines.
|
inline |
Returns the values of the spline objects in the points xi
| xi | Parametric coordinates. |
|
inline |
Provides the eval operation.
| xi | Parametric coordinates. |
| indices | Value of indices. |
|
inline |
Provides the eval operation.
| xi | Parametric coordinates. |
| indices | Value of indices. |
| coeff_indices | Value of coeff_indices. |
|
inlineprivate |
Returns the values of the boundary spline objects in the points xi
|
inlineprivate |
Returns the values of the boundary spline objects in the points xi
|
inlineprivate |
Returns the values of the boundary spline objects in the points xi
|
inline |
Returns the values of the spline objects' basis functions in the points xi
| xi | Parametric coordinates. |
|
inline |
Provides the eval_basfunc operation.
| xi | Parametric coordinates. |
| indices | Value of indices. |
|
inlineprivate |
Returns the values of the boundary spline object's basis functions in the points xi
|
inlineprivate |
Returns the values of the boundary spline object's basis functions in the points xi
|
inline |
Returns the value of the spline objects from precomputed basis function.
| basfunc | Value of basfunc. |
| coeff_indices | Value of coeff_indices. |
| numeval | Value of numeval. |
| sizes | Value of sizes. |
|
inline |
Provides the eval_from_precomputed operation.
| Basfunc | Template parameter Basfunc. |
| Coeff_Indices | Template parameter Coeff_Indices. |
| Xi | Template parameter Xi. |
| basfunc | Value of basfunc. |
| coeff_indices | Value of coeff_indices. |
| xi | Parametric coordinates. |
|
inlineprivate |
Returns the value of the boundary spline objects from precomputed basis function.
|
inlineprivate |
Returns the value of the boundary spline objects from precomputed basis function.
|
inline |
Returns the indices of the spline objects' coefficients corresponding to the knot indices indices.
| memory_optimized | Template parameter memory_optimized. |
| Indices | Template parameter Indices. |
| indices | Value of indices. |
|
inlineprivate |
Returns the indices of the boundary spline object's coefficients corresponding to the knot indices indices.
|
inline |
Returns the knot indices of knot spans containing xi.
| Xi | Template parameter Xi. |
| xi | Parametric coordinates. |
|
inlineprivate |
Returns the knot indices of the boundary spline object knot spans containing xi.
|
inline |
Sets the coefficients of all spline objects from a single tensor.
| [in] | tensor | Tensor from which to extract the coefficients. |
|
inlineprivate |
Sets the coefficients of all spline objects from a single tensor.
| [in] | tensor | Tensor from which to extract the coefficients. |
|
inline |
Updates the boundary object from XML object.
| doc | Value of doc. |
| id | Object identifier. |
| label | Object label. |
| index | Object index. |
|
inline |
Updates the boundary object from XML node.
| root | Root XML node. |
| id | Object identifier. |
| label | Object label. |
| index | Object index. |
|
inlinenoexcept |
Returns whether each B-spline is non-uniform.
|
inlinenoexcept |
Returns whether the layout of each spline is sparse.
|
inlinenoexcept |
Returns whether each B-spline is uniform.
|
inline |
Returns true if both boundary objects are close up to the given tolerances.
| BoundaryCore_ | Template parameter BoundaryCore_. |
| other | Second input value. |
| rtol | Value of rtol. |
| atol | Value of atol. |
|
inlineprivate |
Returns true if both boundary spline objects are close up to the given tolerances.
|
inlineprivate |
Returns true if both boundary spline objects are the same.
|
inlinenoexcept |
Returns the layout property of all splines.
|
inline |
Loads the boundary spline object from file.
| filename | Path of the file to process. |
| key | Serialization key. |
|
inline |
Returns true if both boundary objects are different.
| BoundaryCore_ | Template parameter BoundaryCore_. |
| other | Second input value. |
|
inline |
Returns true if both boundary objects are the same.
| BoundaryCore_ | Template parameter BoundaryCore_. |
| other | Second input value. |
|
inlinenoexcept |
Returns the pinned_memory property of all splines.
|
inline |
Loads the boundary spline object from a torch::serialize::InputArchive object.
| archive | Serialization archive. |
| key | Serialization key. |
|
inlineprivate |
Loads the function space object from a torch::serialize::InputArchive object.
|
inlinenoexcept |
Returns the requires_grad property of all splines.
|
inline |
Saves the boundary spline to file.
| filename | Path of the file to process. |
| key | Serialization key. |
|
inline |
Sets the boundary object's requires_grad property.
| requires_grad | Value of requires_grad. |
|
inline |
Returns a copy of the boundary object with real_t type.
| real_t | Template parameter real_t. |
|
inline |
Returns a copy of the boundary object with settings from options.
| real_t | Template parameter real_t. |
| options | Configuration options. |
|
inline |
Returns a copy of the boundary object with settings from device.
| device | Target device. |
|
inline |
Returns the boundary object as XML object.
| id | Object identifier. |
| label | Object label. |
| index | Object index. |
|
inline |
Returns the boundary object as XML node.
| root | Root XML node. |
| id | Object identifier. |
| label | Object label. |
| index | Object index. |
|
inline |
Returns the spline objects with uniformly refined knot and coefficient vectors.
| numRefine | Value of numRefine. |
| dim | Value of dim. |
|
inlineprivate |
Returns the boundary spline object with uniformly refined knot and coefficient vectors.
|
inline |
Writes the boundary spline object into a torch::serialize::OutputArchive object.
| archive | Serialization archive. |
| key | Serialization key. |
|
inlineprivate |
Writes the boundary spline object into a torch::serialize::OutputArchive object.