IgANet
IgANets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
fitting< Optimizer, GeometryMap, Variable > Class Template Reference

Specialization of the abstract IgANet class for function fitting. More...

Inheritance diagram for fitting< Optimizer, GeometryMap, Variable >:
iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData > iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData > iganet::IgANetCustomizable< GeometryMap, Variable > iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData > iganet::IgANetCustomizable< GeometryMap, Variable > iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData > iganet::IgANetCustomizable< GeometryMap, Variable > iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >

Public Member Functions

auto const & collPts () const
 Returns a constant reference to the collocation points.
 
auto const & collPts () const
 Returns a constant reference to the collocation points.
 
auto const & collPts () const
 Returns a constant reference to the collocation points.
 
auto const & collPts () const
 Returns a constant reference to the collocation points.
 
auto const & collPts () const
 Returns a constant reference to the collocation points.
 
bool epoch (int64_t epoch) override
 Initializes the epoch.
 
bool epoch (int64_t epoch) override
 Initializes the epoch.
 
bool epoch (int64_t epoch) override
 Initializes the epoch.
 
bool epoch (int64_t epoch) override
 Initializes the epoch.
 
bool epoch (int64_t epoch) override
 Initializes the epoch.
 
torch::Tensor loss (const torch::Tensor &outputs, int64_t epoch) override
 Computes the loss function.
 
torch::Tensor loss (const torch::Tensor &outputs, int64_t epoch) override
 Computes the loss function.
 
torch::Tensor loss (const torch::Tensor &outputs, int64_t epoch) override
 Computes the loss function.
 
torch::Tensor loss (const torch::Tensor &outputs, int64_t epoch) override
 Computes the loss function.
 
torch::Tensor loss (const torch::Tensor &outputs, int64_t epoch) override
 Computes the loss function.
 
- Public Member Functions inherited from iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
 IgANet (IgANetOptions defaults={}, iganet::Options< typename Base::value_type > options=iganet::Options< typename Base::value_type >{})
 Default constructor.
 

Private Types

using Base = iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
 Type of the base class.
 
using Base = iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
 Type of the base class.
 
using Base = iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
 Type of the base class.
 
using Base = iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
 Type of the base class.
 
using Base = iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
 Type of the base class.
 
using Customizable = iganet::IgANetCustomizable< GeometryMap, Variable >
 Type of the customizable class.
 
using Customizable = iganet::IgANetCustomizable< GeometryMap, Variable >
 Type of the customizable class.
 
using Customizable = iganet::IgANetCustomizable< GeometryMap, Variable >
 Type of the customizable class.
 

Private Attributes

Customizable::variable_interior_coeff_indices_type coeff_indices_
 Coefficient indices.
 
Base::variable_collPts_type collPts_
 Collocation points.
 
Customizable::variable_interior_knot_indices_type knot_indices_
 Knot indices.
 

Additional Inherited Members

- Public Types inherited from iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
using Base = iganet::IgABaseNoRefData< GeometryMap, Variable >
 Base type.
 
using optimizer_type = Optimizer
 Type of the optimizer.
 
- Public Types inherited from iganet::IgANetCustomizable< GeometryMap, Variable >
using geometryMap_boundary_coeff_indices_type = decltype(std::declval< GeometryMap >() .template find_coeff_indices< functionspace::boundary >(std::declval< typename GeometryMap::boundary_eval_type >()))
 Type of the coefficient indices of geometry type at the boundary.
 
using geometryMap_boundary_knot_indices_type = decltype(std::declval< GeometryMap >() .template find_knot_indices< functionspace::boundary >(std::declval< typename GeometryMap::boundary_eval_type >()))
 Type of the knot indices of the geometry map at the boundary.
 
using geometryMap_interior_coeff_indices_type = decltype(std::declval< GeometryMap >() .template find_coeff_indices< functionspace::interior >(std::declval< typename GeometryMap::eval_type >()))
 Type of the coefficient indices of geometry type in the interior.
 
using geometryMap_interior_knot_indices_type = decltype(std::declval< GeometryMap >() .template find_knot_indices< functionspace::interior >(std::declval< typename GeometryMap::eval_type >()))
 Type of the knot indices of the geometry map in the interior.
 
using variable_boundary_coeff_indices_type = decltype(std::declval< Variable >() .template find_coeff_indices< functionspace::boundary >(std::declval< typename Variable::boundary_eval_type >()))
 Type of the coefficient indices of variable type at the boundary.
 
using variable_boundary_knot_indices_type = decltype(std::declval< Variable >() .template find_knot_indices< functionspace::boundary >(std::declval< typename Variable::boundary_eval_type >()))
 Type of the knot indices of boundary_eval_type type at the boundary.
 
using variable_interior_coeff_indices_type = decltype(std::declval< Variable >() .template find_coeff_indices< functionspace::interior >(std::declval< typename Variable::eval_type >()))
 Type of the coefficient indices of variable type in the interior.
 
using variable_interior_knot_indices_type = decltype(std::declval< Variable >() .template find_knot_indices< functionspace::interior >(std::declval< typename Variable::eval_type >()))
 Type of the knot indices of the variables in the interior.
 
- Protected Attributes inherited from iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >
IgANetGenerator< typename Base::value_typenet_
 IgANet generator.
 
Optimizer opt_
 Optimizer.
 
IgANetOptions options_
 Options.
 

Detailed Description

template<typename Optimizer, typename GeometryMap, typename Variable>
class fitting< Optimizer, GeometryMap, Variable >

Specialization of the abstract IgANet class for function fitting.

Member Typedef Documentation

◆ Base [1/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Base = iganet::IgANet<Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData>
private

Type of the base class.

◆ Base [2/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Base = iganet::IgANet<Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData>
private

Type of the base class.

◆ Base [3/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Base = iganet::IgANet<Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData>
private

Type of the base class.

◆ Base [4/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Base = iganet::IgANet<Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData>
private

Type of the base class.

◆ Base [5/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Base = iganet::IgANet<Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData>
private

Type of the base class.

◆ Customizable [1/3]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Customizable = iganet::IgANetCustomizable<GeometryMap, Variable>
private

Type of the customizable class.

◆ Customizable [2/3]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Customizable = iganet::IgANetCustomizable<GeometryMap, Variable>
private

Type of the customizable class.

◆ Customizable [3/3]

template<typename Optimizer , typename GeometryMap , typename Variable >
using fitting< Optimizer, GeometryMap, Variable >::Customizable = iganet::IgANetCustomizable<GeometryMap, Variable>
private

Type of the customizable class.

Member Function Documentation

◆ collPts() [1/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
auto const & fitting< Optimizer, GeometryMap, Variable >::collPts ( ) const
inline

Returns a constant reference to the collocation points.

◆ collPts() [2/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
auto const & fitting< Optimizer, GeometryMap, Variable >::collPts ( ) const
inline

Returns a constant reference to the collocation points.

◆ collPts() [3/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
auto const & fitting< Optimizer, GeometryMap, Variable >::collPts ( ) const
inline

Returns a constant reference to the collocation points.

◆ collPts() [4/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
auto const & fitting< Optimizer, GeometryMap, Variable >::collPts ( ) const
inline

Returns a constant reference to the collocation points.

◆ collPts() [5/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
auto const & fitting< Optimizer, GeometryMap, Variable >::collPts ( ) const
inline

Returns a constant reference to the collocation points.

◆ epoch() [1/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
bool fitting< Optimizer, GeometryMap, Variable >::epoch ( int64_t  epoch)
inlineoverridevirtual

Initializes the epoch.

Parameters
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ epoch() [2/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
bool fitting< Optimizer, GeometryMap, Variable >::epoch ( int64_t  epoch)
inlineoverridevirtual

Initializes the epoch.

Parameters
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ epoch() [3/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
bool fitting< Optimizer, GeometryMap, Variable >::epoch ( int64_t  epoch)
inlineoverridevirtual

Initializes the epoch.

Parameters
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ epoch() [4/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
bool fitting< Optimizer, GeometryMap, Variable >::epoch ( int64_t  epoch)
inlineoverridevirtual

Initializes the epoch.

Parameters
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ epoch() [5/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
bool fitting< Optimizer, GeometryMap, Variable >::epoch ( int64_t  epoch)
inlineoverridevirtual

Initializes the epoch.

Parameters
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ loss() [1/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
torch::Tensor fitting< Optimizer, GeometryMap, Variable >::loss ( const torch::Tensor &  outputs,
int64_t  epoch 
)
inlineoverridevirtual

Computes the loss function.

Parameters
[in]outputsOutput of the network
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ loss() [2/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
torch::Tensor fitting< Optimizer, GeometryMap, Variable >::loss ( const torch::Tensor &  outputs,
int64_t  epoch 
)
inlineoverridevirtual

Computes the loss function.

Parameters
[in]outputsOutput of the network
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ loss() [3/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
torch::Tensor fitting< Optimizer, GeometryMap, Variable >::loss ( const torch::Tensor &  outputs,
int64_t  epoch 
)
inlineoverridevirtual

Computes the loss function.

Parameters
[in]outputsOutput of the network
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ loss() [4/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
torch::Tensor fitting< Optimizer, GeometryMap, Variable >::loss ( const torch::Tensor &  outputs,
int64_t  epoch 
)
inlineoverridevirtual

Computes the loss function.

Parameters
[in]outputsOutput of the network
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

◆ loss() [5/5]

template<typename Optimizer , typename GeometryMap , typename Variable >
torch::Tensor fitting< Optimizer, GeometryMap, Variable >::loss ( const torch::Tensor &  outputs,
int64_t  epoch 
)
inlineoverridevirtual

Computes the loss function.

Parameters
[in]outputsOutput of the network
[in]epochEpoch number

Implements iganet::IgANet< Optimizer, GeometryMap, Variable, iganet::IgABaseNoRefData >.

Member Data Documentation

◆ coeff_indices_

template<typename Optimizer , typename GeometryMap , typename Variable >
Customizable::variable_interior_coeff_indices_type fitting< Optimizer, GeometryMap, Variable >::coeff_indices_
private

Coefficient indices.

◆ collPts_

template<typename Optimizer , typename GeometryMap , typename Variable >
Base::variable_collPts_type fitting< Optimizer, GeometryMap, Variable >::collPts_
private

Collocation points.

◆ knot_indices_

template<typename Optimizer , typename GeometryMap , typename Variable >
Customizable::variable_interior_knot_indices_type fitting< Optimizer, GeometryMap, Variable >::knot_indices_
private

Knot indices.


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