GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
dlmread.cc File Reference
#include <cctype>
#include <fstream>
#include <limits>
#include "file-ops.h"
#include "lo-ieee.h"
#include "defun.h"
#include "interpreter.h"
#include "oct-stream.h"
#include "error.h"
#include "ovl.h"
#include "utils.h"
Include dependency graph for dlmread.cc:

Go to the source code of this file.

Functions

OCTAVE_EXPORT octave_value_list Fdlmread (octave::interpreter &interp, const octave_value_list &args, int) i.e.
 
static bool parse_range_spec (const octave_value &range_spec, octave_idx_type &rlo, octave_idx_type &clo, octave_idx_type &rup, octave_idx_type &cup)
 
static bool read_cell_spec (std::istream &is, octave_idx_type &row, octave_idx_type &col)
 

Variables

OCTAVE_EXPORT octave_value_list the first data row corresponds to an index of zero The ar {range} parameter specifies exactly which data elements are read. The first form of the parameter is a 4-element vector containing the upper left and lower right corners ode{[ar{R0},ar{C0},ar{R1},ar{C1}]} where the indices are zero-based. Alternatively
 
OCTAVE_EXPORT octave_value_list the first data row corresponds to an index of zero The a spreadsheet style form such as code {"A2..Q15"} or code{"T1:AA5"} can be used. The lowest alphabetical index code{'A'} refers to the first column. The lowest row index is 1. ar{file} should be a filename or a file id given by ode{fopen}. In the latter case
 
static const octave_idx_type idx_max
 
static const double idx_max_dbl = double (idx_max)
 
OCTAVE_EXPORT octave_value_list the first data row corresponds to an index of zero The a spreadsheet style form such as the file is read until end of file is reached The such as text
 

Function Documentation

◆ Fdlmread()

OCTAVE_EXPORT octave_value_list Fdlmread ( octave::interpreter interp,
const octave_value_list args,
int   
)

◆ parse_range_spec()

◆ read_cell_spec()

static bool read_cell_spec ( std::istream &  is,
octave_idx_type row,
octave_idx_type col 
)
static

Definition at line 51 of file dlmread.cc.

References is, row, and stat().

Referenced by parse_range_spec().

Variable Documentation

◆ ar

OCTAVE_EXPORT octave_value_list the first data row corresponds to an index of zero The ar {range} parameter specifies exactly which data elements are read. The first form of the parameter is a 4-element vector containing the upper left and lower right corners ode{[ar{R0},ar{C0},ar{R1},ar{C1}]} where the indices are zero-based. Alternatively

Definition at line 194 of file dlmread.cc.

◆ code

OCTAVE_EXPORT octave_value_list the first data row corresponds to an index of zero The a spreadsheet style form such as the file is read until end of file is reached The code {"A2..Q15"} or code{"T1:AA5"} can be used. The lowest alphabetical index code{'A'} refers to the first column. The lowest row index is 1. ar{file} should be a filename or a file id given by ode{fopen}. In the latter case

Definition at line 194 of file dlmread.cc.

◆ idx_max

const octave_idx_type idx_max
static
Initial value:
=
charNDArray max(char d, const charNDArray &m)
Definition: chNDArray.cc:227

Definition at line 45 of file dlmread.cc.

Referenced by parse_range_spec(), and dim_vector::safe_numel().

◆ idx_max_dbl

const double idx_max_dbl = double (idx_max)
static

Definition at line 48 of file dlmread.cc.

Referenced by parse_range_spec().

◆ text