[ Last Modification : 2001/10/30] --------------------------------- Here is Flexible Vector and Matrix (Vectors and Matrix with Arbitrary Bounds). The algorithm has been written by Alex Vinokur. Programming Language : C++. Any and all comments would be appreciated. Alex Vinokur ----------------------------------- alexvn@bigfoot.com, alexvn@dr.com alexv@hitechclub.com http://up.to/alexvn http://go.to/alexv_math http://alexvn.freeservers.com/s1/flexible_vector.html http://alexvn.freeservers.com/s1/flexible_vector.zip -----------------------------------
Content. 1. Algorithm 2. Classes 3. Program Files 4. Tests 5. Compiling 6. Running (Log File) 7. Download |
==================================================== =================== 1. Algorithm =================== Flexible Vector and Matrix Classes enable to use vectors and matrixes with arbitrary bounds. Also : see the discussions titled "It was in Algol60, but missing in STL" started 1999/03/15 in * comp.lang.c++ * comp.lang.c++.modearated * comp.std.c++ ==================================================== |
==================================================== ================ 2. List Of Classes ================ Main template classes used in the algorithm are as following : 1. ClassFlexibleVector<T> 2. ClassVeryFlexibleVector<T> 3. ClassFlexibleMatrix<T> ==================================================== |
========================================================================== ============================= 3. Program Files =========================== The algorithm contains the following files : Header files 1. defs.h Macro & definitions 2. funcs.h Auxiliary functions (Declaration) 3. obj_loc.h Auxiliary location classes (Definition) 4. fx_vect.h Flexible Vector Classes (Definition) 5. fx_vect2.h Flexible Vector Classes (Template Implementation) 6. fx_matr.h Flexible Matrix Classes (Definition) 7. fx_matr2.h Flexible Matrix Classes (Template Implementation) 8. testfile.h Test Classes and Functions (Declarations, Definition) Source files 9. defs.c Initializations 10. funcs.c Auxiliary functions (Implementation) 11. obj_loc.c Auxiliary location classes (Implementation) 12. fx_vect.c Flexible Vector Classes (Non-Template Implementation) 13. fx_matr.c Flexible Matrix Classes (Non-Template Implementation) 14. testfile.c Test Classes and Functions (Implementation) 15. main.c Test Classes and Functions (Implementation) ========================================================================== |
==================================================== ===================== 4. Tests ===================== The main program contains the following tests : Vector-Test#1. Show Methods Vector-Test#2. Valid Assignations Vector-Test#3. Invalid Assignations Matrix-Test#1. Show Methods Matrix-Test#2. Valid Assignations Matrix-Test#3. Invalid Assignations ==================================================== |
==================================================== ==================== 5. Compiling ================== //######################################################### //------------------- System & Compiler ------------------ Windows98 gpp : GNU C++ version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C version 2.95.3 20010315/djgpp (release). //-------------------- Compiling : BEGIN ------------------ %gpp *.c //-------------------- Compiling : END -------------------- |
====================================================
===================== 6. Running ===================
//#########################################################
//-------------------- Running : BEGIN --------------------
%a.exe
//-------------------- Running : END ----------------------
See the results in Log file
|