GNU Octave 10.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 
Loading...
Searching...
No Matches
op-str-m.cc
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2003-2025 The Octave Project Developers
4//
5// See the file COPYRIGHT.md in the top-level directory of this
6// distribution or <https://octave.org/copyright/>.
7//
8// This file is part of Octave.
9//
10// Octave is free software: you can redistribute it and/or modify it
11// under the terms of the GNU General Public License as published by
12// the Free Software Foundation, either version 3 of the License, or
13// (at your option) any later version.
14//
15// Octave is distributed in the hope that it will be useful, but
16// WITHOUT ANY WARRANTY; without even the implied warranty of
17// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18// GNU General Public License for more details.
19//
20// You should have received a copy of the GNU General Public License
21// along with Octave; see the file COPYING. If not, see
22// <https://www.gnu.org/licenses/>.
23//
24////////////////////////////////////////////////////////////////////////
25
26#if defined (HAVE_CONFIG_H)
27# include "config.h"
28#endif
29
30#include "errwarn.h"
31#include "ovl.h"
32#include "ov.h"
33#include "ov-re-mat.h"
34#include "ov-str-mat.h"
35#include "ov-typeinfo.h"
36#include "ops.h"
37
39
40DEFASSIGNOP (assign, char_matrix_str, octave_matrix)
41{
44
45 octave_value tmp
46 = v2.convert_to_str_internal (false, false,
47 a1.is_sq_string () ? '\'' : '"');
48
49 v1.assign (idx, tmp.char_array_value ());
50
51 return octave_value ();
52}
53
54DEFNDCHARCATOP_FN (str_m, char_matrix_str, matrix, concat)
55
56DEFNDCHARCATOP_FN (m_str, matrix, char_matrix_str, concat)
57
58void
72
73OCTAVE_END_NAMESPACE(octave)
ComplexNDArray concat(NDArray &ra, ComplexNDArray &rb, const Array< octave_idx_type > &ra_idx)
Definition CNDArray.cc:418
octave_value convert_to_str_internal(bool, bool, char type) const
Definition ov-ch-mat.h:149
charNDArray char_array_value(bool frc_str_conv=false) const
Definition ov.h:906
octave_value & assign(assign_op op, const std::string &type, const std::list< octave_value_list > &idx, const octave_value &rhs)
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
const octave_base_value & a2
const octave_char_matrix & v2
void install_str_m_ops(octave::type_info &ti)
Definition op-str-m.cc:59
#define DEFASSIGNOP(name, t1, t2)
Definition ops.h:96
#define OCTAVE_CAST_BASE_VALUE(T, T_VAL, BASE_VAL)
Definition ops.h:52
#define INSTALL_CATOP_TI(ti, t1, t2, f)
Definition ops.h:75
#define INSTALL_ASSIGNOP_TI(ti, op, t1, t2, f)
Definition ops.h:79
#define DEFNDCHARCATOP_FN(name, t1, t2, f)
Definition ops.h:379