Short: A Matrix and a Bignum class for C++ Author: trulsson@student.docs.uu.se (Erik Trulsson) Uploader: trulsson@student.docs.uu.se (Erik Trulsson) This is a couple of classes written in C++ that handles Bignums (integers whose size is limited only by available memory) and matrices. The matrix directory contains several versions of the code, use whatever suits you best. (There is even a C version includd that was my first attempt this) The PMatrix class is a permutation matrix and the LUMatrix is a matrix that has been LU-decomposed. (if you didn't understand the last sentence so don't worry, you probably won't need them then :-) ) The documentation is sorely lacking but using the classes is fairly straight-forward. (The Bignum class is fairly well commented - in Swedish only. :-( ) This code is hereby placed into the public domain. ============================= Archive contents ============================= Original Packed Ratio Date Time Name -------- ------- ----- --------- -------- ------------- 0 0 0.0% 11-Jan-97 00:59:12 + 851 472 44.5% 11-Jan-97 00:59:12 +ReadMe 0 0 0.0% 11-Jan-97 00:51:20 + 18536 4309 76.7% 14-Apr-96 13:20:48 +bignum.cc 1113 288 74.1% 19-Mar-95 14:22:42 +bignum.h 1919 383 80.0% 19-Mar-95 17:29:30 +bignumtest.cc 268 121 54.8% 24-Mar-96 15:55:48 +makefile 0 0 0.0% 11-Jan-97 00:50:48 + 14206 2870 79.7% 17-Sep-96 17:44:06 +Matrix.cc 3304 826 75.0% 10-Jun-96 22:56:24 +Vector.cc 10612 5350 49.5% 27-Oct-96 16:20:36 +crank 647 333 48.5% 27-Oct-96 16:21:12 +crank.cc 1267 594 53.1% 19-Sep-96 22:26:00 +jacobi.cc 0 0 0.0% 11-Jan-97 01:00:08 + 1082 412 61.9% 05-Oct-96 15:18:36 +Makefile 2698 695 74.2% 05-Oct-96 14:52:20 +Matrix.h 694 350 49.5% 18-Sep-96 17:41:42 +determinant.cc 189904 36181 80.9% 05-Oct-96 15:42:52 +libmatrix.a.020881 244 153 37.2% 18-Sep-96 17:41:52 +lumat_getl.cc 86 78 9.3% 18-Sep-96 17:41:58 +lumat_getp.cc 186 139 25.2% 18-Sep-96 17:42:04 +lumat_getu.cc 1038 414 60.1% 18-Sep-96 17:42:36 +lumat_ludecomp.cc 110 92 16.3% 18-Sep-96 17:42:42 +lumat_op_assign.cc 774 348 55.0% 05-Oct-96 14:55:42 +lusolve.cc 66 62 6.0% 18-Sep-96 17:43:02 +mat_create.cc 248 166 33.0% 18-Sep-96 17:43:12 +mat_create_int_int.cc 331 207 37.4% 18-Sep-96 17:43:58 +mat_create_int_int_ptr.cc 261 174 33.3% 05-Oct-96 14:29:24 +mat_create_mat.cc 272 184 32.3% 18-Sep-96 17:44:08 +mat_create_pmat.cc 51 51 0.0% 19-Sep-96 22:30:22 +mat_dabs.cc 74 73 1.3% 18-Sep-96 17:44:24 +mat_destr.cc 175 127 27.4% 05-Oct-96 14:30:42 +mat_getcol.cc 175 127 27.4% 05-Oct-96 14:31:26 +mat_getrow.cc 234 159 32.0% 05-Oct-96 14:59:28 +mat_inverse.cc 343 198 42.2% 18-Sep-96 17:56:42 +mat_op_add.cc 280 178 36.4% 18-Sep-96 17:56:48 +mat_op_addassign.cc 565 244 56.8% 18-Sep-96 17:56:54 +mat_op_assign.cc 302 171 43.3% 18-Sep-96 17:57:00 +mat_op_eq.cc 205 147 28.2% 18-Sep-96 17:57:10 +mat_op_mult_dbl_mat.cc 204 146 28.4% 18-Sep-96 17:57:14 +mat_op_mult_mat_dbl.cc 391 234 40.1% 18-Sep-96 17:57:20 +mat_op_mult_mat_mat.cc 283 185 34.6% 18-Sep-96 17:57:30 +mat_op_mult_pmat_mat.cc 194 134 30.9% 18-Sep-96 17:57:04 +mat_op_multassign.cc 300 168 44.0% 18-Sep-96 17:57:36 +mat_op_neq.cc 343 199 41.9% 18-Sep-96 17:57:40 +mat_op_sub.cc 279 178 36.2% 18-Sep-96 17:57:44 +mat_op_subassign.cc 516 294 43.0% 05-Oct-96 14:51:24 +mat_print.cc 293 181 38.2% 18-Sep-96 17:57:50 +mat_rxchg.cc 193 147 23.8% 05-Oct-96 15:05:52 +mat_setcol.cc 192 145 24.4% 05-Oct-96 15:41:32 +mat_setrow.cc 293 176 39.9% 18-Sep-96 17:58:06 +mat_setunity.cc 263 175 33.4% 18-Sep-96 17:58:14 +mat_transpose.cc 165 125 24.2% 18-Sep-96 17:58:22 +mat_unity.cc 61 61 0.0% 18-Sep-96 17:58:44 +pmat_create.cc 206 145 29.6% 18-Sep-96 17:59:00 +pmat_create_int.cc 257 166 35.4% 18-Sep-96 17:59:14 +pmat_create_pmat.cc 86 81 5.8% 18-Sep-96 17:59:22 +pmat_destr.cc 156 122 21.7% 18-Sep-96 17:59:28 +pmat_inverse.cc 167 142 14.9% 18-Sep-96 17:59:40 +pmat_op_arr.cc 219 154 29.6% 18-Sep-96 17:59:46 +pmat_op_assign.cc 238 181 23.9% 18-Sep-96 17:59:52 +pmat_op_index.cc 240 165 31.2% 18-Sep-96 17:59:58 +pmat_op_mult_pmat_pmat.cc 158 124 21.5% 18-Sep-96 18:00:02 +pmat_transpose.cc 100 84 16.0% 05-Oct-96 14:35:22 +solve_lumat.cc 108 85 21.2% 05-Oct-96 15:29:32 +solve_mat.cc 198 128 35.3% 18-Sep-96 18:01:06 +swap_mat_mat.cc 526 248 52.8% 22-Sep-96 12:47:26 +matrixtest.cc 0 0 0.0% 11-Jan-97 00:42:40 + 7105 1780 74.9% 04-Jun-96 21:52:04 +cMatrix.c 977 337 65.5% 04-Jun-96 21:41:30 +cMatrix.h 970 453 53.2% 04-Jun-96 22:19:12 +cmtest.c 12580 2694 78.5% 19-Feb-95 21:52:18 +oldmatrix.cc 3316 825 75.1% 21-May-95 20:12:28 +oldmatrix.h 3448 857 75.1% 12-Feb-96 20:28:36 +oldvector.cc 1339 359 73.1% 21-May-95 16:49:54 +oldvector.h 523 229 56.2% 05-Oct-96 15:27:36 +test.cc 5928 2656 55.1% 05-Oct-96 15:38:08 +test.o 280 176 37.1% 19-Sep-96 22:25:44 +vectest.cc -------- ------- ----- --------- -------- 296216 71415 75.8% 16-Jan-97 10:05:02 78 files