GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Functions | Variables
pt-mat.cc File Reference
#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"
Include dependency graph for pt-mat.cc:

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 = ' '

Function Documentation

DEFUN ( string_fill_char  ,
args  ,
nargout   
)

Definition at line 1371 of file pt-mat.cc.

References SET_INTERNAL_VARIABLE.

static octave_value do_class_concat ( tm_const tmc)
static
template<class TYPE >
static octave_value do_single_type_concat ( const dim_vector dv,
tm_const tmp 
)
static

Definition at line 860 of file pt-mat.cc.

template<>
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 void eval_error ( const char msg,
const dim_vector x,
const dim_vector y 
)
static
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 
)

Definition at line 674 of file pt-mat.cc.

References warning_with_id().

Referenced by do_cat(), and tree_matrix::rvalue1().

template<class TYPE , class T >
static void single_type_concat ( Array< T > &  result,
tm_const tmp 
)
static
template<class TYPE , class T >
static void single_type_concat ( Array< T > &  result,
const dim_vector dv,
tm_const tmp 
)
static
template<class TYPE , class T >
static void single_type_concat ( Sparse< T > &  result,
const dim_vector dv,
tm_const tmp 
)
static
template<class MAP >
static void single_type_concat ( octave_map result,
const dim_vector dv,
tm_const tmp 
)
static

Variable Documentation

char Vstring_fill_char = ' '

Definition at line 50 of file pt-mat.cc.