Mercurial > hg > octave-shane
changeset 3937:e1a2648d9150
[project @ 2002-05-16 15:12:10 by jwe]
author | jwe |
---|---|
date | Thu, 16 May 2002 15:12:32 +0000 |
parents | f1500121e2e9 |
children | 028eb74026bc |
files | src/OPERATORS/op-bm-b.cc src/OPERATORS/op-cell.cc src/TEMPLATE-INST/Map-oct-obj.cc |
diffstat | 3 files changed, 149 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
new file mode 100644 --- /dev/null +++ b/src/OPERATORS/op-bm-b.cc @@ -0,0 +1,54 @@ +/* + +Copyright (C) 2001 Cai Jianming + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +#if defined (__GNUG__) +#pragma implementation +#endif + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "gripes.h" +#include "ov.h" +#include "ov-bool.h" +#include "ov-bool-mat.h" +#include "ov-typeinfo.h" +#include "ops.h" +#include "xdiv.h" +#include "xpow.h" + +// bool matrix by bool ops. + +DEFASSIGNOP_FN (assign, bool_matrix, bool, assign) + +void +install_bm_b_ops (void) +{ + INSTALL_ASSIGNOP (op_asn_eq, octave_bool_matrix, octave_bool, assign); +} + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; End: *** +*/
new file mode 100644 --- /dev/null +++ b/src/OPERATORS/op-cell.cc @@ -0,0 +1,53 @@ +/* + +Copyright (C) 1996, 1997 John W. Eaton + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +#if defined (__GNUG__) +#pragma implementation +#endif + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "gripes.h" +#include "ov.h" +#include "ov-cell.h" +#include "ov-scalar.h" +#include "ov-re-mat.h" +#include "ov-typeinfo.h" +#include "ops.h" + +// cell ops. + +DEFASSIGNANYOP_FN (assign, cell, assign); + +void +install_cell_ops (void) +{ + INSTALL_ASSIGNANYOP (op_asn_eq, octave_cell, assign); +} + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; End: *** +*/
new file mode 100644 --- /dev/null +++ b/src/TEMPLATE-INST/Map-oct-obj.cc @@ -0,0 +1,42 @@ +/* + +Copyright (C) 2002 John W. Eaton + +This file is part of Octave. + +Octave is free software; you can redistribute it and/or modify it +under the terms of the GNU General Public License as published by the +Free Software Foundation; either version 2, or (at your option) any +later version. + +Octave is distributed in the hope that it will be useful, but WITHOUT +ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or +FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License +for more details. + +You should have received a copy of the GNU General Public License +along with Octave; see the file COPYING. If not, write to the Free +Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. + +*/ + +// Instantiate Maps of octave_value_lists. + +#ifdef HAVE_CONFIG_H +#include <config.h> +#endif + +#include "Map.h" +#include "Map.cc" + +#include "oct-obj.h" + +template class Map<octave_value_list>; +template class CHNode<octave_value_list>; +template class CHMap<octave_value_list>; + +/* +;;; Local Variables: *** +;;; mode: C++ *** +;;; End: *** +*/