GNU Octave  4.2.1
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
pt-mat.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1996-2017 John W. Eaton
4 
5 This file is part of Octave.
6 
7 Octave is free software; you can redistribute it and/or modify it
8 under the terms of the GNU General Public License as published by the
9 Free Software Foundation; either version 3 of the License, or (at your
10 option) any later version.
11 
12 Octave is distributed in the hope that it will be useful, but WITHOUT
13 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
14 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
15 for more details.
16 
17 You should have received a copy of the GNU General Public License
18 along with Octave; see the file COPYING. If not, see
19 <http://www.gnu.org/licenses/>.
20 
21 */
22 
23 #if ! defined (octave_pt_mat_h)
24 #define octave_pt_mat_h 1
25 
26 #include "octave-config.h"
27 
28 #include <iosfwd>
29 
30 class octave_value;
31 class octave_value_list;
32 class tree_argument_list;
33 
34 class tree_walker;
35 
36 #include "base-list.h"
37 #include "pt-array-list.h"
38 #include "pt-exp.h"
39 #include "symtab.h"
40 
41 // General matrices. This allows us to construct matrices from
42 // other matrices, variables, and functions.
43 
44 class
46 {
47 public:
48 
49  tree_matrix (tree_argument_list *row = 0, int l = -1, int c = -1)
50  : tree_array_list (row, l, c)
51  { }
52 
53  ~tree_matrix (void) { }
54 
55  bool is_matrix (void) const { return true; }
56 
57  bool rvalue_ok (void) const { return true; }
58 
59  octave_value rvalue1 (int nargout = 1);
60 
61  octave_value_list rvalue (int nargout);
62 
65 
66  void accept (tree_walker& tw);
67 
68 private:
69 
70  // No copying!
71 
72  tree_matrix (const tree_matrix&);
73 
75 };
76 
77 // The character to fill with when creating string arrays.
78 extern char Vstring_fill_char;
79 
80 extern std::string
81 get_concat_class (const std::string& c1, const std::string& c2);
82 
83 extern void
84 maybe_warn_string_concat (bool all_dq_strings_p, bool all_sq_strings_p);
85 
86 extern std::string
87 get_concat_class (const std::string& c1, const std::string& c2);
88 
89 extern void
90 maybe_warn_string_concat (bool all_dq_strings_p, bool all_sq_strings_p);
91 
92 #endif
tree_matrix(tree_argument_list *row=0, int l=-1, int c=-1)
Definition: pt-mat.h:49
std::string get_concat_class(const std::string &c1, const std::string &c2)
Definition: pt-mat.cc:205
OCTAVE_EXPORT octave_value_list return the number of command line arguments passed to Octave If called with the optional argument the function xample nargout(@histc)
Definition: ov-usr-fcn.cc:935
static llvm::LLVMContext & context
Definition: jit-typeinfo.cc:76
char Vstring_fill_char
Definition: pt-mat.cc:53
bool rvalue_ok(void) const
Definition: pt-mat.h:57
void maybe_warn_string_concat(bool all_dq_strings_p, bool all_sq_strings_p)
Definition: pt-mat.cc:664
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
Definition: lu.cc:138
~tree_matrix(void)
Definition: pt-mat.h:53
bool is_matrix(void) const
Definition: pt-mat.h:55
If this string is the system will ring the terminal sometimes it is useful to be able to print the original representation of the string
Definition: utils.cc:854
tree_walker & operator=(const tree_walker &)
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every row
Definition: str2double.cc:342