IgANet
IgANets - Isogeometric Analysis Networks
Loading...
Searching...
No Matches
iganet_fitting_simple.cxx File Reference

Demonstration of IgANet function fitting. More...

#include <chrono>
#include <iganet.h>
#include <iostream>

Classes

class  fitting< Optimizer, GeometryMap, Variable >
 Specialization of the abstract IgANet class for function fitting. More...
 

Functions

int main ()
 

Detailed Description

Demonstration of IgANet function fitting.

This example demonstrates how to implement a simple IgANet to fit a given function on a square geometry. In contrast to the example iganet_fitting.cxx this examples does not make use of pre-computed indices and coefficients and might therefore be slower.

This example can be configured with the following environment variables

IGANET_NCOEFFS - number of B-spline coefficients IGANET_NLAYERS - number of network layers IGANET_NNEURONS - number of neurons per layer IGANET_MAX_EPOCH - maximum number of epochs during training IGANET_MIN_LOSS - tolerance for loss function

Author
Matthias Moller

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Function Documentation

◆ main()

int main ( )