#include <string>
#include <cctype>
#include <sstream>
#include <algorithm>
#include "lo-ieee.h"
#include "Cell.h"
#include "ov.h"
#include "defun.h"
#include "errwarn.h"
#include "utils.h"
Go to the source code of this file.
Typedefs | |
using | args.length = 1) print_usage() |
Functions | |
static std::istringstream & | extract_num (std::istringstream &is, double &num, bool &imag, bool &have_sign) |
OCTAVE_EXPORT octave_value_list | Fstr2double (const octave_value_list &args, int) a and/or b are of the form ospell |
if (args(0).is_string()) | |
else | if (args(0).iscell()) |
static bool | is_imag_unit (int c) |
static void | set_component (Complex &c, double num, bool imag) |
static double | single_num (std::istringstream &is) |
static Complex | str2double1 (const std::string &str_arg) |
Variables | |
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every and a double or complex array is returned Empty rows in | ar {s} are deleted and not returned in the numeric array. For cell arrays each character string element is processed and a double or complex array of the same dimensions as ar{s} is returned. For unconvertible scalar or character string input ode{str2double} returns a NaN Similarly |
where the brackets indicate optional arguments and | code {'d'} indicates zero or more digits. The special input values ode{Inf} |
where the brackets indicate optional arguments and and character | matrix |
where the brackets indicate optional arguments and | ode {NaN} |
octave_value | retval = Matrix (1, 1, octave::numeric_limits<double>::NaN ()) |
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every | row |
using args.length = 1) print_usage () |
Definition at line 345 of file str2double.cc.
|
static |
Definition at line 102 of file str2double.cc.
References c, imag(), is, is_imag_unit(), and single_num().
Referenced by str2double1().
OCTAVE_EXPORT octave_value_list Fstr2double | ( | const octave_value_list & | args, |
int | |||
) |
Definition at line 342 of file str2double.cc.
if | ( | args(0).is_string() | ) |
Definition at line 349 of file str2double.cc.
References Array< T >::map(), NaN(), retval, and str2double1().
else if | ( | args(0).iscell() | ) |
Definition at line 362 of file str2double.cc.
References Array< T >::dims(), i, NaN(), Array< T >::numel(), retval, str2double1(), and octave_value::string_value().
|
inlinestatic |
Definition at line 242 of file str2double.cc.
Referenced by str2double1().
|
static |
Definition at line 46 of file str2double.cc.
References c, Inf, is, NaN(), and octave_NA.
Referenced by extract_num().
|
static |
Definition at line 263 of file str2double.cc.
References extract_num(), is, NaN(), s2, set_component(), str, string, and val.
Referenced by if().
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every and a double or complex array is returned Empty rows in ar {s} are deleted and not returned in the numeric array. For cell arrays each character string element is processed and a double or complex array of the same dimensions as ar{s} is returned. For unconvertible scalar or character string input ode{str2double} returns a NaN Similarly |
Definition at line 342 of file str2double.cc.
where the brackets indicate optional arguments and code {'d'} indicates zero or more digits. The special input values ode{Inf} |
Definition at line 342 of file str2double.cc.
Definition at line 342 of file str2double.cc.
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every and a double or complex array is returned Empty rows in for character array input ode {NaN} |
Definition at line 342 of file str2double.cc.
Definition at line 347 of file str2double.cc.
Referenced by if().
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every row |
Definition at line 342 of file str2double.cc.
Referenced by octave::variable_editor_model::clear_content(), coletree(), default_image_cdata(), default_surface_xdata(), default_surface_ydata(), default_surface_zdata(), octave::do_class_concat(), octave::textscan::do_scan(), octave::base_ve_model::edit_display(), octave::numeric_model::edit_display(), octave::cell_model::edit_display(), octave::scalar_struct_model::edit_display(), octave::vector_struct_model::edit_display(), octave::struct_model::edit_display(), octave::base_ve_model::index_ok(), octave::tm_row_const::tm_row_const_rep::init(), octave::variable_editor_model::insertRows(), string_vector::list_in_columns(), octave_print_internal(), octave::variable_editor_view::pasteTableClipboard(), read_cell_spec(), octave::textscan::read_format_once(), read_images(), read_indexed_images(), settings_dialog::read_terminal_colors(), settings_dialog::read_varedit_colors(), settings_dialog::read_workspace_colors(), octave::variable_editor_model::removeRows(), octave::cell_model::requires_sub_editor(), octave::scalar_struct_model::requires_sub_editor(), octave::vector_struct_model::requires_sub_editor(), octave::struct_model::requires_sub_editor(), octave::textscan::scan_one(), graphics_object::set(), octave::single_type_concat(), octave::scalar_struct_model::subscript_expression(), octave::struct_model::subscript_expression(), octave::tm_row_const::tm_row_const_rep::tm_row_const_rep(), octave::tree_array_list::tree_array_list(), octave::cell_model::value_at(), octave::scalar_struct_model::value_at(), octave::vector_struct_model::value_at(), octave::struct_model::value_at(), octave::tree_evaluator::visit_cell(), and octave::tree_evaluator::visit_matrix().