Changeset 32 in TRACY3 for trunk/tracy/tracy/src/mathlib.cc


Ignore:
Timestamp:
Apr 9, 2014, 3:50:11 PM (10 years ago)
Author:
zhangj
Message:

active the transport of the twiss functions and orbits of the transfer line.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tracy/tracy/src/mathlib.cc

    r3 r32  
    218218}
    219219
    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 ***********************************************************/
    221226void CopyVec(const int n, const Vector &a, Vector &b)
    222227{
    223   int i;
     228  int i=0;
    224229
    225230  for (i = 0; i < n; i++)
     
    457462
    458463
     464/*********************************************************
     465 * void MulLMat(const int n, const Matrix &A, Matrix &B)
     466 *
     467 * Matrix multiplication.  B = A * B
     468 *
     469 *
     470 **********************************************************/
    459471void MulLMat(const int n, const Matrix &A, Matrix &B)
    460472{
    461   int i, j, k;
    462   double x;
     473  int i=0, j=0, k=0;
     474  double x=0.0;
    463475  Matrix C;
    464476
     
    474486}
    475487
    476 
     488/*********************************************************
     489 * void MulRMat(const int n, const Matrix &A, Matrix &B)
     490 *
     491 * Matrix multiplication.  A = A * B
     492 *
     493 *
     494 **********************************************************/
    477495void MulRMat(const int n, Matrix &A, const Matrix &B)
    478496{
    479   int i, j, k;
    480   double x;
     497  int i=0, j=0, k=0;
     498  double x=0.0;
    481499  Matrix C;
    482500
     
    492510}
    493511
    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 **********************************************************/
    495521double TrMat(const int n, const Matrix &A)
    496522{
Note: See TracChangeset for help on using the changeset viewer.