C8LIB
A Double Precision Complex Arithmetic Utility Library
C8LIB
is a FORTRAN90 library which
implements certain
elementary functions for "C8" or
double precision complex variables.
The symbol "C8" is used to suggest a double precision complex
variable. Here the 8 indicates that the underlying pair of
real numbers each use 8 bytes of storage.
C8LIB contains routines that operate on scalars, vectors or
doubly dimensioned arrays of C8's. A vector of C8's is denoted
a C8VEC, and a doubly dimensioned array is a C8MAT.
Licensing:
The computer code and data files described and made available on this web page
are distributed under
the GNU LGPL license.
Languages:
C8LIB is available in
a C version and
a C++ version and
a FORTRAN77 version and
a FORTRAN90 version and
a MATLAB version.
Related Programs:
I4LIB,
a MATLAB library which
contains many utility routines, using "I4" or "single precision integer"
arithmetic.
R8LIB,
a MATLAB library which
contains many utility routines, using "R8" or
"double precision real" arithmetic.
SUBPAK,
a MATLAB library which
contains many utility routines;
Source Code:
-
c4vec_print.m,
prints a C4VEC;
-
c8_argument.m,
returns the argument of a C8;
-
c8_cube_root.m,
returns the cube root of a C8;
-
c8_i.m,
returns the value of the imaginary unit, i as a C8.
-
c8_le_l1.m,
( X <= Y ) for C8's, and the L1 norm.
-
c8_le_l2.m,
( X <= Y ) for C8's, and the L2 norm.
-
c8_le_li.m,
( X <= Y ) for C8's, and the L-oo norm.
-
c8_magnitude.m,
returns the magnitude of a C8;
-
c8_norm_l1.m,
computes the L1 norm of a C8.
-
c8_norm_l2.m,
computes the L2 norm of a C8.
-
c8_norm_li.m,
computes the L-oo norm of a C8.
-
c8_normal_01.m,
returns a unit pseudonormal C8.
-
c8_print.m,
prints a C8.
-
c8_square_root.m,
returns the square root of a C8;
-
c8_swap.m,
swaps two C8's.
-
c8_uniform_01.m,
returns a unit pseudorandom C8.
-
c8_zero.m,
returns the value of zero as a C8.
-
c8mat_indicator.m,
returns the C8MAT indicator matrix.
-
c8mat_print.m,
prints a C8MAT.
-
c8mat_print_some.m,
prints some of a C8MAT.
-
c8mat_uniform_01.m,
returns a unit pseudorandom C8MAT.
-
c8vec_indicator.m,
sets a C8VEC to the indicator vector.
-
c8vec_nint.m,
rounds the entries of a C8VEC.
-
c8vec_norm_l2.m,
returns the L2 norm of a C8VEC.
-
c8vec_print.m,
prints a C8VEC.
-
c8vec_print_part.m,
prints part of a C8VEC.
-
c8vec_print_some.m,
prints some of a C8VEC.
-
c8vec_sort_a1.m,
ascending sorts a C8VEC by the L1 norm.
-
c8vec_sort_a2.m,
ascending sorts a C8VEC by the L2 norm.
-
c8vec_sort_ainf.m,
ascending sorts a C8VEC by the L-oo norm.
-
c8vec_uniform_01.m,
returns a unit pseudorandom C8VEC.
-
c8vec_unity.m,
returns the N roots of unity.
-
cartesian_to_c8.m,
converts a Cartesian complex number to C8 format.
-
polar_to_c8.m,
converts a polar form complex number to C8 format.
-
r8_uniform_01.m,
returns a unit pseudorandom R8;
-
sort_heap_external.m,
external sorts a list of values into ascending order;
-
timestamp.m,
prints the current YMDHMS date as a timestamp;
Examples and Tests:
You can go up one level to
the MATLAB source codes.
Last revised on 10 June 2010.