GNU Octave 7.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
xnorm.h
Go to the documentation of this file.
1////////////////////////////////////////////////////////////////////////
2//
3// Copyright (C) 2008-2022 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_xnorm_h)
27#define octave_xnorm_h 1
28
29#include "octave-config.h"
30
31#include "oct-norm.h"
32
33class octave_value;
34
35OCTAVE_NAMESPACE_BEGIN
36
37extern OCTINTERP_API octave_value
38xnorm (const octave_value& x, const octave_value& p);
39
40extern OCTINTERP_API octave_value
41xcolnorms (const octave_value& x, const octave_value& p);
42
43extern OCTINTERP_API octave_value
44xrownorms (const octave_value& x, const octave_value& p);
45
46extern OCTINTERP_API octave_value
47xfrobnorm (const octave_value& x);
48
49OCTAVE_NAMESPACE_END
50
51#if defined (OCTAVE_PROVIDE_DEPRECATED_SYMBOLS)
52
53OCTAVE_DEPRECATED (7, "use 'octave::xnorm' instead")
54inline octave_value
55xnorm (const octave_value& x, const octave_value& p)
56{
57 return octave::xnorm (x, p);
58}
59
60OCTAVE_DEPRECATED (7, "use 'octave::xcolnorms' instead")
61inline octave_value
62xcolnorms (const octave_value& x, const octave_value& p)
63{
64 return octave::xcolnorms (x, p);
65}
66
67OCTAVE_DEPRECATED (7, "use 'octave::xrownorms' instead")
68inline octave_value
69xrownorms (const octave_value& x, const octave_value& p)
70{
71 return octave::xrownorms (x, p);
72}
73
74OCTAVE_DEPRECATED (7, "use 'octave::xfrobnorm' instead")
75inline octave_value
77{
78 return octave::xfrobnorm (x);
79}
80
81#endif
82
83#endif
F77_RET_T const F77_DBLE * x
double xfrobnorm(const Matrix &x)
Definition: oct-norm.cc:585
ColumnVector xrownorms(const Matrix &m, double p)
Definition: oct-norm.cc:628
RowVector xcolnorms(const Matrix &m, double p)
Definition: oct-norm.cc:628
double xnorm(const ColumnVector &x, double p)
Definition: oct-norm.cc:585
OCTAVE_NAMESPACE_BEGIN OCTINTERP_API octave_value xnorm(const octave_value &x, const octave_value &p)
Definition: xnorm.cc:38
OCTINTERP_API octave_value xfrobnorm(const octave_value &x)
Definition: xnorm.cc:173
OCTINTERP_API octave_value xrownorms(const octave_value &x, const octave_value &p)
Definition: xnorm.cc:134
OCTINTERP_API octave_value xcolnorms(const octave_value &x, const octave_value &p)
Definition: xnorm.cc:95