octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #51871] load ascii-based numeric file is signi


From: count
Subject: [Octave-bug-tracker] [bug #51871] load ascii-based numeric file is significantly slow
Date: Tue, 29 Aug 2017 14:58:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Firefox/45.0

Follow-up Comment #2, bug #51871 (project octave):

The push_back of std::vector does expansion in an efficient way, usually
double or 1.5 times the capacity.

Octave did some error checking, but not much. This how it works:


Function read_mat_ascii_data()
{

  Function get_lines_and_columns()
  {
     Read the file line by line (get_mat_data_input_line()), exam number of
columns, see if it consistent. The validation of numerics is disabled
(check_numeric = false);
     Return number of columns and rows.
  }

  Read the file line by line (get_mat_data_input_line()), parse the numbers
one by one in a line, and put it in the matrix.
}

Function get_mat_data_input_line()
{
  Return a data line, skips comments and white or empty lines.
}



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51871>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]