GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
xdiv.h
Go to the documentation of this file.
1 /*
2 
3 Copyright (C) 1993-2018 John W. Eaton
4 Copyright (C) 2008 Jaroslav Hajek
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_xdiv_h)
25 #define octave_xdiv_h 1
26 
27 #include "octave-config.h"
28 
29 #include "mx-defs.h"
30 #include "MatrixType.h"
31 
32 extern Matrix xdiv (const Matrix& a, const Matrix& b, MatrixType& typ);
33 extern ComplexMatrix xdiv (const Matrix& a, const ComplexMatrix& b,
34  MatrixType& typ);
35 extern ComplexMatrix xdiv (const ComplexMatrix& a, const Matrix& b,
36  MatrixType& typ);
37 extern ComplexMatrix xdiv (const ComplexMatrix& a, const ComplexMatrix& b,
38  MatrixType& typ);
39 
40 extern Matrix x_el_div (double a, const Matrix& b);
41 extern ComplexMatrix x_el_div (double a, const ComplexMatrix& b);
42 extern ComplexMatrix x_el_div (const Complex a, const Matrix& b);
43 extern ComplexMatrix x_el_div (const Complex a, const ComplexMatrix& b);
44 
45 extern NDArray x_el_div (double a, const NDArray& b);
46 extern ComplexNDArray x_el_div (double a, const ComplexNDArray& b);
47 extern ComplexNDArray x_el_div (const Complex a, const NDArray& b);
48 extern ComplexNDArray x_el_div (const Complex a, const ComplexNDArray& b);
49 
50 extern Matrix xleftdiv (const Matrix& a, const Matrix& b, MatrixType& typ,
52 extern ComplexMatrix xleftdiv (const Matrix& a, const ComplexMatrix& b,
53  MatrixType& typ,
55 extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const Matrix& b,
56  MatrixType& typ,
58 extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const ComplexMatrix& b,
59  MatrixType& typ,
61 
62 extern FloatMatrix xdiv (const FloatMatrix& a, const FloatMatrix& b,
63  MatrixType& typ);
64 extern FloatComplexMatrix xdiv (const FloatMatrix& a,
65  const FloatComplexMatrix& b,
66  MatrixType& typ);
68  const FloatMatrix& b,
69  MatrixType& typ);
71  const FloatComplexMatrix& b,
72  MatrixType& typ);
73 
74 extern FloatMatrix x_el_div (float a, const FloatMatrix& b);
75 extern FloatComplexMatrix x_el_div (float a, const FloatComplexMatrix& b);
76 extern FloatComplexMatrix x_el_div (const FloatComplex a, const FloatMatrix& b);
78  const FloatComplexMatrix& b);
79 
80 extern FloatNDArray x_el_div (float a, const FloatNDArray& b);
81 extern FloatComplexNDArray x_el_div (float a, const FloatComplexNDArray& b);
83  const FloatNDArray& b);
85  const FloatComplexNDArray& b);
86 
87 extern FloatMatrix xleftdiv (const FloatMatrix& a, const FloatMatrix& b,
88  MatrixType& typ,
91  const FloatComplexMatrix& b,
92  MatrixType& typ,
95  const FloatMatrix& b,
96  MatrixType& typ,
99  const FloatComplexMatrix& b,
100  MatrixType& typ,
101  blas_trans_type transt = blas_no_trans);
102 
103 extern Matrix xdiv (const Matrix& a, const DiagMatrix& b);
104 extern ComplexMatrix xdiv (const ComplexMatrix& a, const DiagMatrix& b);
105 extern ComplexMatrix xdiv (const ComplexMatrix& a, const ComplexDiagMatrix& b);
106 
107 extern DiagMatrix xdiv (const DiagMatrix& a, const DiagMatrix& b);
108 extern ComplexDiagMatrix xdiv (const ComplexDiagMatrix& a, const DiagMatrix& b);
110  const ComplexDiagMatrix& b);
111 
112 extern FloatMatrix xdiv (const FloatMatrix& a, const FloatDiagMatrix& b);
114  const FloatDiagMatrix& b);
115 extern FloatComplexMatrix xdiv (const FloatMatrix& a,
116  const FloatComplexDiagMatrix& b);
118  const FloatComplexDiagMatrix& b);
119 
120 extern FloatDiagMatrix xdiv (const FloatDiagMatrix& a,
121  const FloatDiagMatrix& b);
123  const FloatDiagMatrix& b);
125  const FloatComplexDiagMatrix& b);
126 
127 extern Matrix xleftdiv (const DiagMatrix& a, const Matrix& b);
128 extern ComplexMatrix xleftdiv (const DiagMatrix& a, const ComplexMatrix& b);
130  const ComplexMatrix& b);
131 
132 extern DiagMatrix xleftdiv (const DiagMatrix& a, const DiagMatrix& b);
133 extern ComplexDiagMatrix xleftdiv (const DiagMatrix& a,
134  const ComplexDiagMatrix& b);
136  const ComplexDiagMatrix& b);
137 
138 extern FloatMatrix xleftdiv (const FloatDiagMatrix& a,
139  const FloatMatrix& b);
141  const FloatComplexMatrix& b);
143  const FloatComplexMatrix& b);
144 
146  const FloatDiagMatrix& b);
148  const FloatComplexDiagMatrix& b);
150  const FloatComplexDiagMatrix& b);
151 
152 #endif
Matrix xleftdiv(const Matrix &a, const Matrix &b, MatrixType &typ, blas_trans_type transt=blas_no_trans)
Definition: xdiv.cc:344
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 Matrix &b)
Definition: xdiv.cc:197
Definition: dMatrix.h:36
b
Definition: cellfun.cc:400
std::complex< float > FloatComplex
Definition: oct-cmplx.h:32
blas_trans_type
Definition: mx-defs.h:105
std::complex< double > Complex
Definition: oct-cmplx.h:31
Matrix xdiv(const Matrix &a, const Matrix &b, MatrixType &typ)
Definition: xdiv.cc:121