A Single Precision Complex Arithmetic Utility Library

**C4LIB**
is a MATLAB library which
implements certain
elementary functions for "C4" or
single precision complex variables.

The symbol "C4" is used to suggest a single precision complex variable. Here the 4 indicates that the underlying pair of real numbers each use 4 bytes of storage.

C4LIB contains routines that operate on scalars, vectors or doubly dimensioned arrays of C4's. A vector of C4's is denoted a C4VEC, and a doubly dimensioned array is a C4MAT.

The computer code and data files described and made available on this web page are distributed under the GNU LGPL license.

**C4LIB** is available in
a C version and
a C++ version and
a FORTRAN77 version and
a FORTRAN90 version and
a MATLAB version and
a Python version.

C8LIB, a MATLAB library which contains many utility routines, using "C8" or "double precision complex" arithmetic.

I4LIB, a MATLAB library which contains many utility routines, using "I4" or "single precision integer" arithmetic.

L4LIB, a MATLAB library which contains many utility routines, using one byte logical (L4) variables.

R8LIB, a MATLAB library which contains many utility routines, using "R8" or "double precision real" arithmetic.

- c4_uniform_01.m, returns a unit pseudorandom C4.
- c4mat_print.m, prints a C4MAT.
- c4mat_print_some.m, prints some of a C4MAT.
- c4mat_uniform_01.m, returns a unit pseudorandom C4MAT.
- c4vec_print.m, prints a C4VEC.
- timestamp.m, prints the current YMDHMS date as a timestamp;

- c4lib_test.m, runs all the tests;
- c4lib_test_output.txt, the output file;
- c4lib_test29.m, tests C4MAT_UNIFORM_01;

You can go up one level to the MATLAB source codes.