pihnn.nn#

Definition of PIHNN networks.

Attributes#

Classes#

ComplexLinear

Extension of torch.nn.Linear to complex values.

ComplexParameter

Extension of torch.nn.Parameter to complex values.

PIHNN

Main class for the employment of physics-informed holomorphic neural networks (PIHNNs) from Calafà et al. [2024].

DD_PIHNN

Domain-decomposition physics-informed holomorphic neural networks (DD-PIHNNs).

enriched_PIHNN

PIHNN with enrichment for cracks, as introduced in Calafà et al. [2025].

Functions#

custom_format_warning(message, category, filename, lineno)

Custom formatting for warnings.

derivative(f, z[, holom, conjugate])

Compute the derivative \(\frac{df}{dz}\) through PyTorch automatic differentiation.

Module Contents#

pihnn.nn.device[source]#