C++ Source Codes


  1. albany, examples of the usage of the ALBANY program, which allows the implementation of finite element PDE solvers for a variety of fundamental research applications, including LCM (Laboratory for Computational Mechanics), QCAD (Quantum Computer Aided Design) and FELIX (Finite Element for Land Ice eXperiments).
  2. allocatable_array, a program which demonstrates how a C++ function can declare a pointer to an array, pass it to a function, which can then allocate it and fill it with data, and then return the allocated and initialized array to the calling function through the argument list.
  3. analemma, a program which evaluates the equation of time, a formula for the difference between the uniform 24 hour day and the actual position of the sun, creating data files that can be plotted with gnuplot, based on a C program by Brian Tung.
  4. args, a program which reports the command line arguments with which it was invoked;
  5. asa005, a library which evaluates the lower tail of the noncentral Student's T distribution, by BE Cooper. This is a version of Applied Statistics Algorithm 5;
  6. asa006, a library which computes the Cholesky factor of a positive definite symmetric matrix, by Michael Healy. This is a version of Applied Statistics Algorithm 6;
  7. asa007, a library which computes the inverse of a positive definite symmetric matrix, by Michael Healy. This is a version of Applied Statistics Algorithm 7.
  8. asa032, a library which evaluates the incomplete Gamma function, by G Bhattacharjee. This is a version of Applied Statistics Algorithm 32;
  9. asa047, a library which minimizes a scalar function of several variables using the Nelder-Mead algorithm, by R ONeill. This is a version of Applied Statistics Algorithm 47;
  10. asa053, a library which produces sample matrices from the Wishart distribution, by William Smith and Ronald Hocking. This is a version of Applied Statistics Algorithm 53.
  11. asa058, a library which carries out K-means clustering of data, by David Sparks. This is a version of Applied Statistics Algorithm 58;
  12. asa063, a library which evaluates the incomplete Beta function, by KL Majumder and G Bhattacharjee. This is a version of Applied Statistics Algorithm 63;
  13. asa066, a library which computes the cumulative density function (CDF) of the standard normal distribution, by David Hill. This is a version of Applied Statistics Algorithm 66;
  14. asa076, a library which evaluates Owen's T function, by Young and Minder. This is a version of Applied Statistics Algorithm 76;
  15. asa091, a library which computes the percentage points of the Chi-square distribution, by Best and Roberts. This is a version of Applied Statistics Algorithm 91;
  16. asa103, a library which evaluates the digamma or psi function, by Jose Bernardo. This is a version of Applied Statistics Algorithm 103;
  17. asa109, a library which inverts the incomplete Beta function, by Cran, Martin and Thomas. This is a version of Applied Statistics Algorithm 109;
  18. asa111, a library which evaluates the percentage points of the normal distribution, by Beasley and Springer. This is a version of Applied Statistics Algorithm 111;
  19. asa113, a library which clusters data using a transfer and swap algorithm, by Banfield and Bassill. This is a version of Applied Statistics Algorithm 113;
  20. asa121, a library which evaluates the trigamma function, by BE Schneider. This is a version of Applied Statistics Algorithm 121;
  21. asa136, a library which implements a clustering algorithm, by Hartigan and Wong. This is a version of Applied Statistics Algorithm 136;
  22. asa144, a library which randomly generates tables with given row and column sums, by James Boyett. This is a version of Applied Statistics Algorithm 144;
  23. asa147, a library which evaluates the incomplete Gamma function, by Chi Leung Lau. This is a version of Applied Statistics Algorithm 147;
  24. asa152, a library which evaluates the probability density function (PDF) and cumulative density function (CDF) associated with the hypergeometric distribution, by Richard Lund. This is a version of Applied Statistics Algorithm 152;
  25. asa159, a library which computes a random table with given row and column sums, by Michael Patefield. This is a version of Applied Statistics Algorithm 159;
  26. asa172, a library which generates all M-dimensional indices in a given range, simulating the behavior of an arbitrary number of nested loops, by OFlaherty and MacKenzie. This is a version of Applied Statistics Algorithm 172;
  27. asa183, a library which implements a random number generator (RNG), by Wichman and Hill. This is a version of Applied Statistics Algorithm 183;
  28. asa226, a library which evaluates the noncentral incomplete Beta function, by Russell Lenth. this is a version of Applied Statistics Algorithm 226;
  29. asa239, a library which evaluates the incomplete Gamma function, by Shea. this is a version of Applied Statistics Algorithm 239;
  30. asa241, a library which computes the inverse of the normal cumulative density function (CDF), by Michael Wichura; this is a version of Applied Statistics Algorithm 241;
  31. asa243, a library which evaluates the lower tail of the noncentral Student's T distribution, by Russell Lenth; this is a version of Applied Statistics Algorithm 243;
  32. asa245, a library which evaluates the logarithm of the Gamma function, by Allan Mcleod; this is a version of Applied Statistics Algorithm 245;
  33. asa266, a library which evaluates various properties of the Dirichlet probability density function (PDF); this is a C version of Applied Statistics Algorithm 266;
  34. asa299, a library which computes the lattice points (integer coordinates) in an M-dimensional simplex, by Chasalow and Brand; this is a version of Applied Statistics Algorithm 299;
  35. asa310, a library which evaluates the noncentral incomplete Beta function, by Chattamvelli and Shanmugam; this is a version of Applied Statistics Algorithm 310;
  36. asa314, a library which computes the inverse of a matrix whose elements are subject to modulo arithmetic, by Roger Payne. This is a version of Applied Statistics Algorithm 314.
  37. backtrack_binary_rc, a library which carries out a backtrack search for a set of binary decisions, using reverse communication.
  38. ball_grid, a library which computes grid points inside a 3D ball.
  39. ball_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit ball in 3D.
  40. ball_monte_carlo, a library which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit ball in 3D;
  41. barycentric_interp_1d, a library which defines and evaluates the barycentric Lagrange polynomial p(x) which interpolates a set of data, so that p(x(i)) = y(i). The barycentric approach means that very high degree polynomials can safely be used.
  42. bellman_ford, a library which implements the Bellman-Ford algorithm for finding the shortest distance from a given node to all other nodes in a directed graph whose edges have been assigned real-valued lengths.
  43. bernstein_polynomial, a library which evaluates the Bernstein polynomials;
  44. beta_nc, a library which evaluates the cumulative density function (CDF) of the noncentral Beta distribution;
  45. bins, a library which handles geometric data partially sorted into bins;
  46. bisection_integer, a library which seeks an integer solution to the equation F(X)=0, using bisection within a user-supplied change of sign interval [A,B].
  47. bisection_rc, a library which seeks a solution to the equation F(X)=0 using bisection within a user-supplied change of sign interval [A,B]. The procedure is written using reverse communication.
  48. bits_to_ui, a program which reads a text file of bits and writes a binary file in which groups of 32 bits have been interpreted as an unsigned integer;
  49. black_scholes, a library which implements some simple approaches to the Black-Scholes option valuation theory, by Desmond Higham.
  50. blas, a library which contains the Basic Linear Algebra Subprograms (BLAS) for level 1, 2 and 3, for single and double precision, and for real and complex arithmetic.
  51. blas0, a library which contains auxilliary functions for the Basic Linear Algebra Subprograms (BLAS).
  52. blas1, a library which contains the Basic Linear Algebra Subprograms (BLAS) for level 1 (vector-vector operations), for single and double precision, and for real and complex arithmetic, by Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh.
  53. blas1_c, a library which constitutes the Level 1 Basic Linear Algebra Subprograms (BLAS), using single precision complex arithmetic, by Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh.
  54. blas1_d, a library which constitutes the Level 1 Basic Linear Algebra Subprograms (BLAS), using double precision real arithmetic, by Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh.
  55. blas1_s, a library which constitutes the Level 1 Basic Linear Algebra Subprograms (BLAS), using single precision real arithmetic, by Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh.
  56. blas1_z, a library which constitutes the Level 1 Basic Linear Algebra Subprograms (BLAS), using double precision complex arithmetic, by Charles Lawson, Richard Hanson, David Kincaid, Fred Krogh.
  57. blas2_c, a library which constitutes the Level 2 Basic Linear Algebra Subprograms (BLAS), for matrix-vector operations.
  58. blas3, a library which constitutes the Level 3 Basic Linear Algebra Subprograms (BLAS) for matrix-matrix operations;
  59. blend, a library which uses transfinite interpolation to fill in data within a square or a cube based on boundary values;
  60. bmp_io, a library which reads and writes graphics information stored in a Microsoft BMP file;
  61. bmp_to_ppma, a program which converts a Microsoft BMP file to an ASCII Portable Pixel Map (PPM) file;
  62. bmp_to_ppmb, a program which converts a Microsoft BMP file to a binary Portable Pixel Map (PPM) file;
  63. boost, programs which illustrate the use of some of the Boost libraries;
  64. box_behnken, a library which computes a Box-Behnken design, that is, a set of arguments to sample the behavior of a function of multiple parameters;
  65. brent, a library which contains routines for finding zeroes or minima of a scalar function of a scalar variable, without the use of derivative information, including a reverse communication option, by Richard Brent. The C++ version includes some customizations by John Denker.
  66. brownian_motion_simulation, a library which simulates Brownian motion in an M-dimensional region, creating graphics files for processing by gnuplot.
  67. burgers_solution, a library which evaluates an exact solution of the time-dependent 1D viscous Burgers equation.
  68. bvec, a library which demonstrates how signed integers can be stored as binary vectors, and arithmetic can be performed on them.
  69. c++_calls_c, programs which illustrate a C++ program calling a C function.
  70. c++_calls_f77, programs which illustrate a C++ program calling a FORTRAN77 subroutine.
  71. c++_calls_f90, programs which illustrate a C++ program calling a FORTRAN90 subroutine.
  72. c++_condor, programs which illustrate how a C++ program can be run in batch mode using the condor queueing system.
  73. c4_complex_lib, a C++ class for float complex (C4) numbers;
  74. c4lib, a library which implements a basic level of single precision complex (C4) arithmetic.
  75. c8_complex_lib, a C++ class for double precision complex (C8) numbers;
  76. c8lib, a library which implements certain elementary functions for double precision complex (C8) variables;
  77. calendar_rd, a program which computes the representation of a given date in a number of calendrical systems, by Edward Reingold and Nachum Dershowitz.
  78. calpak, a library which makes various calendar calculations;
  79. catalog, a program which extracts routine definition lines from a marked-up C, C++, FORTRAN77 or FORTRAN90 file;
  80. cauchy_principal_value, a library which uses Gauss-Legendre quadrature to estimate the Cauchy Principal Value (CPV) of certain singular integrals.
  81. caustic_opengl, a program which computes a caustic curve and displays it using OpenGL.
  82. cc_io a library which reads and writes sparse linear systems stored in the Compressed Column (CC) format.
  83. cc_to_st a library which converts a sparse matrix from compressed column (CC) to sparse triplet (ST) format.
  84. ccn_rule, a program which defines a nested Clenshaw Curtis quadrature rule.
  85. ccvt_box, a program which carries out a Centroidal Voronoi Tessellation (CVT) calculation constrained to a box region, with points projected to the boundary;
  86. cdflib, a library which evaluates the cumulative density function (CDF), inverse CDF, and certain other inverse functions, for distributions including beta, binomial, chi-square, noncentral chi-square, F, noncentral F, gamma, negative binomial, normal, Poisson, and students T, by Barry Brown, James Lovato, Kathy Russell.
  87. cell, a library which defines a cell array, a generalization of an array which can compactly store and retrieve vector or matrix data of varying size, such as the rows of a triangular matrix.
  88. cellular_automaton, a program which demonstrates the 1D Cellular Automaton known as rule #30.
  89. cg, a library which implements a simple version of the conjugate gradient (CG) method for solving a system of linear equations of the form A*x=b, suitable for situations in which the matrix A is positive definite (only real, positive eigenvalues) and symmetric.
  90. cg_rc, a library which implements the conjugate gradient (CG) method for solving a positive definite sparse linear system A*x=b, using reverse communication (RC).
  91. change_making, a library which considers the change making problem, in which a given sum is to be formed using coins of various denominations.
  92. chebyshev, a library which computes the Chebyshev interpolant/approximant to a given function over an interval.
  93. chebyshev_interp_1d, a library which determines the combination of Chebyshev polynomials which interpolates a set of data, so that p(x(i)) = y(i).
  94. chebyshev_polynomial, a library which considers the Chebyshev polynomials T(i,x), U(i,x), V(i,x) and W(i,x). Functions are provided to evaluate the polynomials, determine their zeros, produce their polynomial coefficients, produce related quadrature rules, project other functions onto these polynomial bases, and integrate double and triple products of the polynomials.
  95. chebyshev_series, a library which can evaluate a Chebyshev series approximating a function f(x), while efficiently computing one, two or three derivatives of the series, which approximate f'(x), f''(x), and f'''(x), by Manfred Zimmer.
  96. chebyshev1_rule, a program which computes and writes out a Gauss-Chebyshev type 1 quadrature rule of given order.
  97. chebyshev2_rule, a program which computes and writes out a Gauss-Chebyshev type 2 quadrature rule of given order.
  98. chrpak, a library which can manipulate characters and strings;
  99. circle_arc_grid, a program which computes grid points along a circular arc.
  100. circle_integrals, a library which returns the exact value of the integral of any monomial over the circumference of the unit circle in 2D.
  101. circle_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function along the circumference of the unit circle in 2D;
  102. circle_rule, a library which computes quadrature rules for the unit circle in 2D, that is, the circumference of the circle of radius 1 and center (0,0).
  103. circle_segment, a library which carries out computations associated with a circle segment, including height, angle, area, centroid, sampling, and quadrature, creating some graphics images using gnuplot.
  104. cities, a library which works with city-to-city distance matrices;
  105. clapack, programs which illustrate the use of CLAPACK, a translation of the FORTRAN77 BLAS and LAPACK linear algebra libraries, including single and double precision, real and complex arithmetic.
  106. clapack_sc, programs which illustrate the use of CLAPACK, a translation of the FORTRAN77 BLAS and LAPACK linear algebra libraries, including single and double precision, real and complex arithmetic, as customized for the FSU Department of Scientific Computing.
  107. clenshaw_curtis_rule, a program which implements a Clenshaw Curtis quadrature rule;
  108. cnf_io, a library which reads or writes Conjunctive Normal Form (CNF) data files, used to store boolean formulas.
  109. collatz_recursive, a library which demonstrates recursive programming by considering the simple Collatz 3n+1 problem.
  110. colored_noise, a library which generates samples of noise obeying a 1/f^alpha power law.
  111. combination_lock, a program which simulates the process of determining the secret combination of a lock.
  112. combo, a library which includes routines for ranking, unranking, enumerating and randomly selecting balanced sequences, cycles, graphs, Gray codes, subsets, partitions, permutations, restricted growth functions, Pruefer codes and trees.
  113. communicator_mpi, a program which creates new communicators involving a subset of initial set of MPI processes in the default communicator MPI_COMM_WORLD.
  114. compass_search, a library which seeks the minimizer of a scalar function of several variables using compass search, a direct search algorithm that does not use derivatives.
  115. complex_numbers, a program which demonstrates some simple features involved in the use of complex numbers in C programming.
  116. condition, a library which implements methods of computing or estimating the condition number of a matrix.
  117. cordic, a library which computes a few special functions using the CORDIC algorithm.
  118. correlation, a library which contains examples of statistical correlation functions.
  119. cpp, programs which illustrate some features of the C++ language;
  120. cpp_arrays, programs which illustrate the use of vectors, matrices and tensors.
  121. cpp_files, programs which illustrate the use of files.
  122. cpp_intrinsics, a program which illustrates the use of intrinsic functions supplied by C++.
  123. cpp_random, programs which illustrate the use of the C++ random number generator (RNG) functions.
  124. cr2crlf, a program which converts carriage returns to carriage returns + linefeeds in a file;
  125. cr2lf, a program which converts carriage returns to linefeeds in a file;
  126. crc, a library which computes the cyclic redundancy checksum (CRC) as used by the PNG data format.
  127. crrm, a program which removes carriage returns from a file;
  128. cube_arbq_rule, a library which returns quadrature rules, with exactness up to total degree 15, over the interior of the symmetric cube in 3D, by Hong Xiao and Zydrunas Gimbutas.
  129. cube_exactness, a library which investigates the polynomial exactness of quadrature rules over the interior of a cube in 3D.
  130. cube_felippa_rule, a library which returns Felippa's quadratures rules for approximating integrals over the interior of a cube in 3D.
  131. cube_grid, a library which computes a grid of points over the interior of a cube in 3D.
  132. cube_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit cube in 3D.
  133. cube_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit cube in 3D.
  134. cvt, a library which computes an N point CVT Centroidal Voronoi Tessellation (CVT) in M dimensions;
  135. cvt_dataset, a program which creates a Centroidal Voronoi Tessellation (CVT) dataset;
  136. cycle_brent, a library which carries out an iterated function evaluation to determine the nearest element of a cycle, and the cycle's length, using Brent's method.
  137. cycle_floyd, a library which carries out an iterated function evaluation, and seeks to determine the nearest element of a cycle, and the cycle's length, using Floyd's method.
  138. cyclic_reduction, a library which solves a tridiagonal linear system using cyclic reduction;
  139. decomment, a program which removes from a file every line that begins with "#" (a common convention for indicating comments);
  140. delaunay_tree_2d, a program which computes the Delaunay triangulation of a 2D dataset, by Olivier Devillers.
  141. diaphony, a program which reads a file of N points in M dimensions and computes its diaphony, a measure of point dispersion.
  142. differ, determines the finite difference coefficients necessary in order to combine function values at known locations to compute an approximation of given accuracy to a derivative of a given order.
  143. dijkstra, a library which implements a simple version of Dijkstra's minimum distance algorithm for graphs.
  144. dijkstra_openmp, a program which uses OpenMP to parallelize a simple example of Dijkstra's minimum distance algorithm for graphs.
  145. discrete_pdf_sample_2d, a program which demonstrates how to construct a Probability Density Function (PDF) from sample data over a 2D domain, and then to use that PDF to create new samples.
  146. disk_grid, a library which computes grid points within the interior of a disk of user specified radius and center in 2D, using GNUPLOT to create an image of the grid.
  147. disk_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit disk in 2D.
  148. disk_monte_carlo, a library which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit disk in 2D;
  149. disk_rule, a library which computes quadrature rules for the unit disk in 2D, that is, the interior of the circle of radius 1 and center (0,0).
  150. divdif, a library which uses divided differences to compute the polynomial interpolant to a given set of data.
  151. doomsday, a library which is given the year, month and day of a date, and uses John Conway's doomsday algorithm to determine the corresponding day of the week.
  152. dream, a program which implements the DREAM algorithm for accelerating Markov Chain Monte Carlo (MCMC) convergence using differential evolution, using five user functions to define the problem, by Guannan Zhang.
  153. duel_simulation, a program which simulates N repetitions of a duel between two players, each of whom has a known firing accuracy.
  154. edge, a library which defines some test functions in 1D, 2D and 3D for the detection of edges or discontinuities, and using GNUPLOT to display the curves or surfaces.
  155. eispack, a library which carries out eigenvalue computations. It includes a function to compute the singular value decomposition (SVD) of a rectangular matrix. This library was superseded by LAPACK;
  156. ellipse_grid, a library which computes grid points over the interior of an ellipse in 2D.
  157. ellipse_monte_carlo, a library which uses the Monte Carlo method to estimate the value of integrals over the interior of an ellipse in 2D.
  158. ellipsoid_grid, a library which computes a grid of points over the interior of an ellipsoid in 3D.
  159. ellipsoid_monte_carlo, a library which uses the Monte Carlo method to estimate the value of integrals over the interior of an ellipsoid in M dimensions.
  160. exactness, a library which investigates the exactness of quadrature rules that estimate the integral of a function with a density, such as 1, exp(-x) or exp(-x^2), over an interval such as [-1,+1], [0,+oo) or (-oo,+oo).
  161. fair_dice_simulation, a program which simulates N tosses of 2 dice, creating graphics files for processing by gnuplot.
  162. faure, a library which computes elements of the Faure M-dimensional quasirandom sequence;
  163. faure_dataset, a program which creates a Faure quasirandom dataset;
  164. fd_predator_prey, a program which solves a pair of predator prey ordinary differential equations (ODE's) using the finite difference method (FDM).
  165. fd1d_advection_diffusion_steady, a program which applies the finite difference method (FDM) to solve the steady advection diffusion equation v*ux-k*uxx=0 in one spatial dimension, with constant velocity v and diffusivity k, writing graphics files for processing by gnuplot.
  166. fd1d_advection_ftcs, a program which applies the finite difference method (FDM) to solve the time-dependent advection equation ut = - c * ux in one spatial dimension, with a constant velocity, using the forward time centered space (FTCS) method, writing graphics files for processing by gnuplot.
  167. fd1d_advection_lax, a program which applies the finite difference method (FDM) to solve the time-dependent advection equation ut = - c * ux in one spatial dimension, with a constant velocity, using the Lax method to approximate the time derivative, writing graphics files for processing by gnuplot.
  168. fd1d_advection_lax_wendroff, a program which applies the finite difference method (FDM) to solve the time-dependent advection equation ut = - c * ux in one spatial dimension, with a constant velocity, using the Lax-Wendroff method to approximate the time derivative, writing graphics files for processing by gnuplot.
  169. fd1d_burgers_lax, a program which applies the finite difference method (FDM) and the Lax Wendroff method to solve the non-viscous time-dependent Burgers equation in one spatial dimension.
  170. fd1d_burgers_leap, a program which applies the finite difference method (FDM) and the leapfrog approach to solve the non-viscous time-dependent Burgers equation in one spatial dimension.
  171. fd1d_bvp, a program which applies the finite difference method (FDM) to a two point boundary value problem (BVP) in one spatial dimension.
  172. fd1d_heat_explicit, a library which uses the finite difference method (FDM), with explicit time stepping, to solve the time dependent 1D heat equation;
  173. fd1d_heat_implicit, a program which implements a finite difference method (FDM), implicit in time, of the time dependent 1D heat equation;
  174. fd1d_heat_steady, a program which implements a finite difference method (FDM) for the steady (time independent) 1D heat equation;
  175. fd1d_wave, a program which applies the finite difference method (FDM) to solve the time-dependent wave equation utt = c * uxx in one spatial dimension.
  176. fd2d_heat_steady, a program which implements a finite difference method (FDM) for the steady (time independent) 2D heat equation;
  177. fem_basis, a library which can define and evaluate finite element method (FEM) basis functions for any degree in an M-dimensional simplex (1D interval, 2D triangle, 3D tetrahedron, and higher dimensional generalizations.)
  178. fem_io, a library which reads or writes FEM files, which describe the nodes, elements, and function values associated with a finite element method (FEM) model;
  179. fem_to_gmsh, a program which reads a pair of FEM files defining node coordinates and elements, of a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a Gmsh mesh file.
  180. fem_to_medit, a program which reads a pair of FEM files defining node coordinates and elements, of a 2D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding MEDIT mesh file.
  181. fem_to_triangle, a program which reads FEM files defining a 2D mesh of triangles, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding pair of node and element files for use by Jonathan Shewchuk's triangle program.
  182. fem_to_xml, reads a pair of FEM files defining node coordinates and elements, of a 1D, 2D or 3D mesh, namely a file of node coordinates and a file of elements defined by node indices, and creates a corresponding XML file for input to DOLFIN or FENICS.
  183. fem1d, a program which applies the finite element method (FEM), using piecewise linear basis functions, to a linear two point boundary value problem (BVP) in 1D;
  184. fem1d_adaptive, a program which uses an adaptive mesh when applying the finite element method (FEM), with piecewise linear basis functions, to a linear two point boundary value problem (BVP) in 1D;
  185. fem1d_bvp_linear, a program which applies the finite element method (FEM), with piecewise linear elements, to a two point boundary value problem (BVP) in one spatial dimension, and compares the computed and exact solutions with the L2 and seminorm errors.
  186. fem1d_bvp_quadratic, a program which applies the finite element method (FEM), with piecewise quadratic elements, to a two point boundary value problem (BVP) in one spatial dimension, and compares the computed and exact solutions with the L2 and seminorm errors.
  187. fem1d_heat_steady, a program which implements the finite element method (FEM) for the steady (time independent) 1D heat equation;
  188. fem1d_lagrange, a library which sets up the matrices and vectors associated with the finite element method (FEM) solution of a boundary value problem (BVP) -u''+u=f(x), using Lagrange basis polynomials.
  189. fem1d_nonlinear, a program which applies the finite element method (FEM), with piecewise linear basis functions, to a nonlinear two point boundary value problem (BVP) in 1D;
  190. fem1d_pack, a library which contains utilities for 1D finite element method (FEM) calculations.
  191. fem1d_pmethod, a program which applies the p-method version of the finite element method (FEM) to a linear two point boundary value problem (BVP) in 1D;
  192. fem1d_project, a program which projects data into a finite element space, including the least squares approximation of data, or the projection of a finite element solution from one mesh to another.
  193. fem1d_sample, a program which samples a scalar or vector finite element function of one variable, defined by FEM files, returning interpolated values at the sample points.
  194. fem2d_bvp_linear, a program which applies the finite element method (FEM), with piecewise linear elements, to a 2D boundary value problem (BVP) in a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
  195. fem2d_bvp_quadratic, a program which applies the finite element method (FEM), with piecewise quadratic elements, to a 2D boundary value problem (BVP) in a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
  196. fem2d_bvp_serene, a program which applies the finite element method (FEM), with serendipity elements, to a 2D boundary value problem (BVP) in a rectangle, and compares the computed and exact solutions with the L2 and seminorm errors.
  197. fem2d_heat, a program which applies the finite element method (FEM) to solve the time-dependent heat equation in an arbitrary triangulated region in 2D;
  198. fem2d_heat_rectangle, a program which applies the finite element method (FEM) to solve the time dependent heat equation on a square in 2D;
  199. fem2d_heat_square, a library which defines the geometry of a square region, as well as boundary and initial conditions for a given heat problem, and is called by fem2d_heat as part of a solution procedure.
  200. fem2d_mesh_display_opengl, a program which reads a pair of FEM files defining node coordinates and elements, of a 2D mesh, and displays it using OpenGL.
  201. fem2d_pack, a library which implements various 2D finite element method (FEM) calculations;
  202. fem2d_poisson, a program which applies the finite element method (FEM) to solve Poisson's equation in an arbitrary triangulated region in 2D;
  203. fem2d_poisson_cg, a program which solves Poisson's equation on a triangulated region, using the finite element method (FEM), sparse storage, and a conjugate gradient solver.
  204. fem2d_poisson_cg_baffle, a library which defines the geometry of a channel with 13 hexagonal baffles, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_cg as part of a solution procedure.
  205. fem2d_poisson_cg_ell, a library which defines the geometry of an L-shaped region, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_cg as part of a solution procedure.
  206. fem2d_poisson_cg_lake, a library which defines the geometry of a lake-shaped region, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_cg as part of a solution procedure.
  207. fem2d_poisson_ell, a library which defines the geometry of an L-shaped region, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson as part of a solution procedure.
  208. fem2d_poisson_lake, a library which defines the geometry of a lake-shaped region, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson as part of a solution procedure.
  209. fem2d_poisson_rectangle, a program which solves the 2D Poisson equation on a rectangle, using the finite element method (FEM), and piecewise quadratic triangular elements.
  210. fem2d_poisson_rectangle_linear, a program which solves the 2D Poisson equation on a rectangle, using the finite element method (FEM), and piecewise linear triangular elements.
  211. fem2d_poisson_sparse, a program which uses the finite element method to solve Poisson's equation on an arbitrary triangulated region in 2D; (This is a version of fem2d_poisson which replaces the banded storage and direct solver by a sparse storage format and an iterative solver.)
  212. fem2d_poisson_sparse_baffle, a library which defines the geometry of a rectangular channel with 13 baffles, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_sparse as part of a solution procedure.
  213. fem2d_poisson_sparse_ell, a library which defines the geometry of an L-shaped region, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_sparse as part of a solution procedure.
  214. fem2d_poisson_sparse_lake, a library which defines the geometry of a lake-shaped region, as well as boundary conditions for a given Poisson problem, and is called by fem2d_poisson_sparse as part of a solution procedure.
  215. fem2d_project, a program which projects a function f(x,y), given as data, into a given finite element space of piecewise linear triangular elements.
  216. fem2d_project_function, a program which projects a function f(x,y), given as a formula, into a given finite element space of piecewise linear triangular elements.
  217. fem2d_sample, a program which samples a finite element function, defined by FEM files, (three text files describing the nodes, triangles, and coefficients); at arbitrary points.
  218. fem3d_pack, a library which contains utilities for 3D finite element method (FEM) calculations.
  219. fem3d_project, a program which projects a function f(x,y,z), given as a data, into a given space of piecewise linear tetrahedrons associated with the finite element method (FEM).
  220. fem3d_sample, a program library which evaluates a finite element function defined on a 3D tetrahedral mesh.
  221. fern_opengl, a program which uses OpenGL to display the Barnsley fractal fern.
  222. feynman_kac_1d, a program which demonstrates the use of the Feynman-Kac algorithm to solve Poisson's equation in a 1D interval by averaging stochastic paths to the boundary.
  223. feynman_kac_2d, a program which demonstrates the use of the Feynman-Kac algorithm to solve Poisson's equation in a 2D ellipse by averaging stochastic paths to the boundary.
  224. feynman_kac_3d, a program which demonstrates the use of the Feynman-Kac algorithm to solve Poisson's equation in a 3D ellipsoid by averaging stochastic paths to the boundary.
  225. fft_openmp, a program which demonstrates the computation of a Fast Fourier Transform (FFT) in parallel, using OpenMP.
  226. fft_serial, a program which computes a Fast Fourier Transform (FFT), and is intended as a starting point for implementing an OpenMP parallel version.
  227. file_name_sequence, a program which demonstrates ways to generate a sequence of filenames, which can be useful when generating a sequence of still snapshots to be animated later.
  228. files_multiple, a program which demonstrates how a program can open multiple output files at one time, and write data to any one specific file it chooses.
  229. filon, a library which can approximate integrals in which the integrand includes an oscillatory factor of sin(k*x) or cos(k*x).
  230. filum, a library which performs various operations with files;
  231. fire_serial, a program which simulates a forest fire over a rectangular array of trees, starting at a single random location. It is intended as a starting point for the development of a parallel version.
  232. floyd, a library which implements Floyd's algorithm for finding the shortest distance between pairs of nodes on a directed graph.
  233. fn, a library which evaluates elementary and special functions using Chebyshev polynomials; functions include Airy, Bessel I, J, K and Y, beta, confluent hypergeometric, error, gamma, log gamma, Pochhammer, Spence; integrals include hyperbolic cosine, cosine, Dawson, exponential, logarithmic, hyperbolic sine, sine; by Wayne Fullerton.
  234. freefem++_msh_io, a library which can read and write files used by the FreeFem++ finite element program to store mesh information.
  235. g++_intrinsics, a program which tests or demonstrates some of the intrinsic functions provided by the Gnu G++ compiler for C++.
  236. g++_quadmath, a program which illustrates the use of quadruple precision real arithmetic, as provided on some systems by the Gnu g++ compiler for C++.
  237. gegenbauer_rule, a program which computes and writes out a Gauss-Gegenbauer quadrature rule of given order.
  238. gen_hermite_rule, a program which computes and writes out a generalized Gauss-Hermite quadrature rule of given order and parameter value.
  239. gen_laguerre_rule, a program which computes and writes out a generalized Gauss-Laguerre quadrature rule of given order and parameter value.
  240. geometry, a library which performs geometric calculations in 2, 3 and M dimensional space, including the computation of angles, areas, containment, distances, intersections, lengths, and volumes.
  241. gmsh_io, a library which can read or write some of the files created by the Gmsh program for 1D, 2D or 3D meshes used by the finite element method (FEM).
  242. gmsh_to_fem, a program which reads a mesh data file created by the GMSH program and writes a pair of node and element files that correspond to the FEM format.
  243. gnuplot, programs which illustrate how a program can write data and command files so that gnuplot can create plots of the program results.
  244. gnuplot_i_examples, programs which demonstrate the use of the gnuplot_i library for interactive runtime gnuplot graphics.
  245. gprof, programs which illustrate the use of the gprof program performance monitor;
  246. graphics_examples, programs which illustrate how various kinds of data can be displayed and analyzed graphically.
  247. grf_display_opengl, a program which reads a GRF file defining a mathematical graph and displays it in the OpenGL graphics window.
  248. grf_io, a library which reads or writes a GRF file;
  249. grid_to_bmp, a program which reads a text file of data on a rectangular grid and creates a BMP file containing a color image of the data.
  250. gsl, programs which illustrate the use of the Gnu Scientific Library (GSL);
  251. haar, a library which computes the Haar transform of data.
  252. halton, a library which computes elements of the Halton M-dimensional quasirandom sequence;
  253. halton_dataset, a program which creates a Halton quasirandom sequence;
  254. hammersley, a library which computes a Hammersley M-dimensional quasirandom sequence;
  255. hammersley_dataset, a program which creates a Hammersley quasirandom sequence;
  256. hb_io, a library which reads and writes matrices in the Harwell Boeing (HB) sparse matrix format;
  257. heat_mpi, a program which demonstrates the use of MPI, by solving the 1D time dependent heat equation.
  258. heated_plate, a program which solves the steady state heat equation in a 2D rectangular region, and is intended as a starting point for implementing an OpenMP parallel version.
  259. heated_plate_openmp, a program which solves the steady (time independent) heat equation in a 2D rectangular region, using OpenMP to run in parallel.
  260. hello, a program which prints out "Hello, world!".
  261. hello_mpi, a program which prints out "Hello, world!" using MPI for parallel programming.
  262. hello_openmp, a program which prints out "Hello, world!" within the OpenMP parallel programming environment.
  263. hermite, a library which computes the Hermite interpolant, a polynomial that matches function values and derivatives.
  264. hermite_cubic, a library which can compute the value, derivatives or integral of a Hermite cubic polynomial, or manipulate an interpolating function made up of piecewise Hermite cubic polynomials.
  265. hermite_exactness, a program which tests the polynomial exactness of Gauss-Hermite quadrature rules for approximating the integral of a function with density exp(-x^2) over the interval (-oo,+oo).
  266. hermite_polynomial, a library which evaluates the physicist's Hermite polynomial, the probabilist's Hermite polynomial, the Hermite function, and related functions.
  267. hermite_product_polynomial, a library which defines Hermite product polynomials, creating a multivariate polynomial as the product of univariate Hermite polynomials.
  268. hermite_rule, a program which computes and writes out a Gauss-Hermite quadrature rule for approximating the integral of a function with density exp(-x^2) over the interval (-oo,+oo).
  269. hermite_test_int, a library which defines test integrands for Hermite integrals with density exp(-x^2) over the interval (-oo,+oo).
  270. hexdump, a program which produces a hexadecimal dump of a file;
  271. high_card_simulation, a program which simulates a situation in which you see the cards in a deck one by one, and must select the one you think is the highest and stop; the program uses GNUPLOT to create a graph of the results.
  272. htmlindex, a program which creates a skeleton HTML page for a marked-up C, C++ or FORTRAN file;
  273. hyperball_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit hyperball in M dimensions.
  274. hyperball_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit ball in M dimensions;
  275. hyperball_volume_monte_carlo, a program which applies a Monte Carlo procedure to estimate the volume of the unit ball in M dimensions;
  276. hypercube_exactness, a program which tests the polynomial exactness of a quadrature rule over the interior of the unit hypercube in M dimensions.
  277. hypercube_grid, a library which computes a grid of points over the interior of a hypercube in M dimensions.
  278. hypercube_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit hypercube in M dimensions.
  279. hypercube_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit hypercube in M dimensions.
  280. hypersphere_integrals, a library which returns the exact value of the integral of any monomial over the surface of the unit hypersphere in M dimensions.
  281. hypersphere_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function on the surface of the unit sphere in M dimensions;
  282. hypersphere_properties, a library which carries out various operations for an M dimensional hypersphere, including converting between Cartesian and spherical coordinates, stereographic projection, sampling the surface of the sphere, and computing the surface area and volume.
  283. i2_binary_to_ascii, a program which converts a file of short int (I2) data from binary to ASCII format.
  284. i4lib, a library which contains many utility routines, using single precision integer (I4) arithmetic.
  285. i8lib, a library which contains many utility routines, using double precision integer (I8) arithmetic.
  286. ihs, a library which computes elements of the Improved Hypercube Sampling (IHS) M-dimensional quasirandom sequence;
  287. ihs_dataset, a program which creates an Improved Hypercube Sampling (IHS) dataset;
  288. image_components, a library which seeks the connected nonzero or nonblack components of an image or integer array.
  289. image_denoise, a library which applies simple filtering operations to a noisy image.
  290. image_edge, a library which demonstrates a simple procedure for edge detection in images.
  291. index, a library which converts a M-dimensional vector index to a one-dimensional vector index; it can handle zero and one based indexing schemes, as well as column major and row major conventions.
  292. int_exactness, a program which tests the polynomial exactness of a 1D quadrature rule for a finite interval;
  293. int_exactness_chebyshev1, a program which tests the polynomial exactness of Gauss-Chebyshev type 1 quadrature rules.
  294. int_exactness_chebyshev2, a program which tests the polynomial exactness of Gauss-Chebyshev type 2 quadrature rules.
  295. int_exactness_gegenbauer, a program which tests the polynomial exactness of Gauss-Gegenbauer quadrature rules.
  296. int_exactness_gen_hermite, a program which tests the polynomial exactness of generalized Gauss-Hermite quadrature rules.
  297. int_exactness_gen_laguerre, a program which tests the polynomial exactness of generalized Gauss-Laguerre quadrature rules.
  298. int_exactness_jacobi, a program which tests the polynomial exactness of Gauss-Jacobi quadrature rules.
  299. interp, a library which can be used for parameterizing and interpolating data;
  300. ising_2d_simulation, a program which simulates the evolution of a 2D array of positive and negative charges, each of which is likely to flip to be in agreement with neighbors, using gnuplot to display the initial and final configurations.
  301. ivcon, a program which converts between various 3D graphic file formats;
  302. jacobi, a program which implements the Jacobi iteration for linear systems.
  303. jacobi_eigenvalue, a library which implements the Jacobi iteration for the iterative determination of the eigenvalues and eigenvectors of a real symmetric matrix.
  304. jacobi_polynomial, a library which evaluates the Jacobi polynomial and associated functions.
  305. jacobi_rule, a program which computes and writes out a Gauss-Jacobi quadrature rule of given order.
  306. kmeans, a library which handles the K-Means problem, which organizes a set of N points in M dimensions into K clusters;
  307. knapsack_01, a library which uses brute force to solve small versions of the 0/1 knapsack problem;
  308. kronrod, a library which can compute a Gauss and Gauss-Kronrod pair of quadrature rules of arbitrary order, by Robert Piessens, Maria Branders.
  309. lagrange_approx_1d, a library which defines and evaluates the Lagrange polynomial p(x) of degree m which approximates a set of nd data points (x(i),y(i)).
  310. lagrange_interp_1d, a library which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data depending on a 1D argument, so that p(x(i)) = y(i).
  311. lagrange_interp_2d, a library which defines and evaluates the Lagrange polynomial p(x,y) which interpolates a set of data depending on a 2D argument that was evaluated on a product grid, so that p(x(i),y(j)) = z(i,j).
  312. lagrange_interp_nd, a library which defines and evaluates the Lagrange polynomial p(x) which interpolates a set of data depending on a M-dimensional argument that was evaluated on a product grid, so that p(x(i)) = z(i).
  313. lagrange_nd, a library which implements several multivariate Lagrange interpolation schemes developed by Tomas Sauer.
  314. laguerre_exactness, a program which tests the polynomial exactness of Gauss-Laguerre quadrature rules for integrating functions with density exp(-x) over [0,+oo).
  315. laguerre_polynomial, a library which evaluates the Laguerre polynomial, the generalized Laguerre polynomials, and the Laguerre function.
  316. laguerre_rule, a program which computes and writes out a Gauss-Laguerre quadrature rule for approximating the integral of a function with density exp(-x) over the interval [0,+oo).
  317. laguerre_test_int, a library which implements test problems for for Gauss-Laguerre type quadrature rules for approximating the integral of a function with density exp(-x) over the interval [0,+oo).
  318. latin_center, a library which computes Latin Center Squares of N points in M dimensions;
  319. latin_center_dataset, a program which creates a Latin Center Hypercube dataset;
  320. latin_cover, a library which produces N Latin squares which cover an NxN square, or NxN Latin cubes which cover an NxNxN cube.
  321. latin_edge, a library which computes Latin Edge Squares of N points in M dimensions;
  322. latin_edge_dataset, a program which creates a Latin Edge Hypercube dataset;
  323. latin_random, a library which computes Latin Random Squares of N points in M dimensions;
  324. latin_random_dataset, a program which creates a Latin Random Hypercube dataset;
  325. latinize, a library which adjusts N points in M dimensions to form a Latin Hypercube;
  326. lattice_rule, a library which returns lattice rules for M-dimensional integration;
  327. lcvt, a library which creates a Latinized Centroidal Voronoi Tessellation (CVT);
  328. lcvt_dataset, a program which creates a Latinized Centroidal Voronoi Tessellation (CVT);
  329. lebesgue, a library which is given a set of nodes in 1D, and plots the Lebesgue function, and estimates the Lebesgue constant, which measures the maximum magnitude of the potential error of Lagrange polynomial interpolation.
  330. legendre_exactness, a program which tests the monomial exactness of quadrature rules for the Legendre problem of integrating a function with density 1 over the interval [-1,+1].
  331. legendre_polynomial, a library which evaluates the Legendre polynomial and associated functions.
  332. legendre_product_polynomial, a library which defines Legendre product polynomials, creating a multivariate polynomial as the product of univariate Legendre polynomials.
  333. legendre_rule, a program which writes out a Gauss-Legendre quadrature rule of given order.
  334. legendre_rule_fast, a program which uses a fast (order N) algorithm to compute a Gauss-Legendre quadrature rule of given order.
  335. lf2cr, a program which converts linefeeds to carriage returns in a file;
  336. lf2crlf, a program which converts linefeeds to carriage return + linefeeds in a file;
  337. lfrm, a program which removes all linefeed characters from a file;
  338. life_opengl, a program which uses OpenGL to display the evolution of John Conway's Game of Life.
  339. life_serial, a program which computes a few steps of the evolution of John Conway's Game of Life, intended as a starting point for implementing a parallel version.
  340. lights_out_opengl, a program which sets up a Lights Out game and allows the user to solve it, using the OpenGL graphics window.
  341. line_cvt_lloyd, a library which applies Lloyd's iteration repeatedly to a set of N points, to compute a Centroidal Voronoi Tessellation (CVT) over the interior of a line segment in 1D.
  342. line_fekete_rule, a library which estimates the location of N Fekete points, for polynomial interpolation or quadrature, over the interior of a line segment in 1D.
  343. line_felippa_rule, a library which returns Felippa's quadratures rules for approximating integrals over the interior of a line segment in 1D.
  344. line_grid, a library which computes a grid of points over the interior of a line segment in 1D.
  345. line_integrals, a library which returns the exact value of the integral of any monomial over the length of the unit line in 1D.
  346. line_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function over the length of the unit line in 1D.
  347. line_ncc_rule, a library which computes a Newton Cotes (Closed) quadrature rule, using equally spaced points, over the interior of a line segment in 1D.
  348. line_nco_rule, a library which computes a Newton Cotes Open (NCO) quadrature rule, using equally spaced points, over the interior of a line segment in 1D.
  349. linpack, a library which solves linear systems for a variety of matrix storage schemes, real or complex arithmetic, and single or double precision, by Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart.
  350. linpack_bench, a program which is a version of the LINPACK benchmark program;
  351. linpack_c, a library which factors matrices in a variety of formats, and solving the associated linear systems, using single precision complex arithmetic; it includes a function for the singular value decomposition (SVD) of a rectangular matrix, by Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart.
  352. linpack_d, a library which factors matrices in a variety of formats, and solving the associated linear systems, using double precision real arithmetic; it includes a function for the singular value decomposition (SVD) of a rectangular matrix, by Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart.
  353. linpack_s, a library which factors matrices in a variety of formats, and solving the associated linear systems, using single precision real arithmetic; it includes a function for the singular value decomposition (SVD) of a rectangular matrix, by Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart.
  354. linpack_z, a library which factors matrices in a variety of formats, and solving the associated linear systems, using double precision complex arithmetic; it includes a function for the singular value decomposition (SVD) of a rectangular matrix, by Jack Dongarra, Cleve Moler, Jim Bunch, Pete Stewart.
  355. linplus, a library which carries out operations such as matrix-vector products, matrix factorization, linear solvers including Gauss-elimination, Jacobi iteration, Gauss-Seidel iteration, Conjugate Gradient (CG), for matrices in a variety of formats, including banded, border-banded, circulant, lower triangular, pentadiagonal, sparse, symmetric, toeplitz, tridiagonal, upper triangular and vandermonde formats.
  356. lissajous_opengl, a program which computes a Lissajous curve and displays it using OpenGL.
  357. llsq, a library which solves the simple linear least squares problem of finding the formula of a straight line y=a*x+b which minimizes the root-mean-square error to a set of N data points.
  358. lobatto_polynomial, a library which evaluates Lobatto polynomials similar to Legendre polynomials except that they are 0 at both endpoints.
  359. lorenz_ode, a program which approximates solutions to the Lorenz system, creating output files that can be displayed by gnuplot.
  360. machar, a library which dynamically computes the values of various machine constants, by William Cody;
  361. machine, a library which returns tabulated values of the constants associated with computer arithmetic.
  362. makefiles, programs which illustrate the use of makefiles for maintaining a software project;
  363. mandelbrot, a program which generates an ASCII Portable Pixel Map (PPM) image of the Mandelbrot set;
  364. mandelbrot_openmp, a program which generates an ASCII Portable Pixel Map (PPM) image of the Mandelbrot fractal set, using OpenMP for parallel execution;
  365. mandelbrot_ppm, a program which generates a binary Portable Pixel Map (PPM) image of the Mandelbrot set, by Eric Weeks.
  366. matrix_exponential, a library which demonstrates some simple approaches to the problem of computing the exponential of a matrix.
  367. md, a program which carries out a molecular dynamics simulation, and is intended as a starting point for implementing an OpenMP parallel version.
  368. md_openmp, a program which carries out a molecular dynamics simulation in parallel using OpenMP.
  369. medit_io, a library which can read or write files used by the MEDIT program, which can be used to define the a mesh associated with the finite element method (FEM) in 2D or 3D, using triangles, quadrilaterals, tetrahedrons or hexahedrons.
  370. medit_to_fem, a program which reads a mesh file created by the MEDIT program and writes a corresponding pair of node and element files that correspond to the FEM format.
  371. memory_test, a program which tests the memory available on the computer by declaring and using big vectors.
  372. mesh_bandwidth, a program which returns the geometric bandwidth associated with a mesh of elements of any order and in a space of M dimensions.
  373. mgmres, a library which applies the restarted Generalized Minimum Residual (GMRES) algorithm to solve a sparse linear system, using compressed row (CR) or sparse triplet (ST) format, by Lili Ju.
  374. mgs, a library which is an example of legacy code, which the student is encouraged to study, understand, and document. This example is due to Diane O'Leary.
  375. minesweeper, a program which is a text-based implementation of the Minesweeper game, by Detelina Stoyanova.
  376. minpack, a library which solves linear and nonlinear least squares problems.
  377. mixed, programs which illustrate mixed language programming in which the main program is written in C++;
  378. monomial, a library which enumerates, lists, ranks, unranks and randomizes multivariate monomials in a space of M dimensions, with total degree less than N, equal to N, or lying within a given range.
  379. monomial_value, a library which evaluates a monomial in M dimensions.
  380. monte_carlo_rule, a program which generates a dataset of N random M-dimensional points, regards it as a quadrature rule for the unit hypercube, and writes out three files of information.
  381. mpi, programs which illustrate the use of the MPI Message Passing Interface library, for parallel programming;
  382. mpi_stubs, a library which may be used if a parallel program is to be compiled, loaded and run in a serial machine;
  383. multigrid_poisson_1d, a library which applies the multigrid method to a discretized version of the 1D Poisson equation.
  384. multitask_mpi, a program which demonstrates how to multitask, that is, to execute several unrelated and distinct tasks simultaneously, using MPI for parallel execution.
  385. multitask_openmp, a program which demonstrates how to multitask, that is, to execute several unrelated and distinct tasks simultaneously, using OpenMP for parallel execution.
  386. mxm, a program which sets up a matrix multiplication problem A=B*C of arbitrary size, and compares the time required for IJK, IKJ, JIK, JKI, KIJ and KJI orderings of the loops.
  387. mxm_openmp, a program which computes a dense matrix product C=A*B, using OpenMP for parallel execution.
  388. mxm_serial, a program which sets up a matrix multiplication problem A=B*C, intended as a starting point for implementing a parallel version.
  389. my_calendar, a program which checks a calendar file and prints lines containing the current date;
  390. naca, a library which can take the parameters of certain NACA airfoils and return the coordinates of a sequence of points that outline the wing shape. The points can be plotted with gnuplot.
  391. nas, a program which runs the NASA kernel benchmark.
  392. navier_stokes_2d_exact, a library which evaluates an exact solution to the incompressible time-dependent Navier-Stokes equations over an arbitrary domain in 2D.
  393. navier_stokes_3d_exact, a library which evaluates an exact solution to the incompressible time-dependent Navier-Stokes equations over an arbitrary domain in 3D.
  394. nearest_interp_1d, a library which interpolates a set of data using a piecewise constant interpolant defined by the nearest neighbor criterion, creating graphics files for processing by gnuplot.
  395. neighbors_to_metis_graph, a program which reads a file describing the neighbor structure of a triangulation or tet mesh, and writes a metis graph file suitable for input to one of the family of programs based on metis;
  396. netcdf, programs which read and write netcdf files.
  397. niederreiter, a library which computes elements of the Niederreiter quasirandom M-dimensional sequence [arbitrary base];
  398. niederreiter2, a library which computes elements of the Niederreiter M-dimensional quasirandom sequence using base 2;
  399. niederreiter2_dataset, a program which creates a Niederreiter quasirandom dataset with base 2;
  400. nint_exactness_mixed, a program which measures the polynomial exactness of an M-dimensional quadrature rule based on a mixture of 1D quadrature rule factors.
  401. nintlib, a library which implements approximate integration (quadrature) in M dimensions;
  402. normal, a library which implements a random number generator (RNG) for normally distributed values.
  403. normal_dataset, a program which creates a multivariate normal random dataset;
  404. obj_io, a library which reads and writes the data in an OBJ 3D graphics file;
  405. ode, a library which solves a system of ordinary differential equations, by Shampine and Gordon;
  406. opengl, programs which illustrate the use of the OpenGL graphics library;
  407. openmp, programs which illustrate the use of the OpenMP interface for parallel programming shared memory system;
  408. openmp_stubs, a library which is a dummy implementation of the OpenMP routines, and can be used to compile, load, and run a program using OpenMP on a system which does not have OpenMP installed.
  409. optimize, a program which looks at the use of automatic optimization by the compiler to make the executable code run faster.
  410. ornstein_uhlenbeck, a library which approximates solutions of the Ornstein-Uhlenbeck stochastic ordinary differential equation (SODE) using the Euler method, the Euler-Maruyama method, and the Milstein method, and creating graphics files for processing by gnuplot.
  411. owens, a library which evaluates Owen's T function;
  412. padua, a library which returns the coordinates of the 2D Padua points, as well as interpolation weights or quadrature weights, and images of the points in gnuplot graphics files.
  413. partition_problem, a library which seeks solutions of the partition problem, splitting a set of integers into two subsets with equal sum.
  414. patterson_rule, a program which returns the points and weights of a 1D Gauss-Patterson quadrature rule of order 1, 3, 7, 15, 31, 63, 127, 255 or 511.
  415. pbma_io, a library which reads or writes an ASCII Portable Bit Map (PBM) graphics file;
  416. pbma_to_pbmb, a program which converts an ASCII Portable Bit Map (PBM) file to a binary PBM file;
  417. pbmb_io, a library which reads or writes a binary Portable Bit Map (PBM) graphics file;
  418. pbmb_to_pbma, a program which converts a binary Portable Bit Map (PBM) file to an ASCII PBM file;
  419. pce_burgers, a program which defines and solves the time-dependent viscous Burgers equation, with uncertain viscosity, using a polynomial chaos expansion in terms of Hermite polynomials, by Gianluca Iaccarino.
  420. pce_ode_hermite, a program which sets up a simple scalar ordinary differential equation (ODE) for exponential decay with an uncertain decay rate, using a polynomial chaos expansion in terms of Hermite polynomials.
  421. pdflib, a library which evaluates Probability Density Functions (PDF's) and produces random samples from them, including beta, binomial, chi, exponential, gamma, inverse chi, inverse gamma, multinomial, normal, scaled inverse chi, and uniform.
  422. pgma_io, a library which reads or writes an ASCII Portable Gray Map (PGM) 2D graphics file;
  423. pgma_to_pgmb, a program which converts an ASCII Portable Gray Map (PGM) file to a binary PGM file;
  424. pgmb_io, a library which reads or writes a binary Portable Gray Map (PGM) 2D graphics file;
  425. pgmb_to_pgma, a program which converts a binary Portable Gray Map (PGM) file to an ASCII PGM file;
  426. piecewise_linear_product_integral, a library which calculates the exact value of the integral of the product of two piecewise linear functions f(x) and g(x).
  427. pink_noise, a library which computes a pink noise signal obeying a 1/f power law.
  428. point_merge, a library which considers N points in M dimensional space, and counts or indexes the unique or tolerably unique items.
  429. poisson_openmp, a program which computes an approximate solution to the Poisson equation in a rectangle, using the Jacobi iteration to solve the linear system, and OpenMP to carry out the Jacobi iteration in parallel.
  430. poisson_serial, a program which computes an approximate solution to the Poisson equation in a rectangle, and is intended as the starting point for the creation of a parallel version.
  431. poisson_simulation, a library which simulates a Poisson process in which events randomly occur with an average waiting time of Lambda, creating graphics files for processing by gnuplot.
  432. polpak, a library which evaluates a variety of mathematical functions, including Chebyshev, Gegenbauer, Hermite, Jacobi, Laguerre, Legendre polynomials, and the Collatz sequence.
  433. polygon_grid, a library which generates a grid of points over the interior of a polygon in 2D.
  434. polygon_integrals, a library which returns the exact value of the integral of any monomial over the interior of a polygon in 2D.
  435. polygon_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function over the interior of a polygon in 2D.
  436. polygon_properties, a library which computes properties of an arbitrary polygon in the plane, defined by a sequence of vertices, including interior angles, area, centroid, containment of a point, convexity, diameter, distance to a point, inradius, lattice area, nearest point in set, outradius, uniform sampling.
  437. polygon_triangulate, a library which triangulates a possibly nonconvex polygon in 2D, and which can use gnuplot to display the external edges and internal diagonals of the triangulation.
  438. polygonal_surface_display_opengl, a program which displays a surface in 3D described as a set of polygons using OpenGL;
  439. polynomial, a library which adds, multiplies, differentiates, evaluates and prints multivariate polynomials in a space of M dimensions.
  440. power_method, a library which carries out the power method for finding a dominant eigenvalue and its eigenvector.
  441. power_rule, a program which constructs a power rule, that is, a product quadrature rule from identical 1D factor rules.
  442. ppma_io, a library which reads or writes an ASCII Portable Pixel Map (PPM) graphics file;
  443. ppma_to_bmp, a program which converts an ASCII Portable Pixel Map (PPM) graphics file to a Microsoft BMP file;
  444. ppma_to_ppmb, a program which converts an ASCII Portable Pixel Map (PPM) graphics file to binary PPM format;
  445. ppmb_io, a library which reads or writes a binary Portable Pixel Map (PPM) 2D pixel map graphics file;
  446. ppmb_to_bmp, a program which converts a binary Portable Pixel Map (PPM) file to a Microsoft BMP file;
  447. ppmb_to_ppma, a program which converts a binary Portable Pixel Map (PPM) file to ASCII PPM format;
  448. prime_mpi, a program which counts the number of primes between 1 and N, using MPI for parallel execution.
  449. prime_openmp, a program which counts the number of primes between 1 and N, using OpenMP for parallel execution.
  450. prime_serial, a program which counts the number of primes between 1 and N, and is intended as a starting point for a parallel version.
  451. prob, a library which evaluates, samples, inverts, and characterizes a number of Probability Density Functions (PDF's) and Cumulative Density Functions (CDF's), including anglit, arcsin, benford, birthday, bernoulli, beta_binomial, beta, binomial, bradford, burr, cardiod, cauchy, chi, chi squared, circular, cosine, deranged, dipole, dirichlet mixture, discrete, empirical, english sentence and word length, error, exponential, extreme values, f, fisk, folded normal, frechet, gamma, generalized logistic, geometric, gompertz, gumbel, half normal, hypergeometric, inverse gaussian, laplace, levy, logistic, log normal, log series, log uniform, lorentz, maxwell, multinomial, nakagami, negative binomial, normal, pareto, planck, poisson, power, quasigeometric, rayleigh, reciprocal, runs, sech, semicircular, student t, triangle, uniform, von mises, weibull, zipf.
  452. product_rule, a program which creates an M-dimensional quadrature rule from a product of distinct 1d quadrature rules;
  453. pthreads, programs which illustrate the use of the POSIX thread library to carry out parallel program execution.
  454. pwl_approx_1d, a library which approximates a set of data using a piecewise linear function.
  455. pwl_interp_1d, a library which interpolates a set of data using a piecewise linear function, creating graphics files for processing by gnuplot.
  456. pwl_interp_2d, a library which evaluates a piecewise linear interpolant to data defined on a regular 2D grid.
  457. pwl_interp_2d_scattered, a library which evaluates a piecewise linear interpolant to data which is available at an irregularly arranged set of points.
  458. pyramid_exactness, a program which investigates the polynomial exactness of a quadrature rule over the interior of the unit pyramid in 3D.
  459. pyramid_felippa_rule, a library which returns Felippa's quadratures rules for approximating integrals over the interior of a pyramid in 3D.
  460. pyramid_grid, a library which computes a grid of points over the interior of the unit pyramid in 3D;
  461. pyramid_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit pyramid in 3D.
  462. pyramid_monte_carlo, a library which applies a Monte Carlo method to estimate integrals of a function over the interior of the unit pyramid in 3D;
  463. pyramid_rule, a program which computes a quadrature rule for a pyramid.
  464. qr_solve, a library which computes the least squares solution of a linear system A*x=b.
  465. quad_mesh, a library which handles meshes of quadrilaterals over a 2D region;
  466. quad_mesh_rcm, a program which computes the Reverse Cuthill-McKee (RCM) reordering for nodes in a mesh of 4-node quadrilaterals.
  467. quad_mpi, a program which applies a quadrature rule to estimate an integral, working in parallel by using MPI;
  468. quad_openmp, a program which applies a quadrature rule to estimate an integral over a 1D interval, using OpenMP for parallel execution;
  469. quad_serial, a program which applies a quadrature rule to estimate an integral, intended as a starting point for parallelization exercises.
  470. quad2d_openmp, a program which applies a product quadrature rule to estimate an integral over a 2D rectangle, using OpenMP for parallel execution;
  471. quad2d_serial, a program which applies a product quadrature rule to estimate an integral over a 2D rectangle, intended as a starting point for parallelization exercises.
  472. quadrature_golub_welsch, a library which computes the points and weights of a Gaussian quadrature rule using the Golub-Welsch procedure.
  473. quadrature_least_squares, a library which computes weights for sub-interpolatory quadrature rules, that is, it estimates integrals by integrating a polynomial that approximates the function data in a least squares sense.
  474. quadrature_test, a program which reads the definition of an M-dimensional quadrature rule from three files, applies the rule to a number of test integrals, and prints the results.
  475. quadrature_test_2d, a program which reads the definition of a 2D quadrature rule from three files, applies the rule to a number of test integrals, and prints the results.
  476. quadrature_weights_vandermonde, a library which computes the weights of a quadrature rule using the Vandermonde matrix, assuming that the points have been specified.
  477. quadrature_weights_vandermonde_2d, a library which computes the weights of a 2D quadrature rule using the Vandermonde matrix, assuming that the points have been specified.
  478. quadrule, a library which defines quadrature rules for approximating integrals;
  479. quality, a library which computes quality of distribution measures for pointsets in M dimensions;
  480. r4lib, a library which contains many utility routines, using single precision real (R4) arithmetic.
  481. r8lib, a library which contains many utility routines, using double precision real (R8) arithmetic.
  482. rand48, a program which demonstrates the use of the RAND48 family of random number generators (RNG's) available in the C/C++ standard library.
  483. randlc, a library which implements a random number generator (RNG) used by the NAS Benchmark programs.
  484. random_data, a library which uses a random number generator (RNG) to sample points distribute according to various probability density functions (PDF's), for various spatial dimensions, and geometries, including the M-dimensional cube, ellipsoid, simplex and sphere.
  485. random_mpi, a program which demonstrates one way to generate the same sequence of random numbers for both sequential execution and parallel execution under MPI.
  486. random_openmp, a program which illustrates how a parallel program using OpenMP can generate multiple distinct streams of random numbers.
  487. ranlib, a library which produces random samples from Probability Density Functions (PDF's), including Beta, Chi-square Exponential, F, Gamma, Multivariate normal, Noncentral chi-square, Noncentral F, Univariate normal, random permutations, Real uniform, Binomial, Negative Binomial, Multinomial, Poisson and Integer uniform, by Barry Brown and James Lovato.
  488. rbf_interp_1d, a library which defines and evaluates radial basis function (RBF) interpolants to 1D data.
  489. rbf_interp_2d, a library which defines and evaluates radial basis function (RBF) interpolants to 2D data.
  490. rbf_interp_nd, a library which defines and evaluates radial basis function (RBF) interpolants to M-dimensional data.
  491. rcm, a library which applies the Reverse Cuthill McKee (RCM) algorithm for reordering the nodes of a graph, and reducing the bandwidth of a corresponding sparse matrix;
  492. reactor simulation, a program which is a simple Monte Carlo simulation of the shielding effect of a slab of a certain thickness in front of a neutron source. This program was provided as an example with the book "Numerical Methods and Software."
  493. recomment, a program which converts C style comments to C++ style;
  494. reword, a program which makes a copy of a file in which every line has the same number of words;
  495. ring_mpi, a program which uses the MPI parallel programming environment, and measures the time necessary to copy a set of data around a ring of processes.
  496. rk4, a library which applies the fourth order Runge-Kutta (RK) algorithm to estimate the solution of an ordinary differential equation (ODE) at the next time step.
  497. rkf45, a library which applies the Runge-Kutta-Fehlberg (RKF) algorithm to solve a system of ordinary differential equations (ODEs);
  498. rnglib, a library which implements a random number generator (RNG) with splitting facilities, allowing multiple independent streams to be computed, by L'Ecuyer and Cote.
  499. rot13, a program which makes a copy of a file which has been encoded using the ROT13 coding and a ROT5 coding for digits.
  500. rotating_cube_display_opengl, a program which displays a rotating color cube in 3D, using OpenGL;
  501. sandia_cubature, a library which implements quadrature rules for certain M-dimensional regions and weight functions.
  502. sandia_rules, a library which can produce a standard 1D Gauss quadrature rule of Chebyshev, Gegenbauer, generalized Hermite, generalized Laguerre, Hermite, Jacobi, Laguerre, and Legendre types.
  503. sandia_rules2, a library which contains a very small selection of functions which serve as an interface between sandia_sgmg or sandia_sgmga and sandia_rules.
  504. sandia_sgmg, a library which creates sparse grids based a mixture of 1D factor rules, and which experiments with the idea of using linear growth rate for the 1D quadrature rules. This is a version of sparse_grid_mixed_growth that uses a different procedure for supplying the parameters needed to evaluate certain quadrature rules.
  505. sandia_sgmga, a library which creates sparse grids based on a mixture of 1D quadrature rules, allowing anisotropic weights for each dimension. This is a version of sgmga that uses a different procedure for supplying the parameters needed to evaluate certain quadrature rules.
  506. sandia_sgmgg, a library which explores a generalized construction method for sparse grids.
  507. sandia_sparse, a library which can produce an M-dimensional sparse grid, based on a variety of 1D quadrature rules; only isotropic grids are generated, that is, the same rule is used in each dimension, and the same maximum order is used in each dimension.
  508. satisfy, a program which demonstrates, for a particular circuit, an exhaustive search for solutions of the circuit satisfy problem.
  509. satisfy_mpi, a program which demonstrates, for a particular circuit, an exhaustive search for solutions of the circuit satisfy problem, using MPI to perform the calculation in parallel.
  510. satisfy_openmp, a program which demonstrates, for a particular circuit, an exhaustive search for solutions of the circuit satisfy problem, using OpenMP for parallel execution.
  511. schedule_openmp, a program which demonstrates the default, static, and dynamic methods of scheduling loop iterations in OpenMP to avoid work imbalance.
  512. scvt_mpi, a program which determines a Centroidal Voronoi Tessellation (CVT) on a spherical surface, using triangle for triangulation, and the boost mpi and serialization libraries, by Doug Jacobsen;
  513. sde, a library which illustrates properties of stochastic ordinary differential equations (SODE's), and common algorithms for their analysis, including the Euler method, the Euler-Maruyama method, and the Milstein method, making graphics files for processing and display by gnuplot, by Desmond Higham;
  514. search_mpi, a program which searches integers between A and B for a solution J such that F(J)=C, carried out in parallel using MPI.
  515. search_serial, a program which searches the integers from A to B for a value J such that F(J) = C. this version of the program is intended as a starting point for a parallel approach.
  516. set_theory, a library which demonstrates various set theoretic operations using several models of a set.
  517. sftpack, a library which implements the slow Fourier transform, intended as a teaching tool and comparison with the Fast Fourier Transform (FFT).
  518. sgefa_openmp, a program which compares a standard linear algebra solver against a revised version which can be run in parallel with OpenMP.
  519. sgmg, a library which creates sparse grids based a mixture of 1D factor rules, and which experiments with the idea of using linear growth rate for the 1D quadrature rules.
  520. sgmga, a library which creates sparse grids based on a mixture of 1D quadrature rule families, allowing user specified growth rates for each family, allowing anisotropic weights for each dimension.
  521. shallow_water_1d, a program which simulates the evolution of a 1D fluid governed by the time-dependent shallow water equations.
  522. shepard_interp_1d, a library which defines and evaluates Shepard interpolants to 1D data, based on inverse distance weighting.
  523. shepard_interp_2d, a library which defines and evaluates Shepard interpolants to 2D data, based on inverse distance weighting.
  524. shepard_interp_nd, a library which defines and evaluates Shepard interpolants to M-dimensional data, based on inverse distance weighting.
  525. simple_ga, a program which is a simple example of a genetic algorithm, by Dennis Cormier and Sita Raghavan.
  526. simplex_coordinates, a library which computes the Cartesian coordinates of the vertices of a regular simplex in M dimensions.
  527. simplex_gm_rule, a library which defines Grundmann-Moeller quadrature rules over the interior of a triangle in 2D, a tetrahedron in 3D, or over the interior of the simplex in M dimensions.
  528. simplex_grid, a library which generates a regular grid of points over the interior of an arbitrary simplex in M dimensions.
  529. simplex_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit simplex in M dimensions.
  530. simplex_monte_carlo, a library which uses the Monte Carlo method to estimate an integral over the interior of the unit simplex in M dimensions.
  531. sine_transform, a library which demonstrates some simple properties of the discrete sine transform.
  532. snakes_and_ladders, programs which simulate and investigate a one-player version of the game of Snakes and Ladders.
  533. sobol, a library which computes elements of the Sobol M-dimensional quasirandom sequence, extended to a maximal spatial dimension of 1111, by Bennett Fox.
  534. sobol_dataset, a program which creates a Sobol quasirandom dataset;
  535. solve, a library which implements a linear solver which makes it easy to create doubly-dimensioned arrays and solve associated linear systems.
  536. sor, a library which implements a simple version of the Successive Over-Relaxation (SOR) method for the iterative solution of a linear system of equations.
  537. sort_rc, a library which can sort a list of any kind of objects, using reverse communication (RC).
  538. sparse_count, a library which for the analysis and creation of sparse grids in which a single family of 1D quadrature rules is used for all spatial dimensions, with a variety of growth rules.
  539. sparse_display, a library which can read information defining a matrix of numbers and display the sparsity pattern or location of the nonzero elements using gnuplot. This operation is already available in the built-in MATLAB "spy" command.
  540. sparse_grid_cc, a library which creates sparse grids based on Clenshaw-Curtis rules.
  541. sparse_grid_cc_dataset, a program which creates a sparse grid dataset based on Clenshaw-Curtis rules.
  542. sparse_grid_gl, a library which creates sparse grids based on Gauss-Legendre rules.
  543. sparse_grid_gl_dataset, a program which creates a sparse grid dataset based on Gauss-Legendre rules.
  544. sparse_grid_hermite, a library which creates sparse grids based on Gauss-Hermite rules.
  545. sparse_grid_hermite_dataset, a program which creates a sparse grid dataset based on Gauss-Hermite rules.
  546. sparse_grid_hw, a library which creates sparse grids based on Gauss-Legendre, Gauss-Hermite, Gauss-Patterson, or a nested variation of Gauss-Hermite rules, by Florian Heiss and Viktor Winschel.
  547. sparse_grid_laguerre, a library which creates sparse grids based on Gauss-Laguerre rules.
  548. sparse_grid_laguerre_dataset, a program which creates a sparse grid dataset based on Gauss-Laguerrre rules.
  549. sparse_grid_mixed, a library which creates sparse grids based on a mixture of 1D factor rules.
  550. sparse_grid_mixed_dataset, a program which creates a sparse grid dataset based on a mixture of 1D rules.
  551. sparse_grid_open, a library which creates sparse grids based on open rules (Fejer 2, Gauss-Patterson, Newton-Cotes-Open).
  552. sparse_grid_open_dataset, a program which creates a sparse grid dataset based on open rules (Fejer 2, Gauss-Patterson, Newton-Cotes-Open).
  553. sparse_interp_nd, a library which can be used to define a sparse interpolant to a function f(x) of a M-dimensional argument.
  554. sphere_exactness, a program which tests the polynomial exactness of a quadrature rule over the surface of the unit sphere in 3D;
  555. sphere_fibonacci_grid, a library which uses a Fibonacci spiral to create a grid of points on the surface of the unit sphere in 3D.
  556. sphere_grid, a library which provides a number of ways of generating grids of points, or of points and lines, or of points and lines and faces, over the surface of the unit sphere in 3D.
  557. sphere_integrals, a library which returns the exact value of the integral of any monomial over the surface of the unit sphere in 3D.
  558. sphere_lebedev_rule, a library which computes Lebedev quadrature rules for the surface of the unit sphere in 3D;
  559. sphere_llq_grid, a library which uses longitudes and latitudes to create grids of points, lines, and quadrilaterals on the surface of the unit sphere in 3D.
  560. sphere_llt_grid, a library which uses longitudes and latitudes to create grids of points, lines, and triangles on the surface of the unit sphere in 3D.
  561. sphere_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function over the surface of the unit sphere in 3D;
  562. sphere_quad, a library which uses triangulation to approximate an integral over the surface of the unit sphere in 3D;
  563. sphere_stereograph, a library which computes the stereographic mapping between points on the plane Z=1 and the surface of the unit sphere in 3D.
  564. sphere_triangle_monte_carlo, a library which used the Monte Carlo method to estimate the integral of a function defined in a triangle on the surface of the unit sphere in 3D.
  565. sphere_triangle_quad, a library which uses quadrature to estimate the integral of a function in a spherical triangle on the surface of the unit sphere in 3D.
  566. sphere_voronoi_display_opengl, a program which displays a sphere and randomly selected generator points, and then gradually colors in points closest to each generator on the surface of the unit sphere in 3D .
  567. sphere_xyz_display_opengl, a program which reads XYZ information defining points in 3D that lie (presumably) on the surface of the unit sphere in 3D, and displays an image of the sphere and the points, using OpenGL;
  568. spiral_data, a library which computes a velocity vector field that satisfies the continuity equation, writing the data to a file that can be plotted by gnuplot.
  569. spline, a library which interpolates or approximates data by piecewise polynomial functions;
  570. spring_ode, a program which shows how line printer graphics can be used to make a crude illustration of a solution of the ordinary differential equation (ODE) that describes the motion of a weight attached to a spring.
  571. spring_ode2, a program which shows how gnuplot graphics can be used to illustrate a solution of the ordinary differential equation (ODE) that describes the motion of a weight attached to a spring.
  572. square_arbq_rule, a library which returns quadrature rules, with exactness up to total degree 20, over the interior of the symmetric square in 2D, by Hong Xiao and Zydrunas Gimbutas.
  573. square_exactness, a library which investigates the polynomial exactness of quadrature rules for f(x,y) over the interior of a square in 2D.
  574. square_felippa_rule, a library which returns Felippa's quadratures rules for approximating integrals over the interior of a square in 2D.
  575. square_grid, a library which computes a grid of points over the interior of a square in 2D.
  576. square_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit square in 2D.
  577. square_monte_carlo, a library which applies a Monte Carlo method to estimate the integral of a function over the interior of the unit square in 2D.
  578. square_symq_rule, a library which returns symmetric quadrature rules, with exactness up to total degree 20, over the interior of the symmetric square in 2D, by Hong Xiao and Zydrunas Gimbutas.
  579. st_io, a library which reads and writes sparse linear systems stored in the Sparse Triplet (ST) format.
  580. st_to_cc, a library which converts sparse matrix data from Sparse Triplet (ST) format to Compressed Column (CC) format;
  581. star_discrepancy, a program which computes bounds on the star discrepancy of a set of N points in M dimensions, stored as a table file, by Eric Thiemard.
  582. stla_io, a library which reads and writes ASCII stereolithography (STL) 3d graphics files;
  583. stochastic_diffusion, functions which implement several versions of a stochastic diffusivity coefficient.
  584. stochastic_heat2d, a program which implements a finite difference method (FDM) for the steady (time independent) 2D heat equation, with a stochastic heat diffusivity coefficient.
  585. stochastic_rk, a library which applies a Runge-Kutta (RK) scheme to a stochastic ordinary differential equation (SODE).
  586. stokes_2d_exact, a library which evaluates exact solutions to the incompressible steady Stokes equations over the unit square in 2D.
  587. string_simulation, a program which simulates the behavior of a vibrating string by solving the corresponding initial boundary value problem (IBVP), creating files that can be displayed by gnuplot.
  588. stroud, a library which defines quadrature rules for a variety of M-dimensional regions, including the interior of the square, cube and hypercube, the pyramid, cone and ellipse, the hexagon, the M-dimensional octahedron, the circle, sphere and hypersphere, the triangle, tetrahedron and simplex, and the surface of the circle, sphere and hypersphere.
  589. subpak, a library which contains many utility routines;
  590. subset, a library which enumerates, generates, randomizes, ranks and unranks combinatorial objects including combinations, compositions, Gray codes, index sets, partitions, permutations, polynomials, subsets, and Young tables. Backtracking routines are included to solve some combinatorial problems.
  591. subset_sum, a program which seeks solutions of the subset sum problem.
  592. subset_sum_serial, a program which seeks solutions of the subset sum problem, intended as a starting point for a parallel computing approach.
  593. superlu, programs which illustrate how a CPP program can call the SUPERLU library (which is written in C), which applies a fast direct solution method to solve sparse linear systems, by James Demmel, John Gilbert, and Xiaoye Li.
  594. superlu_openmp, programs which illustrate how to use the SUPERLU library with the OpenMP parallel programming interface, which applies a fast direct solution method to solve sparse linear systems, by James Demmel, John Gilbert, and Xiaoye Li.
  595. svd_basis, a program which applies the singular value decomposition (SVD) to a set of vectors, to extract the dominant modes;
  596. svd_demo, a program which demonstrates the calculation of the singular value decomposition (SVD) and some of its properties;
  597. svd_snowfall, a program which reads a file containing historical snowfall data and analyzes the data with the Singular Value Decomposition (SVD), displaying the results using gnuplot.
  598. svd_truncated, a program which demonstrates the computation of the reduced or truncated Singular Value Decomposition (SVD) that is useful for cases when one dimension of the matrix is much smaller than the other.
  599. table_delaunay, a program which computes the Delaunay triangulation of a set of points stored as a table file;
  600. table_io, a library which reads and writes a simple dataset stored as a table file;
  601. table_latinize, a program which reads a dataset of N points in M dimensions from a table file, adjusts data to form a Latin Hypercube;
  602. table_quality, a program which reads a dataset of N points in the M-dimensional unit hypercube from a table file, and analyzes the quality of dispersion;
  603. table_voronoi, a program which reads a set of 2D points from a table file, and prints information about the Voronoi diagram;
  604. task_division, a library which implements a simple procedure for smoothly dividing T tasks among P processors; such a method can be useful in MPI and other parallel environments, particularly when T is not an exact multiple of P, and when the processors can be indexed starting from 0 or from 1.
  605. test_approx, a library which implements test problems for approximation, provided as a set of (x,y) data.
  606. test_eigen, a library which implements test matrices for eigenvalue analysis.
  607. test_int, a library which implements test problems for approximate integration in one dimension.
  608. test_int_2d, a library which implements test problems for approximate integration in two dimensions.
  609. test_interp, a library which defines test problems for interpolation, provided as a set of (x,y) data.
  610. test_interp_1d, a library which defines test problems for interpolation of data y(x), which depends on a 1D argument.
  611. test_interp_2d, a library which defines test problems for interpolation of data z(x,y), depending on a 2D argument.
  612. test_interp_nd, a library which defines test problems for interpolation of data z(x), depending on an M-dimensional argument.
  613. test_ls, a library which implements linear least squares test problems of the form A*x=b.
  614. test_mat, a library which defines test matrices for which some of the determinant, eigenvalues, inverse, null vectors, P*L*U factorization or linear system solution are already known, including the Vandermonde and Wathen matrix.
  615. test_matrix_exponential, a library which defines a set of test cases for computing the matrix exponential.
  616. test_min, a library which implements test problems for minimization of a scalar function of a scalar variable.
  617. test_nearest, a library which tests the time complexity of various procedures for solving the nearest neighbor problem.
  618. test_nint, a library which implements test problems for approximate integration (quadrature) in M dimensions.
  619. test_opt_con, a library which defines test problems for the minimization of a scalar function of several variables, with the search constrained to lie within a specified hyper-rectangle.
  620. test_optimization, a library which implements test problems for optimization of a scalar function of several variables, as described by Molga and Smutnicki.
  621. test_values, a library which returns a small set of values for a variety of mathematical functions, suitable for a rough test of accuracy for algorithms;
  622. test_zero, a library which implements test problems for the solution of a single nonlinear equation in one variable.
  623. testpack, a program which demonstrates the use of a set of test integrand functions chosen by Alan Genz.
  624. tet_mesh, a library which works with tetrahedral meshes in 3D;
  625. tet_mesh_boundary, a program which reads information defining a tetrahedral mesh of points in 3D, and determines the triangular faces that form the boundary of the mesh; it writes files containing the nodes and elements defining this tri_surface data.
  626. tet_mesh_display_opengl, a program which reads two files describing a tetrahedral mesh in 3D and displays it using OpenGL.
  627. tet_mesh_l2q, a program which reads information about a 4-node (linear) tet mesh and creates data defining a corresponding 10-node (quadratic) tet mesh;
  628. tet_mesh_q2l, a program which reads information about a 10-node (quadratic) tet mesh and creates data defining a corresponding 4-node (linear) tet mesh;
  629. tet_mesh_quad, a program which estimates the integral of a function over a region defined by a tetrahedral mesh.
  630. tet_mesh_quality, a program which reads a node coordinate file and a tetrahedron file and returns quality measures for the tetrahedronal mesh;
  631. tet_mesh_rcm, a program which computes the Reverse Cuthill McKee (RCM) reordering for the nodes of a tet_mesh that uses 4-node or 10-node tetrahedrons;
  632. tet_mesh_refine, a program which refines a tet mesh;
  633. tet_mesh_tet_neighbors, a program which reads information about a tet mesh and writes out a list of the tetrahedrons that are adjacent to a given tetrahedron;
  634. tet_mesh_volumes, a program which computes the volume of each tetrahedron in a tet mesh;
  635. tetrahedron_arbq_rule, a library which returns quadrature rules, with exactness up to total degree 15, over the interior of a tetrahedron in 3D, by Hong Xiao and Zydrunas Gimbutas.
  636. tetrahedron_exactness, a program which tests the polynomial exactness of a quadrature rule over the interior of a tetrahedron in 3D.
  637. tetrahedron_felippa_rule, a library which returns Felippa's quadratures rules for approximating integrals over the interior of a tetrahedron in 3D.
  638. tetrahedron_grid, a library which computes a grid of points over the interior of a tetrahedron in 3D.
  639. tetrahedron_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit tetrahedron in 3D.
  640. tetrahedron_keast_rule, a library which defines ten quadrature rules, of degree of exactness 0 through 8, over the interior of the tetrahedron in 3D.
  641. tetrahedron_monte_carlo, a library which uses the Monte Carlo method to estimate an integral over the interior of the unit tetrahedron in 3D.
  642. tetrahedron_ncc_rule, a library which defines Newton-Cotes closed (NCC) quadrature rules over the interior of a tetrahedron in 3D.
  643. tetrahedron_nco_rule, a library which defines Newton-Cotes open (NCO) quadrature rules over the interior of a tetrahedron in 3D.
  644. tetrahedron_properties, a program which computes properties including the centroid, circumsphere, dihedral angles, edge lengths, face angles, face areas, insphere, quality, solid angles, and volume of a tetrahedron in 3D.
  645. three_body_simulation, a program which simulates the behavior of three planets, constrained to lie in a plane, and moving under the influence of gravity, by Walter Gander and Jiri Hrebicek.
  646. tiler_3d, a library which blends a pattern repeatedly into a region in 3D;
  647. timer, programs which measure the CPU time used by a portion of a user's program;
  648. timestamp, a library which prints the current YMDHMS date as a timestamp, and other timekeeping operations;
  649. toeplitz_cholesky, a library which computes the Cholesky factorization of a nonnegative definite symmetric Toeplitz matrix.
  650. toms097, a library which computes the distance between all pairs of nodes in a directed graph with weighted edges, using Floyd's algorithm. This is a version of ACM TOMS algorithm 97.
  651. toms178, a library which seeks the minimizer of a scalar function of several variables using the Hooke-Jeeves method, by Arthur Kaupe. This is a version of ACM TOMS algorithm 178.
  652. toms179, a library which calculates the incomplete Beta ratio, by Oliver Ludwig. This is a version of ACM TOMS algorithm 179.
  653. toms291, a library which approximates the logarithm of the Gamma function; this is a version of ACM TOMS algorithm 291.
  654. toms443, a library which evaluates Lambert's W function. This is a version of ACM TOMS algorithm 443.
  655. toms446, a library which manipulates Chebyshev series for interpolation and approximation. This is a version of ACM TOMS algorithm 446, by Roger Broucke.
  656. toms462, a library which evaluates the upper right tail of the bivariate normal distribution; that is, the probability that normal variables X and Y with correlation R will satisfy H <= X and K <= Y. This is a version of ACM TOMS algorithm 462.
  657. toms655, a library which computes the weights for interpolatory quadrature rule; this library is commonly called IQPACK, by Sylvan Elhay and Jaroslav Kautsky. This is a version of ACM TOMS algorithm 655.
  658. toms743, a library which evaluates Lambert's W function. This is a version of ACM TOMS algorithm 743, by Barry, Barry and Culligan-Hensley.
  659. toms886, a library which defines the Padua points for interpolation in a 2D region, including the rectangle, triangle, and ellipse, by Marco Caliari, Stefano de Marchi, Marco Vianello. This is a version of ACM TOMS algorithm 886.
  660. treepack, a library which carries out computations on trees, a simple kind of graph that is minimally connected.
  661. tri_surface_display_opengl, a program which displays a 3D triangulated surface or TRI_SURFACE using OpenGL;
  662. tri_surface_io, a library which reads and writes the 3D graphics information in a tri_surface file;
  663. triangle_dunavant_rule, a library which defines Dunavant quadrature rules over the interior of a triangle in 2D.
  664. triangle_exactness, a program which tests the polynomial exactness of a quadrature rule over the interior of a triangle in 2D.
  665. triangle_fekete_rule, a library which sets up one of seven Fekete rules for interpolation or quadrature over the interior of a triangle in 2D.
  666. triangle_felippa_rule, a library which returns Felippa's quadratures rules for approximating integrals over the interior of a triangle in 2D.
  667. triangle_grid, a library which computes a grid of points over the interior of a triangle in 2D.
  668. triangle_histogram, a program which computes histograms of data over the interior of the unit triangle in 2D.
  669. triangle_integrals, a library which returns the exact value of the integral of any polynomial over the interior of an arbitrary triangle in 2D.
  670. triangle_io, a library which can read or write some of the files created by Jonathan Shewchuk's triangle program.
  671. triangle_lyness_rule, a library which returns Lyness-Jespersen quadrature rules over the interior of a triangle in 2D;
  672. triangle_monte_carlo, a library which uses the Monte Carlo method to estimate an integral over the interior of a triangle in 2D.
  673. triangle_ncc_rule, a library which defines Newton-Cotes closed (NCC) quadrature rules over the interior of a triangle in 2D.
  674. triangle_nco_rule, a library which defines Newton-Cotes open (NCO) quadrature rules over the interior of a triangle in 2D.
  675. triangle_properties, a program which computes properties, including angles, area, centroid, circumcircle, edge lengths, incircle, orientation, orthocenter, and quality, of a triangle in 2D.
  676. triangle_svg, a library which uses Scalable Vector Graphics (SVG) to plot a triangle and any number of points, to illustrate quadrature rules and sampling techniques.
  677. triangle_symq_rule, a library which returns efficient symmetric quadrature rules, with exactness up to total degree 50, over the interior of a triangle in 2D, by Hong Xiao and Zydrunas Gimbutas.
  678. triangle_to_fem, a program which reads the NODE and ELE files created by the triangle program to describe a triangular mesh, and writes a corresponding pair of node and element files in the 2D FEM format.
  679. triangle_to_medit, a program which reads the NODE and ELE files created by the triangle() program to describe a triangular mesh, and writes a corresponding MESH file for input to medit().
  680. triangle_to_xml, a program which reads the NODE and ELE files created by triangle() to describe a triangular mesh in 2D, and writes out a corresponding XML mesh file for use by DOLFIN or FENICS.
  681. triangle_wandzura_rule, a library which returns quadrature rules of exactness 5, 10, 15, 20, 25 and 30 over the interior of the triangle in 2D.
  682. triangle01_integrals, a library which returns the integral of any monomial over the interior of the unit triangle in 2D.
  683. triangulation, a library which computes the triangulation of a set of points in the plane, and performs various operations using a triangulation, including searching a Delaunay triangulation to find which triangle contains a given point.
  684. triangulation_boundary_nodes, a program which reads data defining a triangulation, determines which nodes lie on the boundary, and writes their coordinates to a file;
  685. triangulation_corner, a program which modifies triangulations in which one or more triangles have more than one boundary edge.
  686. triangulation_delaunay_discrepancy, a program which measures the amount by which a triangulation fails the local Delaunay test;
  687. triangulation_display_opengl, a program which reads two files describing a triangulation and displays it using OpenGL.
  688. triangulation_histogram, a program which computes histograms of data over a triangulation.
  689. triangulation_l2q, a program which reads information about a 3-node (linear) triangulation and creates data defining a corresponding 6-node (quadratic) triangulation;
  690. triangulation_mask, a program which reads a triangulation and calls a user-supplied routine to consider each triangle for deletion;
  691. triangulation_node_to_element, a program which reads files describing a set of nodes, their triangulation, and the value of one or more quantities at each node, and outputs a file that averages the quantities for each element. This operation in effect creates an "order1" finite element model of the data.
  692. triangulation_orient, a program which ensures that the triangles in an order 3 or order 6 triangulation have positive orientation;
  693. triangulation_plot, a program which plots the nodes and elements of a triangulation as a PostScript (PS) file;
  694. triangulation_q2l, a program which reads information about a 6-node triangulation and creates data defining a corresponding 3-node triangulation;
  695. triangulation_quad, a program which reads information about a triangulation and the value of a function at the nodes and estimates the integral of the function over the triangulated region.
  696. triangulation_quality, a program which reads information about a triangulation and computes various quality measures;
  697. triangulation_rcm, a program which computes the Reverse Cuthill McKee (RCM) reordering for the nodes of a triangulation that uses 3-node or 6-node triangles;
  698. triangulation_refine, a program which refines a triangulation;
  699. triangulation_svg, a program which creates an SVG image of a triangulation, which can be displayed by a web browser.
  700. triangulation_t3_to_t4, a program which reads information about a 3-node triangulation and creates data defining a corresponding 4-node triangulation (vertices + centroid);
  701. triangulation_triangle_neighbors, a program which reads data defining a triangulation, finds the three neighbor triangles for each triangle, and writes them to a file;
  702. truncated_normal, a library which works with the truncated normal distribution over [A,B], or [A,+oo) or (-oo,B], returning the probability density function (PDF), the cumulative density function (CDF), the inverse CDF, the mean, the variance, and sample values.
  703. truncated_normal_rule, a program which computes a quadrature rule for a normal probability density function (PDF), sometimes called a Gaussian distribution, that has been truncated to [A,+oo), (-oo,B] or [A,B].
  704. tsg, programs which demonstrate the use of the TasmanianSparseGrid (TSG) package, which implements routines for working with sparse grids, to efficiently estimate integrals or compute interpolants of scalar functions of multidimensional arguments, by Miroslav Stoyanov.
  705. tsp_brute, a program which reads a file of city-to-city distances and solves a (small!) traveling salesperson problem, using brute force.
  706. umfpack, examples which illustrate how to solve a sparse linear system by calling the C library UMFPACK, by Timothy Davis.
  707. uncontrol, a program which removes control characters from a file;
  708. unicycle, a library which considers permutations containing a single cycle, sometimes called cyclic permutations.
  709. uniform, a library which implements uniform random number generators (RNG's) for a variety of arithmetic types.
  710. uniform_dataset, a program which creates a file of uniform pseudorandom values;
  711. valgrind, programs which illustrate the use of the VALGRIND suite of programs which includes a memory leak detector.
  712. van_der_corput, a library which evaluates the van der Corput 1-dimensional quasirandom sequence;
  713. van_der_corput_dataset, a program which creates a file of quasirandom van der Corput values;
  714. vandermonde, a library which implements the Bjork-Pereyra algorithm for accurate solution of linear systems involving the Vandermonde matrix.
  715. vandermonde_approx_1d, a library which finds a polynomial approximant to data y(x) of a 1D argument by setting up and solving an overdetermined linear system for the polynomial coefficients involving the Vandermonde matrix.
  716. vandermonde_approx_2d, a library which finds a polynomial approximant p(x,y) to data z(x,y) of a 2D argument by setting up and solving an overdetermined linear system for the polynomial coefficients involving the Vandermonde matrix.
  717. vandermonde_interp_1d, a library which finds a polynomial interpolant to data y(x) of a 1D argument by setting up and solving a linear system for the polynomial coefficients involving the Vandermonde matrix, creating graphics files for processing by gnuplot.
  718. vandermonde_interp_2d, a library which finds a polynomial interpolant to data z(x,y) of a 2D argument by setting up and solving a linear system for the polynomial coefficients involving the Vandermonde matrix.
  719. walsh, a library which implements versions of the Walsh and Haar transforms.
  720. wathen, a library which compares storage schemes (full, banded, sparse triplet ) and solution strategies (Linpack full, Linpack banded, conjugate gradient (CG)) for linear systems involving the Wathen matrix, which can arise when solving a problem using the finite element method (FEM).
  721. wave_mpi, a program which uses finite differences and MPI to estimate a solution to the wave equation.
  722. wavelet, a library which does some simple wavelet calculations;
  723. wedge_exactness, a program which investigates the polynomial exactness of a quadrature rule over the interior of the unit wedge in 3D.
  724. wedge_felippa_rule, a library which returns quadrature rules for approximating integrals over the interior of the unit wedge in 3D.
  725. wedge_grid, a library which computes a grid of points over the interior of the unit wedge in 3D.
  726. wedge_integrals, a library which returns the exact value of the integral of any monomial over the interior of the unit wedge in 3D.
  727. wedge_monte_carlo, a library which uses the Monte Carlo method to estimate an integral over the interior of the unit wedge in 3D.
  728. weekday, a library which determines the day of the week corresponding to a given date, such as 14 October 1066, Julian calendar, ... which was a Saturday.
  729. width, a program which returns the length and location of the longest line in a text file;
  730. wishart, a library which produces sample matrices from the Wishart or Bartlett distributions, useful for sampling random covariance matrices.
  731. wrap, a program which wraps a file so that no line is longer than 80 characters;
  732. wrap2, a program which wraps a text file so that no line is longer than a given maximum; the wrapping may be done slightly earlier than at the maximum, in order to avoid breaking words;
  733. wtime, a library which returns a reading of the wall clock time in seconds.
  734. xy_display_opengl, a program which reads XY information defining points in 2D and displays an image using OpenGL;
  735. xy_io, a library which reads and writes XY, XYL and XYF files defining points, lines, and faces in 2D.
  736. xyf_display_opengl, a program which reads XYF information defining points and faces in 2D and displays an image using OpenGL;
  737. xyl_display_opengl, a program which reads XYL information defining points and lines in 2D and displays an image using OpenGL;
  738. xyz_display_opengl, a program which reads XYZ information defining points in 3D and displays an image using OpenGL;
  739. xyz_io, a library which reads and writes XYZ, XYZL and XYZF files defining points, lines and faces in 3D.
  740. xyzf_display_opengl, a program which reads XYZF information defining points and faces in 3D and displays an image using OpenGL;
  741. xyzl_display_opengl, a program which reads XYZL information defining points and lines in 3D and displays an image using OpenGL;
  742. zero_rc, a library which seeks solutions of a scalar nonlinear equation f(x)=0, or a system of nonlinear equations, using reverse communication (RC).
  743. ziggurat, a library which samples the uniform, normal or exponential distributions, using the ziggurat method, by Marsaglia and Tsang.
  744. ziggurat_inline, a library which samples the uniform, normal or exponential distributions, using the ziggurat method, by Marsaglia and Tsang. In this original version, the random number generators are implemented inline, for increased speed.
  745. ziggurat_openmp, a program which demonstrates how the ziggurat library can be used as a random number generator (RNG) in an OpenMP parallel program.

You can go up one level to the main web page.


Last revised on 22 April 2015.