HΦ  3.2.0
Malloc vectors

To set memory, we use ?malloc% function defined in mfmemmory.h, where ? indicates the type of the array and % means the dimension.

For example, char_malloc2(X, N1, N2) function sets the size of memories N1 \( \times \) N2 characters to two dimensional array X.

To set memories to global arrays, we prepare two functions, setmem_def() and setmem_large() functions.

  • setmem_def()

    In this function, the memories of the arrays which do not have large memory are stored.

    Arrays for defining interactions and correlation functions are mainly defined.

  • setmem_large()

    In this function, the memories of the arrays which have large memory are stored.

    Arrays for defining Hamiltonian and vectors are mainly defined.

See also
setmem_def(), setmem_large()