Description Usage Arguments Value Author(s) Examples
View source: R/isingLibWrapper.R
The function uses default RNG (Marsienne-Twister) unless changed by the user, within R, to generate a vector that contains 1 or -1. This reflects spin sites. This function calls 'genConfig1D' C function.
1 | genConfig1D(n)
|
n |
The number of spin sites on the lattice. |
Returns vector that contains 1s or -1s.
Mehmet Suzen <mehmet.suzen@physics.org>
1 2 | n <- 10 # 10 spin sites
genConfig1D(n)
|
[1] 1 1 -1 -1 -1 1 1 -1 -1 1
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.