Mercurial > octave-nkf
comparison src/ov-base.cc @ 10544:9961fc022d9d
fix assignment to non-existing variables and octave_value::assign
author | Jaroslav Hajek <highegg@gmail.com> |
---|---|
date | Fri, 23 Apr 2010 11:23:43 +0200 |
parents | 4d1fc073fbb7 |
children | 2f0fbfa4dd23 |
comparison
equal
deleted
inserted
replaced
10543:f41c6634d5af | 10544:9961fc022d9d |
---|---|
112 "<unknown type>", "unknown"); | 112 "<unknown type>", "unknown"); |
113 | 113 |
114 // TRUE means to perform automatic sparse to real mutation if there | 114 // TRUE means to perform automatic sparse to real mutation if there |
115 // is memory to be saved | 115 // is memory to be saved |
116 bool Vsparse_auto_mutate = false; | 116 bool Vsparse_auto_mutate = false; |
117 | |
118 octave_base_value * | |
119 octave_base_value::empty_clone (void) const | |
120 { | |
121 return resize (dim_vector ()).clone (); | |
122 } | |
117 | 123 |
118 octave_value | 124 octave_value |
119 octave_base_value::squeeze (void) const | 125 octave_base_value::squeeze (void) const |
120 { | 126 { |
121 std::string nm = type_name (); | 127 std::string nm = type_name (); |