GNU Octave  3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
sparse-xdiv.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 2004-2013 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 the
10 Free Software Foundation; either version 3 of the License, or (at your
11 option) any later version.
12 
13 Octave is distributed in the hope that it will be useful, but WITHOUT
14 ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
15 FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
16 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 <http://www.gnu.org/licenses/>.
21 
22 */
23 
24 #if !defined (octave_sparse_xdiv_h)
25 #define octave_sparse_xdiv_h 1
26 
27 #include "oct-cmplx.h"
28 #include "MatrixType.h"
29 
30 class DiagMatrix;
31 class ComplexDiagMatrix;
32 class SparseMatrix;
34 
35 extern Matrix xdiv (const Matrix& a, const SparseMatrix& b, MatrixType &typ);
36 extern ComplexMatrix xdiv (const Matrix& a, const SparseComplexMatrix& b,
37  MatrixType &typ);
38 extern ComplexMatrix xdiv (const ComplexMatrix& a, const SparseMatrix& b,
39  MatrixType &typ);
40 extern ComplexMatrix xdiv (const ComplexMatrix& a,
41  const SparseComplexMatrix& b, MatrixType &typ);
42 
43 extern SparseMatrix xdiv (const SparseMatrix& a, const SparseMatrix& b,
44  MatrixType &typ);
45 extern SparseComplexMatrix xdiv (const SparseMatrix& a,
46  const SparseComplexMatrix& b, MatrixType &typ);
48  const SparseMatrix& b, MatrixType &typ);
50  const SparseComplexMatrix& b, MatrixType &typ);
51 
52 extern SparseMatrix xdiv (const SparseMatrix& a,
53  const DiagMatrix& b, MatrixType &typ);
54 extern SparseComplexMatrix xdiv (const SparseMatrix& a,
55  const ComplexDiagMatrix& b, MatrixType &typ);
57  const DiagMatrix& b, MatrixType &typ);
59  const ComplexDiagMatrix& b, MatrixType &typ);
60 
61 extern Matrix x_el_div (double a, const SparseMatrix& b);
62 extern ComplexMatrix x_el_div (double a, const SparseComplexMatrix& b);
63 extern ComplexMatrix x_el_div (const Complex a, const SparseMatrix& b);
64 extern ComplexMatrix x_el_div (const Complex a,
65  const SparseComplexMatrix& b);
66 
67 extern Matrix xleftdiv (const SparseMatrix& a, const Matrix& b,
68  MatrixType& typ);
69 extern ComplexMatrix xleftdiv (const SparseMatrix& a, const ComplexMatrix& b,
70  MatrixType &typ);
71 extern ComplexMatrix xleftdiv (const SparseComplexMatrix& a, const Matrix& b,
72  MatrixType &typ);
74  const ComplexMatrix& b, MatrixType &typ);
75 
76 extern SparseMatrix xleftdiv (const SparseMatrix& a, const SparseMatrix& b,
77  MatrixType &typ);
79  const SparseComplexMatrix& b,
80  MatrixType &typ);
82  const SparseMatrix& b, MatrixType &typ);
84  const SparseComplexMatrix& b,
85  MatrixType &typ);
86 
87 extern SparseMatrix xleftdiv (const DiagMatrix&, const SparseMatrix&,
88  MatrixType&);
90  const SparseMatrix&,
91  MatrixType&);
93  const SparseComplexMatrix&,
94  MatrixType&);
96  const SparseComplexMatrix&,
97  MatrixType&);
98 
99 #endif