GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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, octave_idx_type &nr, octave_idx_type &nc, const std::string &filename=std::string(), bool quiet=false, bool check_numeric=false) |
static std::string | get_mat_data_input_line (std::istream &is) |
bool | looks_like_mat_ascii_file (std::istream &is, const std::string &filename) |
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 |
Definition at line 110 of file ls-mat-ascii.cc.
References error(), error_state, get_mat_data_input_line(), and octave_read_double().
Referenced by looks_like_mat_ascii_file(), and read_mat_ascii_data().
|
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().
bool looks_like_mat_ascii_file | ( | std::istream & | is, |
const std::string & | filename | ||
) |
Definition at line 414 of file ls-mat-ascii.cc.
References get_lines_and_columns().
Referenced by get_file_format().
std::string read_mat_ascii_data | ( | std::istream & | is, |
const std::string & | filename, | ||
octave_value & | tc | ||
) |
Definition at line 232 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 364 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().