GNU Octave  6.2.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
mx-defs.h
Go to the documentation of this file.
1 ////////////////////////////////////////////////////////////////////////
2 //
3 // Copyright (C) 1994-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_mx_defs_h)
27 #define octave_mx_defs_h 1
28 
29 #include "octave-config.h"
30 
31 // Classes we declare.
32 
33 class Matrix;
34 class ComplexMatrix;
35 class FloatMatrix;
36 class FloatComplexMatrix;
37 class boolMatrix;
38 class charMatrix;
39 
40 class NDArray;
41 class ComplexNDArray;
42 class FloatNDArray;
44 class boolNDArray;
45 class charNDArray;
46 
47 class ColumnVector;
49 class FloatColumnVector;
51 
52 class RowVector;
53 class ComplexRowVector;
54 class FloatRowVector;
56 
57 class DiagMatrix;
58 class ComplexDiagMatrix;
59 class FloatDiagMatrix;
61 
62 class PermMatrix;
63 
64 template <typename T> class aepbalance;
65 
66 template <typename T> class gepbalance;
67 
68 template <typename T> class chol;
69 
70 class EIG;
71 
72 template <typename T> class gsvd;
73 
74 template <typename T> class hess;
75 
76 template <typename T> class schur;
77 
78 template <typename T> class svd;
79 
80 template <typename T> class lu;
81 
82 template <typename T> class qr;
83 
84 template <typename T> class qrp;
85 
86 // Other data types we use but that don't always need to have full
87 // declarations.
88 
89 #include "oct-cmplx.h"
90 
91 #if ! defined (MAPPER_FCN_TYPEDEFS)
92 # define MAPPER_FCN_TYPEDEFS 1
93 
94 typedef bool (*b_d_Mapper)(double);
95 typedef bool (*b_c_Mapper)(const Complex&);
96 
97 typedef double (*d_d_Mapper)(double);
98 typedef double (*d_c_Mapper)(const Complex&);
99 typedef Complex (*c_c_Mapper)(const Complex&);
100 
101 typedef bool (*b_f_Mapper)(float);
102 typedef bool (*b_fc_Mapper)(const FloatComplex&);
103 
104 typedef float (*f_f_Mapper)(float);
105 typedef float (*f_fc_Mapper)(const FloatComplex&);
107 
109 {
111  blas_trans = 'T',
112  blas_conj_trans = 'C'
113 };
114 
115 inline char
117 {
118  return static_cast<char> (transt);
119 }
120 
121 # endif
122 
123 #endif
Definition: EIG.h:41
Definition: dMatrix.h:42
Definition: mx-defs.h:68
Definition: mx-defs.h:72
Definition: mx-defs.h:74
Definition: mx-defs.h:80
Definition: mx-defs.h:82
Definition: mx-defs.h:84
Definition: mx-defs.h:76
Definition: mx-defs.h:78
Complex(* c_c_Mapper)(const Complex &)
Definition: mx-defs.h:99
bool(* b_c_Mapper)(const Complex &)
Definition: mx-defs.h:95
blas_trans_type
Definition: mx-defs.h:109
@ blas_no_trans
Definition: mx-defs.h:110
@ blas_conj_trans
Definition: mx-defs.h:112
@ blas_trans
Definition: mx-defs.h:111
float(* f_fc_Mapper)(const FloatComplex &)
Definition: mx-defs.h:105
double(* d_c_Mapper)(const Complex &)
Definition: mx-defs.h:98
FloatComplex(* fc_fc_Mapper)(const FloatComplex &)
Definition: mx-defs.h:106
bool(* b_f_Mapper)(float)
Definition: mx-defs.h:101
char get_blas_char(blas_trans_type transt)
Definition: mx-defs.h:116
bool(* b_fc_Mapper)(const FloatComplex &)
Definition: mx-defs.h:102
float(* f_f_Mapper)(float)
Definition: mx-defs.h:104
bool(* b_d_Mapper)(double)
Definition: mx-defs.h:94
double(* d_d_Mapper)(double)
Definition: mx-defs.h:97
std::complex< double > Complex
Definition: oct-cmplx.h:33
std::complex< float > FloatComplex
Definition: oct-cmplx.h:34