Skip to content

Commit

Permalink
Update gsl_matrix.cpp
Browse files Browse the repository at this point in the history
solve #1700
  • Loading branch information
GillesDuvert committed Dec 23, 2023
1 parent 49349c2 commit 600ef64
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/gsl_matrix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,6 @@ namespace lib {
// cout << szdbl << " " <<szflt << " " << szlng << " " szlng64 << endl;

SizeT nParam=e->NParam(1);
// if( nParam == 0)
// e->Throw( "Incorrect number of arguments.");

BaseGDL* p0 = e->GetParDefined( 0);

Expand Down Expand Up @@ -111,7 +109,12 @@ namespace lib {
if (p0->Type() == GDL_DOUBLE) double_flag=1;
static int doubleIx=e->KeywordIx("DOUBLE");
if (e->KeywordSet(doubleIx)) double_flag=1;

static int INTERCHANGES=e->KeywordIx("INTERCHANGES");
if (e->KeywordPresent( INTERCHANGES)) {
e->AssureGlobalKW(INTERCHANGES);
e->SetKW(INTERCHANGES,new DLongGDL(s));
}

// this code will always return GDL_DOUBLE because I don't know how to do :(
// AC 13-Feb-2012 : this is not working and I don't know how to do :(
// if (double_flag == 0)
Expand Down

0 comments on commit 600ef64

Please sign in to comment.