C1Vector Struct Reference

#include <MsmMap.h>

List of all members.

Public Member Functions

 C1Vector (Float r=0)
void set (Float r)
C1Vectoroperator+= (const C1Vector &v)

Public Attributes

Float velem [C1_VECTOR_SIZE]

Friends

Float operator * (const C1Vector &u, const C1Vector &v)
C1Vector operator+ (const C1Vector &u, const C1Vector &v)


Detailed Description

Definition at line 86 of file MsmMap.h.


Constructor & Destructor Documentation

C1Vector::C1Vector ( Float  r = 0  )  [inline]

Definition at line 88 of file MsmMap.h.

References set().

00088 { set(r); }


Member Function Documentation

C1Vector& C1Vector::operator+= ( const C1Vector v  )  [inline]

Definition at line 92 of file MsmMap.h.

References C1_VECTOR_SIZE, and velem.

00092                                             {
00093       for (int n=0;  n < C1_VECTOR_SIZE;  n++)  velem[n] += v.velem[n];
00094       return(*this);
00095     }

void C1Vector::set ( Float  r  )  [inline]

Definition at line 89 of file MsmMap.h.

References C1_VECTOR_SIZE, and velem.

Referenced by C1Vector().

00089                       {
00090       for (int n=0;  n < C1_VECTOR_SIZE;  n++)  velem[n] = r;
00091     }


Friends And Related Function Documentation

Float operator * ( const C1Vector u,
const C1Vector v 
) [friend]

Definition at line 96 of file MsmMap.h.

00096                                                                  {
00097       Float r=0;
00098       for (int n=0;  n < C1_VECTOR_SIZE;  n++)  r += u.velem[n] * v.velem[n];
00099       return r;
00100     }

C1Vector operator+ ( const C1Vector u,
const C1Vector v 
) [friend]

Definition at line 101 of file MsmMap.h.

00101                                                                     {
00102       C1Vector w;
00103       for (int n=0;  n < C1_VECTOR_SIZE;  n++) {
00104         w.velem[n] = u.velem[n] + v.velem[n];
00105       }
00106       return w;
00107     }


Member Data Documentation

Float C1Vector::velem[C1_VECTOR_SIZE]

Definition at line 87 of file MsmMap.h.

Referenced by msm::PatchData::anterpolationC1Hermite(), MsmC1HermiteGridCutoff::compute_specialized(), msm::PatchData::interpolationC1Hermite(), operator+=(), and set().


The documentation for this struct was generated from the following file:
Generated on Sun Sep 24 01:17:16 2017 for NAMD by  doxygen 1.4.7