GNU Octave  6.2.0
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-2021 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_xdiv_h)
27 #define octave_xdiv_h 1
28 
29 #include "octave-config.h"
30 
31 #include "mx-defs.h"
32 #include "MatrixType.h"
33 
34 extern Matrix xdiv (const Matrix& a, const Matrix& b, MatrixType& typ);
35 extern ComplexMatrix xdiv (const Matrix& a, const ComplexMatrix& b,
36  MatrixType& typ);
37 extern ComplexMatrix xdiv (const ComplexMatrix& a, const Matrix& b,
38  MatrixType& typ);
39 extern ComplexMatrix xdiv (const ComplexMatrix& a, const ComplexMatrix& b,
40  MatrixType& typ);
41 
42 extern Matrix x_el_div (double a, const Matrix& b);
43 extern ComplexMatrix x_el_div (double a, const ComplexMatrix& b);
44 extern ComplexMatrix x_el_div (const Complex a, const Matrix& b);
45 extern ComplexMatrix x_el_div (const Complex a, const ComplexMatrix& b);
46 
47 extern NDArray x_el_div (double a, const NDArray& b);
48 extern ComplexNDArray x_el_div (double a, const ComplexNDArray& b);
49 extern ComplexNDArray x_el_div (const Complex a, const NDArray& b);
50 extern ComplexNDArray x_el_div (const Complex a, const ComplexNDArray& b);
51 
52 extern Matrix xleftdiv (const Matrix& a, const Matrix& b, MatrixType& typ,
54 extern ComplexMatrix xleftdiv (const Matrix& a, const ComplexMatrix& b,
55  MatrixType& typ,
57 extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const Matrix& b,
58  MatrixType& typ,
60 extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const ComplexMatrix& b,
61  MatrixType& typ,
63 
64 extern FloatMatrix xdiv (const FloatMatrix& a, const FloatMatrix& b,
65  MatrixType& typ);
66 extern FloatComplexMatrix xdiv (const FloatMatrix& a,
67  const FloatComplexMatrix& b,
68  MatrixType& typ);
70  const FloatMatrix& b,
71  MatrixType& typ);
73  const FloatComplexMatrix& b,
74  MatrixType& typ);
75 
76 extern FloatMatrix x_el_div (float a, const FloatMatrix& b);
77 extern FloatComplexMatrix x_el_div (float a, const FloatComplexMatrix& b);
78 extern FloatComplexMatrix x_el_div (const FloatComplex a, const FloatMatrix& b);
80  const FloatComplexMatrix& b);
81 
82 extern FloatNDArray x_el_div (float a, const FloatNDArray& b);
83 extern FloatComplexNDArray x_el_div (float a, const FloatComplexNDArray& b);
85  const FloatNDArray& b);
87  const FloatComplexNDArray& b);
88 
89 extern FloatMatrix xleftdiv (const FloatMatrix& a, const FloatMatrix& b,
90  MatrixType& typ,
92 extern FloatComplexMatrix xleftdiv (const FloatMatrix& a,
93  const FloatComplexMatrix& b,
94  MatrixType& typ,
97  const FloatMatrix& b,
98  MatrixType& typ,
101  const FloatComplexMatrix& b,
102  MatrixType& typ,
103  blas_trans_type transt = blas_no_trans);
104 
105 extern Matrix xdiv (const Matrix& a, const DiagMatrix& b);
106 extern ComplexMatrix xdiv (const ComplexMatrix& a, const DiagMatrix& b);
107 extern ComplexMatrix xdiv (const ComplexMatrix& a, const ComplexDiagMatrix& b);
108 
109 extern DiagMatrix xdiv (const DiagMatrix& a, const DiagMatrix& b);
110 extern ComplexDiagMatrix xdiv (const ComplexDiagMatrix& a, const DiagMatrix& b);
111 extern ComplexDiagMatrix xdiv (const ComplexDiagMatrix& a,
112  const ComplexDiagMatrix& b);
113 
114 extern FloatMatrix xdiv (const FloatMatrix& a, const FloatDiagMatrix& b);
116  const FloatDiagMatrix& b);
118  const FloatComplexDiagMatrix& b);
120  const FloatComplexDiagMatrix& b);
121 
122 extern FloatDiagMatrix xdiv (const FloatDiagMatrix& a,
123  const FloatDiagMatrix& b);
125  const FloatDiagMatrix& b);
127  const FloatComplexDiagMatrix& b);
128 
129 extern Matrix xleftdiv (const DiagMatrix& a, const Matrix& b);
130 extern ComplexMatrix xleftdiv (const DiagMatrix& a, const ComplexMatrix& b);
131 extern ComplexMatrix xleftdiv (const ComplexDiagMatrix& a,
132  const ComplexMatrix& b);
133 
134 extern DiagMatrix xleftdiv (const DiagMatrix& a, const DiagMatrix& b);
135 extern ComplexDiagMatrix xleftdiv (const DiagMatrix& a,
136  const ComplexDiagMatrix& b);
138  const ComplexDiagMatrix& b);
139 
140 extern FloatMatrix xleftdiv (const FloatDiagMatrix& a,
141  const FloatMatrix& b);
143  const FloatComplexMatrix& b);
145  const FloatComplexMatrix& b);
146 
147 extern FloatDiagMatrix xleftdiv (const FloatDiagMatrix& a,
148  const FloatDiagMatrix& b);
150  const FloatComplexDiagMatrix& b);
152  const FloatComplexDiagMatrix& b);
153 
154 #endif
Definition: dMatrix.h:42
blas_trans_type
Definition: mx-defs.h:109
@ blas_no_trans
Definition: mx-defs.h:110
std::complex< double > Complex
Definition: oct-cmplx.h:33
std::complex< float > FloatComplex
Definition: oct-cmplx.h:34
Matrix xleftdiv(const Matrix &a, const Matrix &b, MatrixType &typ, blas_trans_type transt=blas_no_trans)
Definition: xdiv.cc:345
Matrix x_el_div(double a, const Matrix &b)
Definition: xdiv.cc:198
Matrix xdiv(const Matrix &a, const Matrix &b, MatrixType &typ)
Definition: xdiv.cc:122