GNU Octave  9.1.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-2024 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 
35 
36 extern Matrix xdiv (const Matrix& a, const Matrix& b, MatrixType& typ);
37 extern ComplexMatrix xdiv (const Matrix& a, const ComplexMatrix& b,
38  MatrixType& typ);
39 extern ComplexMatrix xdiv (const ComplexMatrix& a, const Matrix& b,
40  MatrixType& typ);
41 extern ComplexMatrix xdiv (const ComplexMatrix& a, const ComplexMatrix& b,
42  MatrixType& typ);
43 
44 extern Matrix elem_xdiv (double a, const Matrix& b);
45 extern ComplexMatrix elem_xdiv (double a, const ComplexMatrix& b);
46 extern ComplexMatrix elem_xdiv (const Complex a, const Matrix& b);
47 extern ComplexMatrix elem_xdiv (const Complex a, const ComplexMatrix& b);
48 
49 extern NDArray elem_xdiv (double a, const NDArray& b);
50 extern ComplexNDArray elem_xdiv (double a, const ComplexNDArray& b);
51 extern ComplexNDArray elem_xdiv (const Complex a, const NDArray& b);
52 extern ComplexNDArray elem_xdiv (const Complex a, const ComplexNDArray& b);
53 
54 extern Matrix xleftdiv (const Matrix& a, const Matrix& b, MatrixType& typ,
56 extern ComplexMatrix xleftdiv (const Matrix& a, const ComplexMatrix& b,
57  MatrixType& typ,
59 extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const Matrix& b,
60  MatrixType& typ,
62 extern ComplexMatrix xleftdiv (const ComplexMatrix& a, const ComplexMatrix& b,
63  MatrixType& typ,
65 
66 extern FloatMatrix xdiv (const FloatMatrix& a, const FloatMatrix& b,
67  MatrixType& typ);
68 extern FloatComplexMatrix xdiv (const FloatMatrix& a,
69  const FloatComplexMatrix& b,
70  MatrixType& typ);
72  const FloatMatrix& b,
73  MatrixType& typ);
75  const FloatComplexMatrix& b,
76  MatrixType& typ);
77 
78 extern FloatMatrix elem_xdiv (float a, const FloatMatrix& b);
79 extern FloatComplexMatrix elem_xdiv (float a, const FloatComplexMatrix& b);
81  const FloatMatrix& b);
83  const FloatComplexMatrix& b);
84 
85 extern FloatNDArray elem_xdiv (float a, const FloatNDArray& b);
86 extern FloatComplexNDArray elem_xdiv (float a, const FloatComplexNDArray& b);
88  const FloatNDArray& b);
90  const FloatComplexNDArray& b);
91 
92 extern FloatMatrix xleftdiv (const FloatMatrix& a, const FloatMatrix& b,
93  MatrixType& typ,
95 extern FloatComplexMatrix xleftdiv (const FloatMatrix& a,
96  const FloatComplexMatrix& b,
97  MatrixType& typ,
100  const FloatMatrix& b,
101  MatrixType& typ,
102  blas_trans_type transt = blas_no_trans);
104  const FloatComplexMatrix& b,
105  MatrixType& typ,
106  blas_trans_type transt = blas_no_trans);
107 
108 extern Matrix xdiv (const Matrix& a, const DiagMatrix& b);
109 extern ComplexMatrix xdiv (const ComplexMatrix& a, const DiagMatrix& b);
110 extern ComplexMatrix xdiv (const ComplexMatrix& a, const ComplexDiagMatrix& b);
111 
112 extern DiagMatrix xdiv (const DiagMatrix& a, const DiagMatrix& b);
113 extern ComplexDiagMatrix xdiv (const ComplexDiagMatrix& a, const DiagMatrix& b);
114 extern ComplexDiagMatrix xdiv (const ComplexDiagMatrix& a,
115  const ComplexDiagMatrix& b);
116 
117 extern FloatMatrix xdiv (const FloatMatrix& a, const FloatDiagMatrix& b);
119  const FloatDiagMatrix& b);
121  const FloatComplexDiagMatrix& b);
123  const FloatComplexDiagMatrix& b);
124 
125 extern FloatDiagMatrix xdiv (const FloatDiagMatrix& a,
126  const FloatDiagMatrix& b);
128  const FloatDiagMatrix& b);
130  const FloatComplexDiagMatrix& b);
131 
132 extern Matrix xleftdiv (const DiagMatrix& a, const Matrix& b);
133 extern ComplexMatrix xleftdiv (const DiagMatrix& a, const ComplexMatrix& b);
134 extern ComplexMatrix xleftdiv (const ComplexDiagMatrix& a,
135  const ComplexMatrix& b);
136 
137 extern DiagMatrix xleftdiv (const DiagMatrix& a, const DiagMatrix& b);
138 extern ComplexDiagMatrix xleftdiv (const DiagMatrix& a,
139  const ComplexDiagMatrix& b);
141  const ComplexDiagMatrix& b);
142 
143 extern FloatMatrix xleftdiv (const FloatDiagMatrix& a,
144  const FloatMatrix& b);
146  const FloatComplexMatrix& b);
148  const FloatComplexMatrix& b);
149 
150 extern FloatDiagMatrix xleftdiv (const FloatDiagMatrix& a,
151  const FloatDiagMatrix& b);
153  const FloatComplexDiagMatrix& b);
155  const FloatComplexDiagMatrix& b);
156 
157 OCTAVE_END_NAMESPACE(octave)
158 
159 #endif
Definition: dMatrix.h:42
OCTAVE_BEGIN_NAMESPACE(octave) static octave_value daspk_fcn
blas_trans_type
Definition: mx-defs.h:80
@ blas_no_trans
Definition: mx-defs.h:81
std::complex< double > Complex
Definition: oct-cmplx.h:33
std::complex< float > FloatComplex
Definition: oct-cmplx.h:34
Matrix elem_xdiv(double a, const Matrix &b)
Definition: xdiv.cc:200
Matrix xleftdiv(const Matrix &a, const Matrix &b, MatrixType &typ, blas_trans_type transt=blas_no_trans)
Definition: xdiv.cc:347
Matrix xdiv(const Matrix &a, const Matrix &b, MatrixType &typ)
Definition: xdiv.cc:124