@@ -3241,7 +3241,7 @@ int create_graph(int refstart,int s,int g,CBundle *bundle,GPVec<CBundlenode>& bn
32413241
32423242 // finished reading bundle -> now create the parents' and children's patterns
32433243 GVec<bool> visit;
3244- visit.Resize(graphno,false );
3244+ visit.Resize(graphno);
32453245 GBitVec parents(graphno+edgeno);
32463246
32473247 //fprintf(stderr,"traverse graph[%d][%d] now with %d nodes, %d edges and lastgpos=%d....\n",s,g,graphno,edgeno,lastgpos);//edgeno=0;
@@ -5556,7 +5556,7 @@ CPrediction* store_merge_prediction(float cov,GVec<int>& alltr,GPVec<CMTransfrag
55565556
55575557bool bfs(int n,GVec<float> *capacity,GVec<float> *flow,GVec<int> *link,GVec<int>& pred) {
55585558 GVec<int> color;
5559- color.Resize(n+2,0 );
5559+ color.Resize(n+2);
55605560 int head=0;
55615561 int tail=0;
55625562 GVec<int> q;
@@ -7650,7 +7650,7 @@ void compute_capacity_back(int firstn, CTransfrag *t,float val,GVec<float>& capa
76507650
76517651bool weight_bfs(int n,GVec<float> *capacity,GVec<float> *flow,GVec<int> *link,GVec<int>& pred) {
76527652 GVec<int> color;
7653- color.Resize(n,0 );
7653+ color.Resize(n);
76547654 int head=0;
76557655 int tail=0;
76567656 GVec<int> q;
@@ -7740,8 +7740,8 @@ float max_flow(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTransfrag>&
77407740 for(int i=0;i<n;i++) {
77417741 node2path[path[i]]=i;
77427742 nodecapacity.cAdd(0.0);
7743- capacity[i].Resize(n,0 );
7744- flow[i].Resize(n,0 );
7743+ capacity[i].Resize(n);
7744+ flow[i].Resize(n);
77457745 }
77467746
77477747 // establish capacities in the network
@@ -7897,8 +7897,8 @@ float long_max_flow(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTransfr
78977897 node2path[path[i]]=i;
78987898 nodecapacity.cAdd(0.0);
78997899 noderate.cAdd(1.0); // I set up all rates to be 1 for now
7900- capacity[i].Resize(n,0 );
7901- flow[i].Resize(n,0 );
7900+ capacity[i].Resize(n);
7901+ flow[i].Resize(n);
79027902 }
79037903
79047904 float max_fl=0;
@@ -8062,12 +8062,12 @@ float push_max_flow(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTransfr
80628062 }
80638063 GVec<float> capacityleft; // how many transcripts compatible to path enter node
80648064 GVec<float> capacityright; // how many transcripts compatible to path exit node
8065- capacityleft.Resize(n,0 );
8066- capacityright.Resize(n,0 );
8065+ capacityleft.Resize(n);
8066+ capacityright.Resize(n);
80678067 GVec<float> sumleft; // how many transcripts enter node
80688068 GVec<float> sumright; // how many transcripts exit node
8069- sumleft.Resize(n,0 );
8070- sumright.Resize(n,0 );
8069+ sumleft.Resize(n);
8070+ sumright.Resize(n);
80718071
80728072 //bool full=true;
80738073 //if(longreads && path.Count()>3) full=false;
@@ -8362,12 +8362,12 @@ float push_guide_maxflow(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTr
83628362 }
83638363 GVec<float> capacityleft; // how many transcripts compatible to path enter node
83648364 GVec<float> capacityright; // how many transcripts compatible to path exit node
8365- capacityleft.Resize(n,0 );
8366- capacityright.Resize(n,0 );
8365+ capacityleft.Resize(n);
8366+ capacityright.Resize(n);
83678367 GVec<float> sumleft; // how many transcripts enter node
83688368 GVec<float> sumright; // how many transcripts exit node
8369- sumleft.Resize(n,0 );
8370- sumright.Resize(n,0 );
8369+ sumleft.Resize(n);
8370+ sumright.Resize(n);
83718371
83728372 /*
83738373 { // DEBUG ONLY
@@ -8609,8 +8609,8 @@ float guideflow(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTransfrag>&
86098609 for(int i=0;i<n;i++) {
86108610 //fprintf(stderr,"%d ",path[i]);
86118611 node2path[path[i]]=i;
8612- capacity[i].Resize(n,0 );
8613- flow[i].Resize(n,0 );
8612+ capacity[i].Resize(n);
8613+ flow[i].Resize(n);
86148614 }
86158615
86168616 //fprintf(stderr,"n=%d ",n);
@@ -8708,12 +8708,12 @@ float guidepushflow(int g,GVec<CGuide>& guidetrf,int gno,GBitVec& istranscript,G
87088708
87098709 GVec<float> capacityleft; // how many transcripts compatible to path enter node
87108710 GVec<float> capacityright; // how many transcripts compatible to path exit node
8711- capacityleft.Resize(n,0 );
8712- capacityright.Resize(n,0 );
8711+ capacityleft.Resize(n);
8712+ capacityright.Resize(n);
87138713 GVec<float> sumleft; // how many transcripts enter node
87148714 GVec<float> sumright; // how many transcripts exit node
8715- sumleft.Resize(n,0 );
8716- sumright.Resize(n,0 );
8715+ sumleft.Resize(n);
8716+ sumright.Resize(n);
87178717
87188718 // compute capacities and sums for all nodes
87198719 for(int i=1;i<n-1;i++) {
@@ -8874,13 +8874,13 @@ float max_flow_EM(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTransfrag
88748874 */
88758875
88768876 GVec<float> through; // these are the capacity of the "trough" transfrags through each node in the path
8877- through.Resize(n,0 );
8877+ through.Resize(n);
88788878
88798879 for(int i=0;i<m;i++) {
88808880 if(i<n) node2path[path[i]]=i;
88818881 if(i<n) nodecapacity.cAdd(0.0);
8882- capacity[i].Resize(m,0 );
8883- flow[i].Resize(m,0 );
8882+ capacity[i].Resize(m);
8883+ flow[i].Resize(m);
88848884 }
88858885
88868886 // establish capacities in the network
@@ -9034,7 +9034,7 @@ float max_flow_EM(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTransfrag
90349034 if(doEM) // reset flow to 0
90359035 for(int i=0;i<m;i++) {
90369036 flow[i].Clear();
9037- flow[i].Resize(m,0 );
9037+ flow[i].Resize(m);
90389038 }
90399039
90409040 iterations++;
@@ -9096,8 +9096,8 @@ float weight_max_flow(int gno,GVec<int>& path,GBitVec& istranscript,GPVec<CTrans
90969096 for(int i=0;i<n;i++) {
90979097 node2path[path[i]]=i;
90989098 nodecapacity.cAdd(0.0);
9099- capacity[i].Resize(n,0 );
9100- flow[i].Resize(n,0 );
9099+ capacity[i].Resize(n);
9100+ flow[i].Resize(n);
91019101 rate[i].Resize(n,1);
91029102 }
91039103
@@ -14136,7 +14136,7 @@ void count_good_junctions(BundleData* bdata) {
1413614136 gjunc.Clear();
1413714137 }
1413814138
14139- for(int s=0;s<3;s++) bpcov[s].Resize(refend-refstart+3, 0 );
14139+ for(int s=0;s<3;s++) bpcov[s].Resize(refend-refstart+3);
1414014140
1414114141 GVec<int> unstranded; // remembers unstranded reads
1414214142
@@ -14958,7 +14958,7 @@ int print_predcluster(GList<CPrediction>& pred,int geneno,GStr& refname,
1495814958
1495914959 int npred=pred.Count();
1496014960 GVec<bool> overlap;
14961- overlap.Resize(npred*npred-npred,false );
14961+ overlap.Resize(npred*npred-npred);
1496214962
1496314963 GVec<CPred> predord;
1496414964 //CPred p(0,pred[0]->cov);
0 commit comments