Log In | Get Help   
Home My Page Projects Code Snippets Project Openings Mareframe
Summary Activity Forums Tracker Lists Tasks Docs Surveys News SCM Files
[mareframe] Diff of /trunk/gadget/doublevector.cc
[mareframe] / trunk / gadget / doublevector.cc Repository:
ViewVC logotype

Diff of /trunk/gadget/doublevector.cc

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 10, Wed Jun 10 13:01:42 2015 UTC revision 11, Thu Jul 23 19:00:38 2015 UTC
# Line 38  Line 38 
38    }    }
39  }  }
40    
41    void DoubleVector::Initialize(int sz, double value) {
42      size = (sz > 0 ? sz : 0);
43      int i;
44      if (size > 0) {
45        v = new double[size];
46        for (i = 0; i < size; i++)
47          v[i] = value;
48      } else
49        v = 0;
50    }
51    
52  void DoubleVector::resize(int addsize, double value) {  void DoubleVector::resize(int addsize, double value) {
53    if (addsize <= 0)    if (addsize <= 0)
54      return;      return;

Legend:
Removed from v.10  
changed lines
  Added in v.11

root@forge.cesga.es
ViewVC Help
Powered by ViewVC 1.0.0  

Powered By FusionForge