src/system.cpp
/**
 * Computes the magetization of the lattice.
 * 
 * @return magnetization (int)
 */
Computes the magetization of the lattice.

@return magnetization (int)
Computes the magetization of the lattice . @return magnetization ( int )
int System::magnetization() {
    int M_config = 0;
    for (int i = 0; i < this->N_atm; ++i) {
        M_config += spins_vector[i];
    }
    return M_config;
}
int System :: magnetization ( ) { int M_config = 0 ; for ( int i = 0 ; i < this -> N_atm ; ++ i ) { M_config += spins_vector [ i ] ; } return M_config ; }
Computes the magetization of the lattice.
Computes the magetization of the lattice .