Changeset 32 in TRACY3 for trunk/tracy/tracy/src/mathlib.cc
- Timestamp:
- Apr 9, 2014, 3:50:11 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tracy/tracy/src/mathlib.cc
r3 r32 218 218 } 219 219 220 220 /*********************************************************** 221 * void CopyVec(const int n, const Vector &a, Vector &b) 222 * 223 * Copy 6D vector a to b: b = a. 224 * 225 ***********************************************************/ 221 226 void CopyVec(const int n, const Vector &a, Vector &b) 222 227 { 223 int i ;228 int i=0; 224 229 225 230 for (i = 0; i < n; i++) … … 457 462 458 463 464 /********************************************************* 465 * void MulLMat(const int n, const Matrix &A, Matrix &B) 466 * 467 * Matrix multiplication. B = A * B 468 * 469 * 470 **********************************************************/ 459 471 void MulLMat(const int n, const Matrix &A, Matrix &B) 460 472 { 461 int i , j, k;462 double x ;473 int i=0, j=0, k=0; 474 double x=0.0; 463 475 Matrix C; 464 476 … … 474 486 } 475 487 476 488 /********************************************************* 489 * void MulRMat(const int n, const Matrix &A, Matrix &B) 490 * 491 * Matrix multiplication. A = A * B 492 * 493 * 494 **********************************************************/ 477 495 void MulRMat(const int n, Matrix &A, const Matrix &B) 478 496 { 479 int i , j, k;480 double x ;497 int i=0, j=0, k=0; 498 double x=0.0; 481 499 Matrix C; 482 500 … … 492 510 } 493 511 494 512 /********************************************************* 513 * double TrMat(const int n, const Matrix &A) 514 * 515 * Calculate the trance of the matrix A. 516 * 517 * return: 518 * x. 519 * 520 **********************************************************/ 495 521 double TrMat(const int n, const Matrix &A) 496 522 {
Note: See TracChangeset
for help on using the changeset viewer.