![]() |
IgANet
IgANets - Isogeometric Analysis Networks
|
Abstract patch function base class. More...
#include </home/runner/work/iganet/iganet/include/patch.hpp>
Public Member Functions | |
virtual torch::Tensor | as_tensor () const noexcept=0 |
virtual int64_t | as_tensor_size () const noexcept=0 |
Returns the size of the single tensor representation of all coefficients. | |
virtual torch::Device | device () const noexcept=0 |
Returns the device property. | |
virtual int32_t | device_index () const noexcept=0 |
Returns the device_index property. | |
virtual torch::Dtype | dtype () const noexcept=0 |
Returns the dtype property. | |
virtual BSplinePatch & | from_tensor (const torch::Tensor &tensor) noexcept=0 |
Sets all coefficients from a single tensor. | |
virtual bool | is_sparse () const noexcept=0 |
Returns if the layout is sparse. | |
virtual torch::Layout | layout () const noexcept=0 |
Returns the layout property. | |
virtual bool | pinned_memory () const noexcept=0 |
Returns the pinned_memory property. | |
virtual void | pretty_print (std::ostream &os=Log(log::info)) const noexcept=0 |
Returns a string representation. | |
virtual bool | requires_grad () const noexcept=0 |
Returns the requires_grad property. | |
virtual BSplinePatch & | set_requires_grad (bool requires_grad) noexcept=0 |
Sets the B-spline object's requires_grad property. | |
Abstract patch function base class.
|
pure virtualnoexcept |
|
pure virtualnoexcept |
Returns the size of the single tensor representation of all coefficients.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Returns the device
property.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Returns the device_index
property.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Returns the dtype
property.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtual |
Returns the value of the spline function from precomputed basis function.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtual |
Returns the value of the spline function from precomputed basis function.
|
pure virtualnoexcept |
Sets all coefficients from a single tensor.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Returns if the layout is sparse.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Returns the layout
property.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Returns the pinned_memory
property.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Returns a string representation.
|
pure virtualnoexcept |
Returns the requires_grad
property.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.
|
pure virtualnoexcept |
Sets the B-spline object's requires_grad
property.
Implemented in iganet::UniformBSplineCore< real_t, GeoDim, Degrees >, iganet::UniformBSplineCore< real_t, GeoDim+1, Degrees... >, and iganet::UniformBSplineCore< real_t, GeoDim, Degrees... >.