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