#include <cfloat>
#include <cstring>
#include <cctype>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
#include "byte-swap.h"
#include "data-conv.h"
#include "file-ops.h"
#include "glob-match.h"
#include "lo-mappers.h"
#include "mach-info.h"
#include "oct-env.h"
#include "oct-time.h"
#include "quit.h"
#include "str-vec.h"
#include "Cell.h"
#include "defun.h"
#include "error.h"
#include "gripes.h"
#include "lex.h"
#include "load-save.h"
#include "ls-ascii-helper.h"
#include "ls-mat-ascii.h"
#include "oct-obj.h"
#include "oct-map.h"
#include "ov-cell.h"
#include "pager.h"
#include "pt-exp.h"
#include "sysdep.h"
#include "unwind-prot.h"
#include "utils.h"
#include "variables.h"
#include "version.h"
#include "dMatrix.h"
Go to the source code of this file.
Functions | |
static void | get_lines_and_columns (std::istream &is, const std::string &filename, octave_idx_type &nr, octave_idx_type &nc) |
static std::string | get_mat_data_input_line (std::istream &is) |
std::string | read_mat_ascii_data (std::istream &is, const std::string &filename, octave_value &tc) |
bool | save_mat_ascii_data (std::ostream &os, const octave_value &val, int precision, bool tabs) |
static void get_lines_and_columns | ( | std::istream & | is, | |
const std::string & | filename, | |||
octave_idx_type & | nr, | |||
octave_idx_type & | nc | |||
) | [static] |
Definition at line 110 of file ls-mat-ascii.cc.
References error(), error_state, and get_mat_data_input_line().
Referenced by read_mat_ascii_data().
static std::string get_mat_data_input_line | ( | std::istream & | is | ) | [static] |
Definition at line 69 of file ls-mat-ascii.cc.
References skip_preceeding_newline(), and skip_until_newline().
Referenced by get_lines_and_columns(), and read_mat_ascii_data().
std::string read_mat_ascii_data | ( | std::istream & | is, | |
const std::string & | filename, | |||
octave_value & | tc | |||
) |
Definition at line 199 of file ls-mat-ascii.cc.
References d, Array< T >::elem(), error(), error_state, get_lines_and_columns(), get_mat_data_input_line(), is_keyword(), and valid_identifier().
Referenced by do_load().
bool save_mat_ascii_data | ( | std::ostream & | os, | |
const octave_value & | val, | |||
int | precision, | |||
bool | tabs | |||
) |
Definition at line 331 of file ls-mat-ascii.cc.
References Array< T >::cols(), error_state, octave_value::is_complex_type(), octave_value::matrix_value(), octave_write_double(), Array< T >::rows(), and warning().
Referenced by do_save().