L4LIB A Utility Library for Logical Variables

L4LIB is a C++ library which contains many utility routines for "L4" or "one byte logical" arithmetic.

Languages:

L4LIB is available in a C version and a C++ version and a FORTRAN90 version and a MATLAB version and a Python version.

Related Programs:

C4LIB, a C++ library which implements certain elementary functions for single precision complex (C4) variables.

C8LIB, a C++ library which implements certain elementary functions for "C8" or double precision complex variables;

I4LIB, a C++ library which contains many utility routines, using "I4" or "4 byte integer" arithmetic.

I8LIB, a C++ library which contains many utility routines, using "I8" or "8 byte integer" arithmetic.

R4LIB, a C++ library which contains many utility routines, using "R4" or "single precision real" arithmetic.

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

List of Routines:

• I4_MAX returns the maximum of two I4's.
• I4_MIN returns the minimum of two I4's.
• I4_TO_L4 converts an I4 to a logical value.
• L4_TO_I4 converts an L4 to an I4.
• L4_TO_S converts an L4 to a string.
• L4_UNIFORM returns a pseudorandom L.
• L4_XOR returns the exclusive OR of two L4's.
• L4MAT_PRINT prints an L4MAT.
• L4MAT_PRINT_SOME prints some of an L4MAT.
• L4MAT_TRANSPOSE_PRINT prints an L4MAT, transposed.
• L4MAT_TRANSPOSE_PRINT_SOME prints some of an L4MAT, transposed.
• L4MAT_UNIFORM returns a pseudorandom L4MAT.
• L4MAT_UNIFORM_NEW returns a new pseudorandom L4MAT.
• L4VEC_NEXT generates the next logical vector.
• L4VEC_PRINT prints an L4VEC.
• L4VEC_UNIFORM_NEW returns a pseudorandom L4VEC.
• S_TO_L4 reads an L4 from a string.
• TIMESTAMP prints the current YMDHMS date as a time stamp.

You can go up one level to the C++ source codes.

Last revised on 01 July 2016.