Esempio n. 1
0
def cgn_get ( ):

#*****************************************************************************80
#
## CGN_GET gets the current generator index.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    27 May 2013
#
#  Author:
#
#    John Burkardt
#
#  Parameters:
#
#    Output, integer G, the current generator index.
#
  from cgn_memory import cgn_memory

  i = -1
  g = []
  g = cgn_memory ( i, g )

  return g
Esempio n. 2
0
def cgn_get():

    #*****************************************************************************80
    #
    ## CGN_GET gets the current generator index.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    27 May 2013
    #
    #  Author:
    #
    #    John Burkardt
    #
    #  Parameters:
    #
    #    Output, integer G, the current generator index.
    #
    from cgn_memory import cgn_memory

    i = -1
    g = []
    g = cgn_memory(i, g)

    return g
Esempio n. 3
0
def cgn_set ( g ):

#*****************************************************************************80
#
## CGN_SET sets the current generator index.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    27 May 2013
#
#  Author:
#
#    John Burkardt
#
#  Parameters:
#
#    Input, integer G, the current generator index.
#    1 <= G <= 32.
#
  from cgn_memory import cgn_memory

  i = +1
  g = cgn_memory ( i, g )

  return