GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
oct-norm.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 2008-2024 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 (octave_oct_norm_h)
27 #define octave_oct_norm_h 1
28 
29 #include "octave-config.h"
30 
31 #include "mx-fwd.h"
32 
33 #include "oct-cmplx.h"
34 
36 
37 extern OCTAVE_API double xnorm (const ColumnVector&, double p = 2);
38 extern OCTAVE_API double xnorm (const RowVector&, double p = 2);
39 extern OCTAVE_API double xnorm (const Matrix&, double p = 2);
40 extern OCTAVE_API double xfrobnorm (const Matrix&);
41 
42 extern OCTAVE_API double xnorm (const ComplexColumnVector&, double p = 2);
43 extern OCTAVE_API double xnorm (const ComplexRowVector&, double p = 2);
44 extern OCTAVE_API double xnorm (const ComplexMatrix&, double p = 2);
45 extern OCTAVE_API double xfrobnorm (const ComplexMatrix&);
46 
47 extern OCTAVE_API float xnorm (const FloatColumnVector&, float p = 2);
48 extern OCTAVE_API float xnorm (const FloatRowVector&, float p = 2);
49 extern OCTAVE_API float xnorm (const FloatMatrix&, float p = 2);
50 extern OCTAVE_API float xfrobnorm (const FloatMatrix&);
51 
52 extern OCTAVE_API float xnorm (const FloatComplexColumnVector&, float p = 2);
53 extern OCTAVE_API float xnorm (const FloatComplexRowVector&, float p = 2);
54 extern OCTAVE_API float xnorm (const FloatComplexMatrix&, float p = 2);
55 extern OCTAVE_API float xfrobnorm (const FloatComplexMatrix&);
56 
57 extern OCTAVE_API double xnorm (const SparseMatrix&, double p = 2);
58 extern OCTAVE_API double xfrobnorm (const SparseMatrix&);
59 
60 extern OCTAVE_API double xnorm (const SparseComplexMatrix&, double p = 2);
61 extern OCTAVE_API double xfrobnorm (const SparseComplexMatrix&);
62 
63 extern OCTAVE_API RowVector xcolnorms (const Matrix&, double p = 2);
64 extern OCTAVE_API ColumnVector xrownorms (const Matrix&, double p = 2);
65 
66 extern OCTAVE_API RowVector xcolnorms (const ComplexMatrix&, double p = 2);
67 extern OCTAVE_API ColumnVector xrownorms (const ComplexMatrix&, double p = 2);
68 
69 extern OCTAVE_API FloatRowVector xcolnorms (const FloatMatrix&, float p = 2);
70 extern OCTAVE_API FloatColumnVector xrownorms (const FloatMatrix&, float p = 2);
71 
72 extern OCTAVE_API FloatRowVector xcolnorms (const FloatComplexMatrix&, float p = 2);
73 extern OCTAVE_API FloatColumnVector xrownorms (const FloatComplexMatrix&, float p = 2);
74 
75 extern OCTAVE_API RowVector xcolnorms (const SparseMatrix&, double p = 2);
76 extern OCTAVE_API ColumnVector xrownorms (const SparseMatrix&, double p = 2);
77 
78 extern OCTAVE_API RowVector xcolnorms (const SparseComplexMatrix&, double p = 2);
79 extern OCTAVE_API ColumnVector xrownorms (const SparseComplexMatrix&, double p = 2);
80 
81 OCTAVE_END_NAMESPACE(octave)
82 
83 #endif
Definition: dMatrix.h:42
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
#define OCTAVE_API
Definition: main.cc:55
RowVector xcolnorms(const Matrix &, double p=2)
Definition: oct-norm.cc:653
double xnorm(const ColumnVector &, double p=2)
Definition: oct-norm.cc:610
ColumnVector xrownorms(const Matrix &, double p=2)
Definition: oct-norm.cc:653
double xfrobnorm(const Matrix &)
Definition: oct-norm.cc:610