HILA
Loading...
Searching...
No Matches
hila_simple_example.cpp File Reference

Simple HILA example application which computes laplacian of Gaussian random complex field. More...

#include "hila.h"
Include dependency graph for hila_simple_example.cpp:

Go to the source code of this file.

Functions

int main (int argc, char *argv[])
 Main function for application which implements the method.
 

Detailed Description

Simple HILA example application which computes laplacian of Gaussian random complex field.

Author
Aaron Haarti

The application generates a \( 32^2 \) size field \( f \) of random Complex numbers. We proceed to compute the summed absolute value of the Laplacian of said field:

\begin{align}g(X) &= |\nabla^2 f(X)| \\ &= \sum_{d \in \hat{e}} |f(X + d) - 2f(X) + f(X-d)|, \end{align}

where \(\hat{e} = \{e_x,e_y,e_z\}\) is the set of unit vectors. Afterwards this quantity is printed out.

Definition in file hila_simple_example.cpp.

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)

Main function for application which implements the method.

Parameters
argc
argv
Returns
int

Definition at line 28 of file hila_simple_example.cpp.