#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 @code{\" \"} (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 \"local\" option, the variable is\n\ changed locally for the function and any subroutines it calls. The original\n\ 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, const dim_vector &dv, tm_const &tmp) |
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 (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 1390 of file pt-mat.cc.
References SET_INTERNAL_VARIABLE.
static octave_value do_class_concat | ( | tm_const & | tmc | ) | [static] |
Definition at line 926 of file pt-mat.cc.
References tm_row_const::begin(), octave_base_list< elt_type >::begin(), do_class_concat(), tm_row_const::end(), octave_base_list< elt_type >::end(), error_state, tm_row_const::length(), octave_base_list< elt_type >::length(), and octave_value().
static octave_value do_single_type_concat | ( | const dim_vector & | dv, | |
tm_const & | tmp | |||
) | [static] |
octave_value do_single_type_concat< octave_map > | ( | const dim_vector & | dv, | |
tm_const & | tmp | |||
) |
Referenced by tree_matrix::rvalue1().
static void eval_error | ( | const char * | msg, | |
const dim_vector & | x, | |||
const dim_vector & | y | |||
) | [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_const::init(), and tm_row_const::tm_row_const_rep::init().
std::string get_concat_class | ( | const std::string & | c1, | |
const std::string & | c2 | |||
) |
Definition at line 202 of file pt-mat.cc.
Referenced by tm_row_const::tm_row_const_rep::do_init_element(), and tm_const::init().
Definition at line 714 of file pt-mat.cc.
References warning_with_id().
Referenced by tree_matrix::rvalue1().
static void single_type_concat | ( | Array< T > & | result, | |
const dim_vector & | dv, | |||
tm_const & | tmp | |||
) | [static] |
Definition at line 767 of file pt-mat.cc.
References tm_row_const::all_1x1_p(), dim_vector::any_zero(), tm_row_const::begin(), Array< T >::cat(), Array< T >::clear(), tm_row_const::end(), error_state, octave_base_list< elt_type >::front(), tm_row_const::length(), octave_base_list< elt_type >::length(), Array< T >::numel(), and OCTAVE_LOCAL_BUFFER.
static void single_type_concat | ( | Array< T > & | result, | |
tm_const & | tmp | |||
) | [static] |
Definition at line 723 of file pt-mat.cc.
References dim_vector::any_zero(), tm_row_const::begin(), octave_base_list< elt_type >::begin(), tm_row_const::dims(), tm_row_const::end(), octave_base_list< elt_type >::end(), error_state, Array< T >::insert(), and tm_row_const::rows().
static void single_type_concat | ( | Sparse< T > & | result, | |
const dim_vector & | dv, | |||
tm_const & | tmp | |||
) | [static] |
Definition at line 821 of file pt-mat.cc.
References dim_vector::any_zero(), tm_row_const::begin(), octave_base_list< elt_type >::begin(), Sparse< T >::cat(), tm_row_const::end(), octave_base_list< elt_type >::end(), error_state, tm_row_const::length(), octave_base_list< elt_type >::length(), and OCTAVE_LOCAL_BUFFER.
static void single_type_concat | ( | octave_map & | result, | |
const dim_vector & | dv, | |||
tm_const & | tmp | |||
) | [static] |
Definition at line 862 of file pt-mat.cc.
References dim_vector::any_zero(), tm_row_const::begin(), octave_base_list< elt_type >::begin(), octave_map::cat(), tm_row_const::end(), octave_base_list< elt_type >::end(), error_state, tm_row_const::length(), octave_base_list< elt_type >::length(), and OCTAVE_LOCAL_BUFFER.
char Vstring_fill_char = ' ' |