GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <iostream>
#include "quit.h"
#include "data.h"
#include "defun.h"
#include "error.h"
#include "oct-obj.h"
#include "pt-arg-list.h"
#include "pt-bp.h"
#include "pt-exp.h"
#include "pt-mat.h"
#include "pt-walk.h"
#include "utils.h"
#include "ov.h"
#include "variables.h"
#include "ov-cx-mat.h"
#include "ov-flt-cx-mat.h"
#include "ov-re-sparse.h"
#include "ov-cx-sparse.h"
Go to the source code of this file.
Classes | |
class | tm_const |
class | tm_row_const |
class | tm_row_const::tm_row_const_rep |
Functions | |
DEFUN (string_fill_char, args, nargout,"-*- texinfo -*-\n\ @deftypefn {Built-in Function} {@var{val} =} string_fill_char ()\n\ @deftypefnx {Built-in Function} {@var{old_val} =} string_fill_char (@var{new_val})\n\ @deftypefnx {Built-in Function} {} string_fill_char (@var{new_val}, \"local\")\n\ Query or set the internal variable used to pad all rows of a character\n\ matrix to the same length. It must be a single character. The default\n\ value is @qcode{\" \"} (a single space). For example:\n\ \n\ @example\n\ @group\n\ string_fill_char (\"X\");\n\ [ \"these\"; \"are\"; \"strings\" ]\n\ @result{} \"theseXX\"\n\ \"areXXXX\"\n\ \"strings\"\n\ @end group\n\ @end example\n\ \n\ When called from inside a function with the @qcode{\"local\"} option, the\n\ variable is changed locally for the function and any subroutines it calls. \n\ The original variable value is restored when exiting the function.\n\ @end deftypefn") | |
static octave_value | do_class_concat (tm_const &tmc) |
template<class TYPE > | |
static octave_value | do_single_type_concat (const dim_vector &dv, tm_const &tmp) |
template<> | |
octave_value | do_single_type_concat< octave_map > (const dim_vector &dv, tm_const &tmp) |
static void | eval_error (const char *msg, const dim_vector &x, const dim_vector &y) |
std::string | get_concat_class (const std::string &c1, const std::string &c2) |
void | maybe_warn_string_concat (bool all_dq_strings_p, bool all_sq_strings_p) |
template<class TYPE , class T > | |
static void | single_type_concat (Array< T > &result, tm_const &tmp) |
template<class TYPE , class T > | |
static void | single_type_concat (Array< T > &result, const dim_vector &dv, tm_const &tmp) |
template<class TYPE , class T > | |
static void | single_type_concat (Sparse< T > &result, const dim_vector &dv, tm_const &tmp) |
template<class MAP > | |
static void | single_type_concat (octave_map &result, const dim_vector &dv, tm_const &tmp) |
Variables | |
char | Vstring_fill_char = ' ' |
DEFUN | ( | string_fill_char | , |
args | , | ||
nargout | |||
) |
Definition at line 1371 of file pt-mat.cc.
References SET_INTERNAL_VARIABLE.
|
static |
Definition at line 886 of file pt-mat.cc.
References octave_base_list< elt_type >::begin(), tm_row_const::begin(), do_class_concat(), octave_base_list< elt_type >::end(), tm_row_const::end(), error_state, octave_base_list< elt_type >::length(), tm_row_const::length(), octave_value(), and tm_row_const::rows().
|
static |
octave_value do_single_type_concat< octave_map > | ( | const dim_vector & | dv, |
tm_const & | tmp | ||
) |
Definition at line 872 of file pt-mat.cc.
Referenced by tree_matrix::rvalue1().
|
static |
Definition at line 275 of file pt-mat.cc.
References error(), and dim_vector::str().
Referenced by tm_row_const::tm_row_const_rep::cellify(), tm_row_const::tm_row_const_rep::init(), and tm_const::init().
std::string get_concat_class | ( | const std::string & | c1, |
const std::string & | c2 | ||
) |
Definition at line 202 of file pt-mat.cc.
References c1, and octave_base_value::static_class_name().
Referenced by do_cat(), tm_row_const::tm_row_const_rep::do_init_element(), and tm_const::init().
Definition at line 674 of file pt-mat.cc.
References warning_with_id().
Referenced by do_cat(), and tree_matrix::rvalue1().
|
static |
Definition at line 683 of file pt-mat.cc.
References dim_vector::any_zero(), octave_base_list< elt_type >::begin(), tm_row_const::begin(), tm_row_const::dims(), octave_base_list< elt_type >::end(), tm_row_const::end(), error_state, Array< T >::insert(), and tm_row_const::rows().
|
static |
Definition at line 727 of file pt-mat.cc.
References tm_row_const::all_1x1_p(), dim_vector::any_zero(), tm_row_const::begin(), Array< T >::clear(), tm_row_const::end(), error_state, octave_base_list< elt_type >::front(), octave_base_list< elt_type >::length(), tm_row_const::length(), Array< T >::numel(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 781 of file pt-mat.cc.
References dim_vector::any_zero(), octave_base_list< elt_type >::begin(), tm_row_const::begin(), octave_base_list< elt_type >::end(), tm_row_const::end(), error_state, octave_base_list< elt_type >::length(), tm_row_const::length(), and OCTAVE_LOCAL_BUFFER.
|
static |
Definition at line 822 of file pt-mat.cc.
References dim_vector::any_zero(), octave_base_list< elt_type >::begin(), tm_row_const::begin(), octave_map::cat(), octave_base_list< elt_type >::end(), tm_row_const::end(), error_state, octave_base_list< elt_type >::length(), tm_row_const::length(), and OCTAVE_LOCAL_BUFFER.