API Reference
The full Fortran API documentation is generated using FORD (Fortran Automatic Documentation).
You can browse the complete API documentation here:
The API documentation includes:
Module Reference: Detailed documentation of all modules
Type Definitions: Documentation of derived types like
array_typeProcedures: All public procedures and their interfaces
Source Code: Annotated source code with cross-references
Call Graphs: Visual representation of procedure dependencies
Main Modules
diffstruc
The main module providing automatic differentiation functionality.
Key types:
array_type: The core type for differentiable arraysallocate(): Allocate array storagedeallocate(): Free array storageset_requires_grad(): Enable gradient trackinggrad_forward(): Compute gradients using forward modegrad_reverse(): Compute gradients using reverse mode (backpropagation)nullify_graph(): Clean up computation graphduplicate_graph(): Duplicate a computation graph
Key operations supported:
Arithmetic:
+,-,*,/,**Trigonometric:
sin,cos,tan,asin,acos,atanHyperbolic:
sinh,cosh,tanhExponential/Logarithmic:
exp,log,log10Linear Algebra:
matmul,transposeReduction:
sum,mean
For complete details and source code, please refer to the FORD documentation linked above.