IgANet
IgANets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
iganet::BSplinePatch< real_t, GeoDim, ParDim > Class Template Referenceabstract

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 BSplinePatchfrom_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 BSplinePatchset_requires_grad (bool requires_grad) noexcept=0
 Sets the B-spline object's requires_grad property.
 

Detailed Description

template<typename real_t, short_t GeoDim, short_t ParDim>
class iganet::BSplinePatch< real_t, GeoDim, ParDim >

Abstract patch function base class.

Member Function Documentation

◆ as_tensor()

◆ as_tensor_size()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual int64_t iganet::BSplinePatch< real_t, GeoDim, ParDim >::as_tensor_size ( ) const
pure virtualnoexcept

◆ device()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual torch::Device iganet::BSplinePatch< real_t, GeoDim, ParDim >::device ( ) const
pure virtualnoexcept

◆ device_index()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual int32_t iganet::BSplinePatch< real_t, GeoDim, ParDim >::device_index ( ) const
pure virtualnoexcept

◆ dtype()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual torch::Dtype iganet::BSplinePatch< real_t, GeoDim, ParDim >::dtype ( ) const
pure virtualnoexcept

◆ eval_from_precomputed() [1/2]

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual utils::BlockTensor< torch::Tensor, 1, GeoDim > iganet::BSplinePatch< real_t, GeoDim, ParDim >::eval_from_precomputed ( const torch::Tensor &  basfunc,
const torch::Tensor &  coeff_indices,
int64_t  numeval,
torch::IntArrayRef  sizes 
) const
pure virtual

◆ eval_from_precomputed() [2/2]

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual utils::BlockTensor< torch::Tensor, 1, GeoDim > iganet::BSplinePatch< real_t, GeoDim, ParDim >::eval_from_precomputed ( const utils::TensorArray< ParDim > &  basfunc,
const torch::Tensor &  coeff_indices,
int64_t  numeval,
torch::IntArrayRef  sizes 
) const
pure virtual

Returns the value of the spline function from precomputed basis function.

◆ from_tensor()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual BSplinePatch & iganet::BSplinePatch< real_t, GeoDim, ParDim >::from_tensor ( const torch::Tensor &  tensor)
pure virtualnoexcept

◆ is_sparse()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual bool iganet::BSplinePatch< real_t, GeoDim, ParDim >::is_sparse ( ) const
pure virtualnoexcept

◆ layout()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual torch::Layout iganet::BSplinePatch< real_t, GeoDim, ParDim >::layout ( ) const
pure virtualnoexcept

◆ pinned_memory()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual bool iganet::BSplinePatch< real_t, GeoDim, ParDim >::pinned_memory ( ) const
pure virtualnoexcept

◆ pretty_print()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual void iganet::BSplinePatch< real_t, GeoDim, ParDim >::pretty_print ( std::ostream &  os = Log(log::info)) const
pure virtualnoexcept

Returns a string representation.

◆ requires_grad()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual bool iganet::BSplinePatch< real_t, GeoDim, ParDim >::requires_grad ( ) const
pure virtualnoexcept

◆ set_requires_grad()

template<typename real_t , short_t GeoDim, short_t ParDim>
virtual BSplinePatch & iganet::BSplinePatch< real_t, GeoDim, ParDim >::set_requires_grad ( bool  requires_grad)
pure virtualnoexcept

The documentation for this class was generated from the following file: