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, Inputs, Outputs, CollPts > iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData > iganet::IgANet< Optimizer, Inputs, Outputs, CollPts > iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData > iganet::IgANetCustomizable< Inputs, Outputs > iganet::IgANet< Optimizer, Inputs, Outputs, CollPts > iganet::v1::IgANetCustomizable< GeometryMap, Variable > iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData > iganet::IgANetCustomizable< Inputs, Outputs > iganet::IgANet< Optimizer, Inputs, Outputs, CollPts > iganet::v1::IgANetCustomizable< GeometryMap, Variable > iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData > iganet::IgANetCustomizable< Inputs, Outputs > iganet::IgANet< Optimizer, Inputs, Outputs, CollPts > iganet::v1::IgANetCustomizable< GeometryMap, Variable > iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::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.
 
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.
 
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.
 
auto & G ()
 Returns a non-constant reference to the geometry.
 
auto & G ()
 Returns a non-constant reference to the geometry.
 
auto & G ()
 Returns a non-constant reference to the geometry.
 
auto & G ()
 Returns a non-constant reference to the geometry.
 
auto & G ()
 Returns a non-constant reference to the geometry.
 
auto const & G () const
 Returns a constant reference to the geometry.
 
auto const & G () const
 Returns a constant reference to the geometry.
 
auto const & G () const
 Returns a constant reference to the geometry.
 
auto const & G () const
 Returns a constant reference to the geometry.
 
auto const & G () const
 Returns a constant reference to the geometry.
 
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.
 
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.
 
auto & u ()
 Returns a non-constant reference to the solution.
 
auto & u ()
 Returns a non-constant reference to the solution.
 
auto & u ()
 Returns a non-constant reference to the solution.
 
auto & u ()
 Returns a non-constant reference to the solution.
 
auto & u ()
 Returns a non-constant reference to the solution.
 
auto const & u () const
 Returns a constant reference to the solution.
 
auto const & u () const
 Returns a constant reference to the solution.
 
auto const & u () const
 Returns a constant reference to the solution.
 
auto const & u () const
 Returns a constant reference to the solution.
 
auto const & u () const
 Returns a constant reference to the solution.
 
- Public Member Functions inherited from iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >
 IgANet (const IgANetOptions &defaults={}, iganet::Options< typename Base::value_type > options=iganet::Options< typename Base::value_type >{})
 Default constructor.
 
- Public Member Functions inherited from iganet::IgANet< Optimizer, Inputs, Outputs, CollPts >
 IgANet (const IgANetOptions &defaults={}, iganet::Options< typename Base::value_type > options=iganet::Options< typename Base::value_type >{})
 Default constructor.
 
template<typename NumCoeffs >
 IgANet (const std::vector< int64_t > &layers, const std::vector< std::vector< std::any > > &activations, const NumCoeffs &numCoeffs, enum init init=init::greville, IgANetOptions defaults={}, iganet::Options< typename Base::value_type > options=iganet::Options< typename Base::value_type >{})
 Constructor: number of layers, activation functions, and number of spline coefficients (same for all inputs and outputs)
 
template<typename NumCoeffsInputs , typename NumCoeffsOutputs >
 IgANet (const std::vector< int64_t > &layers, const std::vector< std::vector< std::any > > &activations, const NumCoeffsInputs &numCoeffsInputs, const NumCoeffsOutputs &numCoeffsOutputs, enum init init=init::greville, IgANetOptions defaults={}, iganet::Options< typename Base::value_type > options=iganet::Options< typename Base::value_type >{})
 Constructor: number of layers, activation functions, and number of spline coefficients (same for all inputs and outputs)
 
void eval ()
 Evaluate IgANet.
 
constexpr auto & inputs ()
 Returns a non-constant reference to the tuple of input objects.
 
constexpr const auto & inputs () const
 Returns a constant reference to the tuple of input objects.
 
virtual void inputs (const torch::Tensor &tensor)
 Attaches the given tensor to the inputs.
 
virtual torch::Tensor inputs (int64_t epoch) const
 Returns the network inputs as tensor.
 
void load (const std::string &filename, const std::string &key="iganet")
 Loads the IgANet from file.
 
torch::OrderedDict< std::string, torch::Tensor > named_parameters () const noexcept
 Returns a constant reference to the named parameters of the IgANet object.
 
IgANetGenerator< typename Base::value_type > & net ()
 Returns a non-constant reference to the IgANet generator.
 
const IgANetGenerator< typename Base::value_type > & net () const
 Returns a constant reference to the IgANet generator.
 
std::size_t nparameters () const noexcept
 Returns the total number of parameters of the IgANet object.
 
bool operator!= (const IgANet &other) const
 Returns true if both IgANet objects are different.
 
bool operator== (const IgANet &other) const
 Returns true if both IgANet objects are the same.
 
optimizer_typeoptimizer ()
 Returns a non-constant reference to the optimizer.
 
const optimizer_typeoptimizer () const
 Returns a constant reference to the optimizer.
 
optimizer_options_typeoptimizerOptions (std::size_t param_group=0)
 Returns a non-constant reference to the optimizer options.
 
const optimizer_options_typeoptimizerOptions (std::size_t param_group=0) const
 Returns a constant reference to the optimizer options.
 
void optimizerOptionsReset (const optimizer_options_type &options)
 Resets the optimizer options.
 
void optimizerOptionsReset (const optimizer_options_type &options, std::size_t param_group)
 Resets the optimizer options.
 
void optimizerOptionsReset (optimizer_options_type &&options)
 Resets the optimizer options.
 
void optimizerOptionsReset (optimizer_options_type &&options, std::size_t param_group)
 Resets the optimizer options.
 
void optimizerReset (bool resetOptions=true)
 Resets the optimizer.
 
void optimizerReset (const optimizer_options_type &optimizerOptions)
 Resets the optimizer.
 
auto & options ()
 Returns a non-constant reference to the options structure.
 
const auto & options () const
 Returns a constant reference to the options structure.
 
constexpr auto & outputs ()
 Returns a non-constant reference to the tuple of output objects.
 
constexpr const auto & outputs () const
 Returns a constant reference to the tuple of output objects.
 
virtual void outputs (const torch::Tensor &tensor)
 Attaches the given tensor to the outputs.
 
virtual torch::Tensor outputs (int64_t epoch) const
 Returns the network outputs as tensor.
 
std::vector< torch::Tensor > parameters () const noexcept
 Returns a constant reference to the parameters of the IgANet object.
 
void pretty_print (std::ostream &os) const noexcept override
 Returns a string representation of the IgANet object.
 
torch::serialize::InputArchive & read (torch::serialize::InputArchive &archive, const std::string &key="iganet")
 Loads the IgANet from a torch::serialize::InputArchive object.
 
torch::Tensor & register_parameter (std::string name, torch::Tensor tensor, bool requires_grad=true)
 Registers a parameter.
 
void save (const std::string &filename, const std::string &key="iganet") const
 Saves the IgANet to file.
 
nlohmann::json to_json () const override
 Returns the IgANet object as JSON object.
 
virtual void train ()
 Trains the IgANet.
 
template<typename DataLoader >
void train (DataLoader &loader)
 Trains the IgANet.
 
torch::serialize::OutputArchive & write (torch::serialize::OutputArchive &archive, const std::string &key="iganet") const
 Writes the IgANet into a torch::serialize::OutputArchive object.
 

Private Types

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

Private Attributes

Customizable::variable_interior_coeff_indices_type coeff_indices_
 Coefficient indices.
 
Customizable::template output_interior_coeff_indices_t< 0 > coeff_indices_
 Coefficient indices.
 
Base::variable_collPts_type collPts_
 Collocation points.
 
Base::template collPts_t< 0 > collPts_
 Collocation points.
 
Customizable::variable_interior_knot_indices_type knot_indices_
 Knot indices.
 
Customizable::template output_interior_knot_indices_t< 0 > knot_indices_
 Knot indices.
 

Additional Inherited Members

- Public Types inherited from iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >
using Base = iganet::v1::IgABaseNoRefData< GeometryMap, Variable >
 Base type.
 
using optimizer_options_type = optimizer_options_type< Optimizer >::type
 Type of the optimizer options.
 
using optimizer_type = Optimizer
 Type of the optimizer.
 
- Public Types inherited from iganet::v1::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.
 
- Public Types inherited from iganet::IgANet< Optimizer, Inputs, Outputs, CollPts >
using Base = IgABase< Inputs, Outputs, CollPts >
 Base type.
 
using optimizer_options_type = optimizer_options_type< Optimizer >::type
 Type of the optimizer options.
 
using optimizer_type = Optimizer
 Type of the optimizer.
 
using value_type = Base::value_type
 Value type.
 
- Protected Attributes inherited from iganet::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >
IgANetGenerator< typename Base::value_typenet_
 IgANet generator.
 
std::unique_ptr< optimizer_typeopt_
 Optimizer.
 
IgANetOptions options_
 Options.
 
- Protected Attributes inherited from iganet::IgANet< Optimizer, Inputs, Outputs, CollPts >
IgANetGenerator< typename Base::value_type > net_
 IgANet generator.
 
std::unique_ptr< optimizer_typeopt_
 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/10]

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

Type of the base class.

◆ Base [2/10]

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

Type of the base class.

◆ Base [3/10]

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

Type of the base class.

◆ Base [4/10]

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

Type of the base class.

◆ Base [5/10]

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

Type of the base class.

◆ Base [6/10]

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

Type of the base class.

◆ Base [7/10]

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

Type of the base class.

◆ Base [8/10]

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

Type of the base class.

◆ Base [9/10]

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

Type of the base class.

◆ Base [10/10]

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

Type of the base class.

◆ Customizable [1/6]

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

Type of the customizable class.

◆ Customizable [2/6]

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

Type of the customizable class.

◆ Customizable [3/6]

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

Type of the customizable class.

◆ Customizable [4/6]

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

Type of the customizable class.

◆ Customizable [5/6]

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

Type of the customizable class.

◆ Customizable [6/6]

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

Type of the customizable class.

Member Function Documentation

◆ collPts() [1/10]

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/10]

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/10]

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/10]

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/10]

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() [6/10]

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() [7/10]

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() [8/10]

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() [9/10]

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() [10/10]

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/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [2/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [3/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [4/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [5/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [6/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [7/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [8/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [9/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ epoch() [10/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ G() [1/10]

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

Returns a non-constant reference to the geometry.

◆ G() [2/10]

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

Returns a non-constant reference to the geometry.

◆ G() [3/10]

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

Returns a non-constant reference to the geometry.

◆ G() [4/10]

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

Returns a non-constant reference to the geometry.

◆ G() [5/10]

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

Returns a non-constant reference to the geometry.

◆ G() [6/10]

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

Returns a constant reference to the geometry.

◆ G() [7/10]

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

Returns a constant reference to the geometry.

◆ G() [8/10]

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

Returns a constant reference to the geometry.

◆ G() [9/10]

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

Returns a constant reference to the geometry.

◆ G() [10/10]

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

Returns a constant reference to the geometry.

◆ loss() [1/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [2/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [3/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [4/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [5/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [6/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [7/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [8/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [9/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ loss() [10/10]

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::v1::IgANet< Optimizer, GeometryMap, Variable, iganet::v1::IgABaseNoRefData >.

◆ u() [1/10]

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

Returns a non-constant reference to the solution.

◆ u() [2/10]

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

Returns a non-constant reference to the solution.

◆ u() [3/10]

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

Returns a non-constant reference to the solution.

◆ u() [4/10]

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

Returns a non-constant reference to the solution.

◆ u() [5/10]

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

Returns a non-constant reference to the solution.

◆ u() [6/10]

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

Returns a constant reference to the solution.

◆ u() [7/10]

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

Returns a constant reference to the solution.

◆ u() [8/10]

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

Returns a constant reference to the solution.

◆ u() [9/10]

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

Returns a constant reference to the solution.

◆ u() [10/10]

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

Returns a constant reference to the solution.

Member Data Documentation

◆ coeff_indices_ [1/2]

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

Coefficient indices.

◆ coeff_indices_ [2/2]

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

Coefficient indices.

◆ collPts_ [1/2]

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

Collocation points.

◆ collPts_ [2/2]

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

Collocation points.

◆ knot_indices_ [1/2]

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

Knot indices.

◆ knot_indices_ [2/2]

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

Knot indices.


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