annotate liboctave/operators/vx-ops @ 21247:7be239ae42c8

merge sparse-mk-ops.awk and mk-ops.awk scripts * mx-ops.awk: Merge with sparse-mk-ops.awk. Generate a single output file at a time and always write to stdout. * sparse-mk-ops.awk: Delete. * liboctave/module.mk, liboctave/operators/module.mk: Adapt rules. * liboctave/operators/config-ops.sh: Update for modified mk-ops.awk script. * mx-ops, smx-ops, vx-ops: Improve comments.
author John W. Eaton <jwe@octave.org>
date Thu, 11 Feb 2016 02:36:54 -0500
parents 4197fc428c7d
children bac0d6f07a3e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
19697
4197fc428c7d maint: Update copyright notices for 2015.
John W. Eaton <jwe@octave.org>
parents: 19593
diff changeset
1 # Copyright (C) 2003-2015 John W. Eaton
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
2 #
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
3 # This file is part of Octave.
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
4 #
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
5 # Octave is free software; you can redistribute it and/or modify it
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
6 # under the terms of the GNU General Public License as published by the
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
7 # Free Software Foundation; either version 3 of the License, or (at
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
8 # your option) any later version.
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
9 #
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
10 # Octave is distributed in the hope that it will be useful, but WITHOUT
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
11 # ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
12 # FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
13 # for more details.
19593
446c46af4b42 strip trailing whitespace from most source files
John W. Eaton <jwe@octave.org>
parents: 17744
diff changeset
14 #
7019
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
15 # You should have received a copy of the GNU General Public License
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
16 # along with Octave; see the file COPYING. If not, see
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
17 # <http://www.gnu.org/licenses/>.
4270ded9ddc6 [project @ 2007-10-13 01:42:20 by jwe]
jwe
parents: 5030
diff changeset
18
15414
494f9bac8862 build: Rename autogen.sh script to bootstrap to conform to GNU guidelines.
Rik <rik@octave.org>
parents: 15271
diff changeset
19 # NOTE: if this file changes, you must run bootstrap and configure to
9794
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
20 # rebuild the source file lists for Make.
0d4613a736e9 convert build system to use automake and libtool
John W. Eaton <jwe@octave.org>
parents: 8920
diff changeset
21
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
22 # types
21247
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
23 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
24 # key typename object-type header fwd-decl-ok scalar-zero
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
25 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
26 # object-type is one of
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
27 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
28 # S: scalar
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
29 # V: vector
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
30 #
5030
160365410ad4 [project @ 2004-09-24 03:22:23 by jwe]
jwe
parents: 4544
diff changeset
31 ccv ComplexColumnVector V CColVector.h YES 0.0
160365410ad4 [project @ 2004-09-24 03:22:23 by jwe]
jwe
parents: 4544
diff changeset
32 crv ComplexRowVector V CRowVector.h YES 0.0
160365410ad4 [project @ 2004-09-24 03:22:23 by jwe]
jwe
parents: 4544
diff changeset
33 cs Complex S oct-cmplx.h NO 0.0
160365410ad4 [project @ 2004-09-24 03:22:23 by jwe]
jwe
parents: 4544
diff changeset
34 cv ColumnVector V dColVector.h YES 0.0
160365410ad4 [project @ 2004-09-24 03:22:23 by jwe]
jwe
parents: 4544
diff changeset
35 rv RowVector V dRowVector.h YES 0.0
160365410ad4 [project @ 2004-09-24 03:22:23 by jwe]
jwe
parents: 4544
diff changeset
36 s double S NONE NO 0.0
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
37 fccv FloatComplexColumnVector V fCColVector.h YES 0.0
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
38 fcrv FloatComplexRowVector V fCRowVector.h YES 0.0
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
39 fcs FloatComplex S oct-cmplx.h NO 0.0
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
40 fcv FloatColumnVector V fColVector.h YES 0.0
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
41 frv FloatRowVector V fRowVector.h YES 0.0
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
42 fs float S NONE NO 0.0
21247
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
43 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
44 # vector operators
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
45 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
46 # result_t lhs_t rhs_t op-type
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
47 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
48 # op-type is one of
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
49 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
50 # B: binary ops, + - * /
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
51 # C: comparison ops, < <= == != >= >
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
52 # E: == != (Only one of C or E can be used!!)
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
53 # L: logical ops, & |
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
54 #
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
55 # though we are currently defining only binary ops for vectors.
7be239ae42c8 merge sparse-mk-ops.awk and mk-ops.awk scripts
John W. Eaton <jwe@octave.org>
parents: 19697
diff changeset
56 #
4544
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
57 ccv ccv cv B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
58 ccv ccv s B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
59 crv crv rv B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
60 crv crv s B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
61 ccv cs cv B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
62 crv cs rv B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
63 ccv cv ccv B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
64 ccv cv cs B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
65 crv rv crv B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
66 crv rv cs B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
67 ccv s ccv B
74c92e375b54 [project @ 2003-10-23 23:48:29 by jwe]
jwe
parents:
diff changeset
68 crv s crv B
7789
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
69 fccv fccv fcv B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
70 fccv fccv fs B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
71 fcrv fcrv frv B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
72 fcrv fcrv fs B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
73 fccv fcs fcv B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
74 fcrv fcs frv B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
75 fccv fcv fccv B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
76 fccv fcv fcs B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
77 fcrv frv fcrv B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
78 fcrv frv fcs B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
79 fccv fs fccv B
82be108cc558 First attempt at single precision tyeps
David Bateman <dbateman@free.fr>
parents: 7019
diff changeset
80 fcrv fs fcrv B