Skip to content

Commit

Permalink
small change to homtest output
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnCremona committed Jun 21, 2024
1 parent 3c7ea55 commit 5f127a4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
3 changes: 0 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,3 @@ eclib
The eclib package includes mwrank (for 2-descent on elliptic curves
over Q) and modular symbol code used to create the elliptic curve
database.

[![Total alerts](https://img.shields.io/lgtm/alerts/g/JohnCremona/eclib.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/JohnCremona/eclib/alerts/)
[![Language grade: C/C++](https://img.shields.io/lgtm/grade/cpp/g/JohnCremona/eclib.svg?logo=lgtm&logoWidth=18)](https://lgtm.com/projects/g/JohnCremona/eclib/context:cpp)
6 changes: 3 additions & 3 deletions libsrc/egr.cc
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ int ComponentGroups::gr1prime(vector<Point>& Plist, const bigint& p)
// cout<<"regulator = "<<reg0<<endl;
// cout<<n<<" points"<<endl;
#endif
if(npts==0) return 1;
if(Plist.empty()) return 1;
Point P0 = Plist[0], P1;
vector<int> CG = ComponentGroup(p);
long CGexpo=CG[0];
Expand Down Expand Up @@ -368,8 +368,8 @@ int ComponentGroups::gr1prime(vector<Point>& Plist, const bigint& p)
if(CGOrder==1) return 1;
#ifdef DEBUG_EGR
cout<< "processing point #1: "<<flush;
#endif
m=OrderInComponentGroup(P0,p,CG); // will hold current index
#endif
m=OrderInComponentGroup(P0,p,CG); // will hold current index
for(j=1; j<npts; j++)
{
n0 = m;
Expand Down
2 changes: 1 addition & 1 deletion tests/homtest.cc
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ int main(void)
cout << plus << ": ";
cout << "\tDimension = " << dim;
cout << "\tCuspidal dimension = " << cdim;
if(d*cd>1) cout<<" denoms ("<<d<<","<<cd<<")";
if(d*cd>1 &&verbose) cout<<" denoms ("<<d<<","<<cd<<")";
#ifdef SHOW_TIMES
show_time();
#endif
Expand Down
2 changes: 1 addition & 1 deletion tests/out_no_ntl/homtest.out
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Sign = -1: Dimension = 111 Cuspidal dimension = 111
Sign = 0: Dimension = 229 Cuspidal dimension = 222

>>>Level 905
Sign = 1: Dimension = 92 Cuspidal dimension = 89 denoms (2,2)
Sign = 1: Dimension = 92 Cuspidal dimension = 89
Sign = -1: Dimension = 89 Cuspidal dimension = 89
Sign = 0: Dimension = 181 Cuspidal dimension = 178

Expand Down
2 changes: 1 addition & 1 deletion tests/out_ntl/homtest.out
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Sign = -1: Dimension = 111 Cuspidal dimension = 111
Sign = 0: Dimension = 229 Cuspidal dimension = 222

>>>Level 905
Sign = 1: Dimension = 92 Cuspidal dimension = 89 denoms (2,2)
Sign = 1: Dimension = 92 Cuspidal dimension = 89
Sign = -1: Dimension = 89 Cuspidal dimension = 89
Sign = 0: Dimension = 181 Cuspidal dimension = 178

Expand Down

0 comments on commit 5f127a4

Please sign in to comment.