def c8mat_uniform_01_test ( ):

#*****************************************************************************80
#
## C8MAT_UNIFORM_01_TEST tests C8MAT_UNIFORM_01.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    15 December 2014
#
#  Author:
#
#    John Burkardt
#
  from c8mat_print import c8mat_print

  import numpy as np

  m = 5
  n = 3
  seed = 123456789

  print ''
  print 'C8MAT_UNIFORM_01_TEST'
  print '  C8MAT_UNIFORM_01 computes a random C8MAT.'
  print ''
  print '  0 <= X <= 1'
  print '  Initial seed is %d' % ( seed )

  v, seed = c8mat_uniform_01 ( m, n, seed )

  c8mat_print ( m, n, v, '  Random C8MAT:' )

  print ''
  print 'C8MAT_UNIFORM_01_TEST:'
  print '  Normal end of execution.'

  return
def c8mat_norm_l1_test ( ):

#*****************************************************************************80
#
## C8MAT_NORM_L1_TEST tests C8MAT_NORM_L1.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license.
#
#  Modified:
#
#    15 February 2015
#
#  Author:
#
#    John Burkardt
#
  import numpy as np
  from c8mat_indicator import c8mat_indicator
  from c8mat_print import c8mat_print

  print ''
  print 'C8MAT_NORM_L1_TEST'
  print '  C8MAT_NORM_L1 computes the L1 norm of a C8MAT.'

  m = 5
  n = 4
  c = c8mat_indicator ( m, n )

  c8mat_print ( m, n, c, '  The Indicator matrix:' )

  value = c8mat_norm_l1 ( m, n, c )

  print ''
  print '  L1 norm = %g' % ( value )

  print ''
  print 'C8MAT_NORM_L1_TEST:'
  print '  Normal end of execution.'

  return
def c8mat_uniform_01_test ( ):

#*****************************************************************************80
#
## C8MAT_UNIFORM_01_TEST tests C8MAT_UNIFORM_01.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    15 December 2014
#
#  Author:
#
#    John Burkardt
#
  from c8mat_print import c8mat_print

  import numpy as np

  m = 5
  n = 3
  seed = 123456789

  print ''
  print 'C8MAT_UNIFORM_01_TEST'
  print '  C8MAT_UNIFORM_01 computes a random C8MAT.'
  print ''
  print '  0 <= X <= 1'
  print '  Initial seed is %d' % ( seed )

  v, seed = c8mat_uniform_01 ( m, n, seed )

  c8mat_print ( m, n, v, '  Random C8MAT:' )

  print ''
  print 'C8MAT_UNIFORM_01_TEST:'
  print '  Normal end of execution.'

  return
def c8mat_identity_test():

    #*****************************************************************************80
    #
    ## C8MAT_IDENTITY_TEST tests C8MAT_IDENTITY.
    #
    #  Licensing:
    #
    #    This code is distributed under the GNU LGPL license.
    #
    #  Modified:
    #
    #    14 February 2015
    #
    #  Author:
    #
    #    John Burkardt
    #
    from c8mat_print import c8mat_print

    import numpy as np

    m = 4
    n = 4

    print ''
    print 'C8MAT_IDENTITY_TEST'
    print '  C8MAT_IDENTITY returns the complex identity matrix.'

    c = c8mat_identity(n)

    c8mat_print(m, n, c, '  Identity matrix:')

    print ''
    print 'C8MAT_IDENTITY_TEST:'
    print '  Normal end of execution.'

    return
def c8mat_indicator_test ( ):

#*****************************************************************************80
#
## C8MAT_INDICATOR_TEST tests C8MAT_INDICATOR.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    14 February 2015
#
#  Author:
#
#    John Burkardt
#
  from c8mat_print import c8mat_print

  import numpy as np

  m = 5
  n = 3

  print ''
  print 'C8MAT_INDICATOR_TEST'
  print '  C8MAT_INDICATOR returns the complex indicator matrix.'

  c = c8mat_indicator ( m, n )

  c8mat_print ( m, n, c, '  Indicator matrix:' )

  print ''
  print 'C8MAT_INDICATOR_TEST:'
  print '  Normal end of execution.'

  return
def c8mat_identity_test ( ):

#*****************************************************************************80
#
## C8MAT_IDENTITY_TEST tests C8MAT_IDENTITY.
#
#  Licensing:
#
#    This code is distributed under the GNU LGPL license. 
#
#  Modified:
#
#    14 February 2015
#
#  Author:
#
#    John Burkardt
#
  from c8mat_print import c8mat_print

  import numpy as np

  m = 4
  n = 4

  print ''
  print 'C8MAT_IDENTITY_TEST'
  print '  C8MAT_IDENTITY returns the complex identity matrix.'

  c = c8mat_identity ( n )

  c8mat_print ( m, n, c, '  Identity matrix:' )

  print ''
  print 'C8MAT_IDENTITY_TEST:'
  print '  Normal end of execution.'

  return