Diff of /src/cyclgen.cc [cc3368] .. [ec7c13] Maximize Restore

  Switch to unified view

a/src/cyclgen.cc b/src/cyclgen.cc
...
...
193
      mm = mm - 1;
193
      mm = mm - 1;
194
    }
194
    }
195
  k = n - mm;
195
  k = n - mm;
196
196
197
  if (nargin > 2)
197
  if (nargin > 2)
198
    {
198
    if (args(2).is_string ())
199
      if (args(2).is_string ())
199
      {
200
        {
200
        std::string s_arg = args(2).string_value ();
201
          std::string s_arg = args(2).string_value ();
201
202
202
        if (s_arg == "system")
203
          if (s_arg == "system")
203
          system = true;
204
            system = true;
204
        else if (s_arg == "nosys")
205
          else if (s_arg == "nosys")
205
          system = false;
206
            system = false;
206
        else
207
          else
207
          {
208
            {
208
            error ("cyclgen: illegal argument");
209
              error ("cyclgen: illegal argument");
209
            return retval;
210
              return retval;
210
          }
211
            }
211
      }
212
        }
212
    else
213
      else
213
      {
214
        {
214
        error ("cyclgen: illegal argument");
215
          error ("cyclgen: illegal argument");
215
        return retval;
216
          return retval;
216
      }
217
        }
218
    }
217
219
218
  // Haven't implemented this since I'm not sure what matlab wants here
220
  // Haven't implemented this since I'm not sure what matlab wants here
219
  if (!system)
221
  if (!system)
220
    {
222
    {
221
      error ("cyclgen: non-systematic generator matrices not implemented");
223
      error ("cyclgen: non-systematic generator matrices not implemented");