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;
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);
50  const SparseMatrix& b, MatrixType& typ);
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);
59  const DiagMatrix& b, MatrixType& typ);
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);
76  const ComplexMatrix& b, MatrixType& typ);
77 
78 extern SparseMatrix xleftdiv (const SparseMatrix& a, const SparseMatrix& b,
79  MatrixType& typ);
81  const SparseComplexMatrix& b,
82  MatrixType& typ);
84  const SparseMatrix& b, MatrixType& typ);
86  const SparseComplexMatrix& b,
87  MatrixType& typ);
88 
89 extern SparseMatrix xleftdiv (const DiagMatrix&, const SparseMatrix&,
90  MatrixType&);
92  const SparseMatrix&,
93  MatrixType&);
95  const SparseComplexMatrix&,
96  MatrixType&);
98  const SparseComplexMatrix&,
99  MatrixType&);
100 
101 #endif
Matrix xleftdiv(const SparseMatrix &a, const Matrix &b, MatrixType &typ)
Definition: sparse-xdiv.cc:464
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
Matrix x_el_div(double a, const SparseMatrix &b)
Definition: sparse-xdiv.cc:371
Definition: dMatrix.h:36
Matrix xdiv(const Matrix &a, const SparseMatrix &b, MatrixType &typ)
Definition: sparse-xdiv.cc:133
b
Definition: cellfun.cc:400
std::complex< double > Complex
Definition: oct-cmplx.h:31