... | ... | @@ -3,7 +3,7 @@ Static codes support two types of arithmetics: |
|
|
* `double complex`: `ELEMENT_SIZE=16B`
|
|
|
default mode: matrix elements of hamiltonian are assumed to be of complex numbers.
|
|
|
* `double`: `ELEMENT_SIZE=8B`
|
|
|
if you know that matrix elements, as well as the solution, will be real numbers (for examples based on symmetries of your problem) you can speed-up the calculation process by switching to double arithmetics. To do this you need to activate in [predefines.h](https://gitlab.fizyka.pw.edu.pl/gabrielw/wslda/-/blob/public/st-project-template/predefines.h) flag:
|
|
|
if you know that matrix elements, as well as the solution, will be real numbers (for examples based on symmetries of your problem) you can speed-up the calculation process by switching to double arithmetics. To do this you need to activate in [predefines.h](https://gitlab.fizyka.pw.edu.pl/wtools/wslda/-/blob/public/st-project-template/predefines.h) flag:
|
|
|
```c
|
|
|
/**
|
|
|
* activate this if you know that Hamiltonian matrix is real,
|
... | ... | |