annotate liboctave/numeric/oct-norm.h @ 30508:6f07492c9c20 stable

Provide header file with forward declarations of matrix types (bug #59820). * liboctave/array/mx-fwd.h: New file. * liboctave/array/module.mk: Add new file to build system. * other files in liboctave: Include mx-fwd.h instead of forward declaring matrix types.
author Markus Mützel <markus.muetzel@gmx.de>
date Mon, 06 Dec 2021 19:27:28 +0100
parents 4c88a452519c
children 796f54d4ddbf
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
1 ////////////////////////////////////////////////////////////////////////
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
2 //
29358
0a5b15007766 update Octave Project Developers copyright for the new year
John W. Eaton <jwe@octave.org>
parents: 27985
diff changeset
3 // Copyright (C) 2008-2021 The Octave Project Developers
27923
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
4 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
5 // See the file COPYRIGHT.md in the top-level directory of this
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
6 // distribution or <https://octave.org/copyright/>.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
7 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
8 // This file is part of Octave.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
9 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
10 // Octave is free software: you can redistribute it and/or modify it
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
11 // under the terms of the GNU General Public License as published by
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
12 // the Free Software Foundation, either version 3 of the License, or
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
13 // (at your option) any later version.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
14 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
15 // Octave is distributed in the hope that it will be useful, but
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
16 // WITHOUT ANY WARRANTY; without even the implied warranty of
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
17 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
18 // GNU General Public License for more details.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
19 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
20 // You should have received a copy of the GNU General Public License
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
21 // along with Octave; see the file COPYING. If not, see
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
22 // <https://www.gnu.org/licenses/>.
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
23 //
bd51beb6205e update formatting of copyright notices
John W. Eaton <jwe@octave.org>
parents: 27919
diff changeset
24 ////////////////////////////////////////////////////////////////////////
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
25
20791
f7084eae3318 maint: Use Octave coding conventions for #if statements.
Rik <rik@octave.org>
parents: 19697
diff changeset
26 #if ! defined (octave_oct_norm_h)
17822
ebb3ef964372 maint: Use common #define syntax "octave_filename_h" in h_files.
Rik <rik@octave.org>
parents: 17744
diff changeset
27 #define octave_oct_norm_h 1
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
28
21244
1473547f50f5 include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents: 20791
diff changeset
29 #include "octave-config.h"
1473547f50f5 include octave-config.h in public header files
John W. Eaton <jwe@octave.org>
parents: 20791
diff changeset
30
30508
6f07492c9c20 Provide header file with forward declarations of matrix types (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29954
diff changeset
31 #include "mx-fwd.h"
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
32
30508
6f07492c9c20 Provide header file with forward declarations of matrix types (bug #59820).
Markus Mützel <markus.muetzel@gmx.de>
parents: 29954
diff changeset
33 #include "oct-cmplx.h"
29873
1420d471e942 oct-norm.h: Eliminate macros.
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
34
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
35 // The remaining includes can be removed when the deprecated functions
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
36 // at the end of this file are removed.
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
37
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
38 #include "dColVector.h"
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
39 #include "dRowVector.h"
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
40 #include "fColVector.h"
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
41 #include "fRowVector.h"
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
42
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
43 namespace octave
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
44 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
45 extern OCTAVE_API double xnorm (const ColumnVector&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
46 extern OCTAVE_API double xnorm (const RowVector&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
47 extern OCTAVE_API double xnorm (const Matrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
48 extern OCTAVE_API double xfrobnorm (const Matrix&);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
49
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
50 extern OCTAVE_API double xnorm (const ComplexColumnVector&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
51 extern OCTAVE_API double xnorm (const ComplexRowVector&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
52 extern OCTAVE_API double xnorm (const ComplexMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
53 extern OCTAVE_API double xfrobnorm (const ComplexMatrix&);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
54
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
55 extern OCTAVE_API float xnorm (const FloatColumnVector&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
56 extern OCTAVE_API float xnorm (const FloatRowVector&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
57 extern OCTAVE_API float xnorm (const FloatMatrix&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
58 extern OCTAVE_API float xfrobnorm (const FloatMatrix&);
29873
1420d471e942 oct-norm.h: Eliminate macros.
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
59
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
60 extern OCTAVE_API float xnorm (const FloatComplexColumnVector&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
61 extern OCTAVE_API float xnorm (const FloatComplexRowVector&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
62 extern OCTAVE_API float xnorm (const FloatComplexMatrix&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
63 extern OCTAVE_API float xfrobnorm (const FloatComplexMatrix&);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
64
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
65 extern OCTAVE_API double xnorm (const SparseMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
66 extern OCTAVE_API double xfrobnorm (const SparseMatrix&);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
67
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
68 extern OCTAVE_API double xnorm (const SparseComplexMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
69 extern OCTAVE_API double xfrobnorm (const SparseComplexMatrix&);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
70
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
71 extern OCTAVE_API RowVector xcolnorms (const Matrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
72 extern OCTAVE_API ColumnVector xrownorms (const Matrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
73
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
74 extern OCTAVE_API RowVector xcolnorms (const ComplexMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
75 extern OCTAVE_API ColumnVector xrownorms (const ComplexMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
76
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
77 extern OCTAVE_API FloatRowVector xcolnorms (const FloatMatrix&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
78 extern OCTAVE_API FloatColumnVector xrownorms (const FloatMatrix&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
79
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
80 extern OCTAVE_API FloatRowVector xcolnorms (const FloatComplexMatrix&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
81 extern OCTAVE_API FloatColumnVector xrownorms (const FloatComplexMatrix&, float p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
82
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
83 extern OCTAVE_API RowVector xcolnorms (const SparseMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
84 extern OCTAVE_API ColumnVector xrownorms (const SparseMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
85
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
86 extern OCTAVE_API RowVector xcolnorms (const SparseComplexMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
87 extern OCTAVE_API ColumnVector xrownorms (const SparseComplexMatrix&, double p = 2);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
88 }
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
89
29954
4c88a452519c rename OCTAVE_USE_DEPRECATED_FUNCTIONS macro and attempt to make it work
John W. Eaton <jwe@octave.org>
parents: 29874
diff changeset
90 #if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
91 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
92 inline double xnorm (const ColumnVector& v, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
93 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
94 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
95 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
96
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
97 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
98 inline double xnorm (const RowVector& v, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
99 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
100 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
101 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
102
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
103 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
104 inline double xnorm (const Matrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
105 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
106 return octave::xnorm (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
107 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
108
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
109 OCTAVE_DEPRECATED (7, "use 'octave::xfrobnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
110 inline double xfrobnorm (const Matrix& m)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
111 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
112 return octave::xfrobnorm (m);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
113 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
114
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
115 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
116 inline double xnorm (const ComplexColumnVector& v, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
117 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
118 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
119 }
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
120
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
121 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
122 inline double xnorm (const ComplexRowVector& v, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
123 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
124 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
125 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
126
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
127 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
128 inline double xnorm (const ComplexMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
129 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
130 return octave::xnorm (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
131 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
132
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
133 OCTAVE_DEPRECATED (7, "use 'octave::xfrobnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
134 inline double xfrobnorm (const ComplexMatrix& m)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
135 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
136 return octave::xfrobnorm (m);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
137 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
138
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
139 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
140 inline float xnorm (const FloatColumnVector& v, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
141 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
142 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
143 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
144
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
145 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
146 inline float xnorm (const FloatRowVector& v, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
147 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
148 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
149 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
150
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
151 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
152 inline float xnorm (const FloatMatrix& m, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
153 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
154 return octave::xnorm (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
155 }
29873
1420d471e942 oct-norm.h: Eliminate macros.
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
156
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
157 OCTAVE_DEPRECATED (7, "use 'octave::xfrobnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
158 inline float xfrobnorm (const FloatMatrix& m)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
159 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
160 return octave::xfrobnorm (m);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
161 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
162
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
163 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
164 inline float xnorm (const FloatComplexColumnVector& v, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
165 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
166 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
167 }
29873
1420d471e942 oct-norm.h: Eliminate macros.
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
168
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
169 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
170 inline float xnorm (const FloatComplexRowVector& v, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
171 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
172 return octave::xnorm (v, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
173 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
174
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
175 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
176 inline float xnorm (const FloatComplexMatrix& m, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
177 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
178 return octave::xnorm (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
179 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
180
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
181 OCTAVE_DEPRECATED (7, "use 'octave::xfrobnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
182 inline float xfrobnorm (const FloatComplexMatrix& m)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
183 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
184 return octave::xfrobnorm (m);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
185 }
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
186
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
187 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
188 inline double xnorm (const SparseMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
189 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
190 return octave::xnorm (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
191 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
192
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
193 OCTAVE_DEPRECATED (7, "use 'octave::xfrobnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
194 inline double xfrobnorm (const SparseMatrix& m)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
195 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
196 return octave::xfrobnorm (m);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
197 }
29873
1420d471e942 oct-norm.h: Eliminate macros.
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
198
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
199 OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
200 inline double xnorm (const SparseComplexMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
201 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
202 return octave::xnorm (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
203 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
204
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
205 OCTAVE_DEPRECATED (7, "use 'octave::xfrobnorm' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
206 inline double xfrobnorm (const SparseComplexMatrix& m)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
207 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
208 return octave::xfrobnorm (m);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
209 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
210
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
211 OCTAVE_DEPRECATED (7, "use 'octave::xcolnorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
212 inline RowVector xcolnorms (const Matrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
213 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
214 return octave::xcolnorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
215 }
29873
1420d471e942 oct-norm.h: Eliminate macros.
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
216
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
217 OCTAVE_DEPRECATED (7, "use 'octave::xrownorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
218 inline ColumnVector xrownorms (const Matrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
219 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
220 return octave::xrownorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
221 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
222
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
223 OCTAVE_DEPRECATED (7, "use 'octave::xcolnorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
224 inline RowVector xcolnorms (const ComplexMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
225 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
226 return octave::xcolnorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
227 }
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
228
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
229 OCTAVE_DEPRECATED (7, "use 'octave::xrownorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
230 inline ColumnVector xrownorms (const ComplexMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
231 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
232 return octave::xrownorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
233 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
234
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
235 OCTAVE_DEPRECATED (7, "use 'octave::xcolnorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
236 inline FloatRowVector xcolnorms (const FloatMatrix& m, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
237 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
238 return octave::xcolnorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
239 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
240
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
241 OCTAVE_DEPRECATED (7, "use 'octave::xrownorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
242 inline FloatColumnVector xrownorms (const FloatMatrix& m, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
243 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
244 return octave::xrownorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
245 }
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
246
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
247 OCTAVE_DEPRECATED (7, "use 'octave::xcolnorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
248 inline FloatRowVector xcolnorms (const FloatComplexMatrix& m, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
249 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
250 return octave::xcolnorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
251 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
252
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
253 OCTAVE_DEPRECATED (7, "use 'octave::xrownorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
254 inline FloatColumnVector xrownorms (const FloatComplexMatrix& m, float p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
255 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
256 return octave::xrownorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
257 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
258
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
259 OCTAVE_DEPRECATED (7, "use 'octave::xcolnorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
260 inline RowVector xcolnorms (const SparseMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
261 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
262 return octave::xcolnorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
263 }
29873
1420d471e942 oct-norm.h: Eliminate macros.
John W. Eaton <jwe@octave.org>
parents: 29358
diff changeset
264
29874
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
265 OCTAVE_DEPRECATED (7, "use 'octave::xrownorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
266 inline ColumnVector xrownorms (const SparseMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
267 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
268 return octave::xrownorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
269 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
270
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
271 OCTAVE_DEPRECATED (7, "use 'octave::xcolnorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
272 inline RowVector xcolnorms (const SparseComplexMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
273 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
274 return octave::xcolnorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
275 }
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
276
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
277 OCTAVE_DEPRECATED (7, "use 'octave::xrownorms' instead")
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
278 inline ColumnVector xrownorms (const SparseComplexMatrix& m, double p = 2)
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
279 {
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
280 return octave::xrownorms (m, p);
92662b17ef7e move liboctave xnorm functions inside octave namespace
John W. Eaton <jwe@octave.org>
parents: 29873
diff changeset
281 }
29954
4c88a452519c rename OCTAVE_USE_DEPRECATED_FUNCTIONS macro and attempt to make it work
John W. Eaton <jwe@octave.org>
parents: 29874
diff changeset
282 #endif
8303
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
283
b11c31849b44 improve norm computation capabilities
Jaroslav Hajek <highegg@gmail.com>
parents:
diff changeset
284 #endif