GNU Octave
4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sparse-xdiv.h
Go to the documentation of this file.
1
/*
2
3
Copyright (C) 2004-2018 David Bateman
4
Copyright (C) 1998-2004 Andy Adler
5
6
This file is part of Octave.
7
8
Octave is free software: you can redistribute it and/or modify it
9
under the terms of the GNU General Public License as published by
10
the Free Software Foundation, either version 3 of the License, or
11
(at your option) any later version.
12
13
Octave is distributed in the hope that it will be useful, but
14
WITHOUT ANY WARRANTY; without even the implied warranty of
15
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16
GNU General Public License for more details.
17
18
You should have received a copy of the GNU General Public License
19
along with Octave; see the file COPYING. If not, see
20
<https://www.gnu.org/licenses/>.
21
22
*/
23
24
#if ! defined (octave_sparse_xdiv_h)
25
#define octave_sparse_xdiv_h 1
26
27
#include "octave-config.h"
28
29
#include "
oct-cmplx.h
"
30
#include "
MatrixType.h
"
31
32
class
DiagMatrix
;
33
class
ComplexDiagMatrix
;
34
class
SparseMatrix
;
35
class
SparseComplexMatrix
;
36
37
extern
Matrix
xdiv
(
const
Matrix
&
a
,
const
SparseMatrix
&
b
,
MatrixType
& typ);
38
extern
ComplexMatrix
xdiv
(
const
Matrix
&
a
,
const
SparseComplexMatrix
&
b
,
39
MatrixType
& typ);
40
extern
ComplexMatrix
xdiv
(
const
ComplexMatrix
&
a
,
const
SparseMatrix
&
b
,
41
MatrixType
& typ);
42
extern
ComplexMatrix
xdiv
(
const
ComplexMatrix
&
a
,
43
const
SparseComplexMatrix
&
b
,
MatrixType
& typ);
44
45
extern
SparseMatrix
xdiv
(
const
SparseMatrix
&
a
,
const
SparseMatrix
&
b
,
46
MatrixType
& typ);
47
extern
SparseComplexMatrix
xdiv
(
const
SparseMatrix
&
a
,
48
const
SparseComplexMatrix
&
b
,
MatrixType
& typ);
49
extern
SparseComplexMatrix
xdiv
(
const
SparseComplexMatrix
&
a
,
50
const
SparseMatrix
&
b
,
MatrixType
& typ);
51
extern
SparseComplexMatrix
xdiv
(
const
SparseComplexMatrix
&
a
,
52
const
SparseComplexMatrix
&
b
,
MatrixType
& typ);
53
54
extern
SparseMatrix
xdiv
(
const
SparseMatrix
&
a
,
55
const
DiagMatrix
&
b
,
MatrixType
& typ);
56
extern
SparseComplexMatrix
xdiv
(
const
SparseMatrix
&
a
,
57
const
ComplexDiagMatrix
&
b
,
MatrixType
& typ);
58
extern
SparseComplexMatrix
xdiv
(
const
SparseComplexMatrix
&
a
,
59
const
DiagMatrix
&
b
,
MatrixType
& typ);
60
extern
SparseComplexMatrix
xdiv
(
const
SparseComplexMatrix
&
a
,
61
const
ComplexDiagMatrix
&
b
,
MatrixType
& typ);
62
63
extern
Matrix
x_el_div
(
double
a
,
const
SparseMatrix
&
b
);
64
extern
ComplexMatrix
x_el_div
(
double
a
,
const
SparseComplexMatrix
&
b
);
65
extern
ComplexMatrix
x_el_div
(
const
Complex
a
,
const
SparseMatrix
&
b
);
66
extern
ComplexMatrix
x_el_div
(
const
Complex
a
,
67
const
SparseComplexMatrix
&
b
);
68
69
extern
Matrix
xleftdiv
(
const
SparseMatrix
&
a
,
const
Matrix
&
b
,
70
MatrixType
& typ);
71
extern
ComplexMatrix
xleftdiv
(
const
SparseMatrix
&
a
,
const
ComplexMatrix
&
b
,
72
MatrixType
& typ);
73
extern
ComplexMatrix
xleftdiv
(
const
SparseComplexMatrix
&
a
,
const
Matrix
&
b
,
74
MatrixType
& typ);
75
extern
ComplexMatrix
xleftdiv
(
const
SparseComplexMatrix
&
a
,
76
const
ComplexMatrix
&
b
,
MatrixType
& typ);
77
78
extern
SparseMatrix
xleftdiv
(
const
SparseMatrix
&
a
,
const
SparseMatrix
&
b
,
79
MatrixType
& typ);
80
extern
SparseComplexMatrix
xleftdiv
(
const
SparseMatrix
&
a
,
81
const
SparseComplexMatrix
&
b
,
82
MatrixType
& typ);
83
extern
SparseComplexMatrix
xleftdiv
(
const
SparseComplexMatrix
&
a
,
84
const
SparseMatrix
&
b
,
MatrixType
& typ);
85
extern
SparseComplexMatrix
xleftdiv
(
const
SparseComplexMatrix
&
a
,
86
const
SparseComplexMatrix
&
b
,
87
MatrixType
& typ);
88
89
extern
SparseMatrix
xleftdiv
(
const
DiagMatrix
&,
const
SparseMatrix
&,
90
MatrixType
&);
91
extern
SparseComplexMatrix
xleftdiv
(
const
ComplexDiagMatrix
&,
92
const
SparseMatrix
&,
93
MatrixType
&);
94
extern
SparseComplexMatrix
xleftdiv
(
const
DiagMatrix
&,
95
const
SparseComplexMatrix
&,
96
MatrixType
&);
97
extern
SparseComplexMatrix
xleftdiv
(
const
ComplexDiagMatrix
&,
98
const
SparseComplexMatrix
&,
99
MatrixType
&);
100
101
#endif
oct-cmplx.h
MatrixType
Definition:
MatrixType.h:38
SparseComplexMatrix
Definition:
CSparse.h:47
xleftdiv
Matrix xleftdiv(const SparseMatrix &a, const Matrix &b, MatrixType &typ)
Definition:
sparse-xdiv.cc:464
a
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
Definition:
cellfun.cc:400
ComplexMatrix
Definition:
CMatrix.h:37
SparseMatrix
Definition:
dSparse.h:44
x_el_div
Matrix x_el_div(double a, const SparseMatrix &b)
Definition:
sparse-xdiv.cc:371
DiagMatrix
Definition:
dDiagMatrix.h:34
MatrixType.h
Matrix
Definition:
dMatrix.h:36
xdiv
Matrix xdiv(const Matrix &a, const SparseMatrix &b, MatrixType &typ)
Definition:
sparse-xdiv.cc:133
ComplexDiagMatrix
Definition:
CDiagMatrix.h:36
b
b
Definition:
cellfun.cc:400
Complex
std::complex< double > Complex
Definition:
oct-cmplx.h:31
libinterp
corefcn
sparse-xdiv.h
Generated on Sat Sep 1 2018 14:01:40 for GNU Octave by
1.8.14