C[] Program Examples


Gaussian Elimination (LU decomposition)

Author   Mikhail Posypkin

Description   Program performs LU decomposition of a square matrix (Gaussian Elimination).

Compilation & Running Instructions  
Programs should be compiled with the following command lines:
  cbcc -o Gauss Gauss.cb
to compile fixed size version and
  cbcc -o dGauss dGauss.cb 
to compile variable size version. After that binaries Gauss and dGauss are ready to run.

Downloads


Jacobi

Author   Mikhail Posypkin

Description  
Solves the Jacobi computation: given an array A, iteratively replace its elements with the average of their four nearest neighbors, until the largest change between two consecutive iterations is less than delta.

Compilation & Running Instructions  
Programs should be compiled with the following command lines:
  cbcc -o Jacobi Jacobi.cb
to compile fixed size version and
  cbcc -o dJacobi dJacobi.cb 
to compile variable size version. After that binaries Jacobi and dJacobi are ready to run.

Note
Jacobi may be successfully compiled only by cbc versions 2.0.3 and higher.

Downloads


Send us your C[] application. We'll publish it on this page.


Home Support Publications News Subscription Team mpc@ispras.ru