MatrixMath.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028 #ifndef CASA_MATRIXMATH_H
00029 #define CASA_MATRIXMATH_H
00030
00031
00032 #include <casacore/casa/aips.h>
00033 #include <casacore/casa/Arrays/Vector.h>
00034 #include <casacore/casa/Arrays/Matrix.h>
00035 #include <casacore/casa/BasicSL/Complex.h>
00036
00037
00038 namespace casacore {
00039
00040
00041
00042
00043
00044
00045
00046
00047
00048
00049
00050
00051
00052
00053
00054
00055
00056
00057
00058 template <class T> T innerProduct (const Vector<T> &x, const Vector<T> &y);
00059 Complex innerProduct (const Vector<Complex> &x, const Vector<Complex> &y);
00060 DComplex innerProduct (const Vector<DComplex> &x, const Vector<DComplex> &y);
00061
00062
00063
00064
00065
00066 Int norm (const Vector<Int> &x);
00067 Float norm (const Vector<Float> &x);
00068 Double norm (const Vector<Double> &x);
00069 Float norm (const Vector<Complex> &x);
00070 Double norm (const Vector<DComplex> &x);
00071
00072
00073
00074
00075
00076 template <class T>
00077 Vector<T> crossProduct (const Vector<T> &x, const Vector<T> &y);
00078
00079
00080 template <class T> T crossProduct2D(const Vector<T> &x, const Vector<T> &y);
00081
00082
00083
00084
00085
00086 template <class T>
00087 Matrix<T> product (const Vector<T> &x, const Matrix<T> &yT);
00088
00089
00090
00091
00092 template <class T>
00093 Vector<T> product (const Matrix<T> &A, const Vector<T> &x);
00094
00095
00096
00097
00098
00099
00100
00101 template <class T>
00102 Vector<T> directProduct(const Vector<T>& x, const Vector<T>& y);
00103
00104
00105
00106
00107
00108 template <class T>
00109 Matrix<T> product (const Matrix<T> &A, const Matrix<T> &B);
00110
00111
00112
00113
00114
00115 Int normI(const Matrix<Int> &A);
00116 Float normI(const Matrix<Float> &A);
00117 Double normI(const Matrix<Double> &A);
00118 Float normI(const Matrix<Complex> &A);
00119 Double normI(const Matrix<DComplex> &A);
00120
00121
00122
00123
00124
00125
00126 Int norm1(const Matrix<Int> &A);
00127 Float norm1(const Matrix<Float> &A);
00128 Double norm1(const Matrix<Double> &A);
00129 Float norm1(const Matrix<Complex> &A);
00130 Double norm1(const Matrix<DComplex> &A);
00131
00132
00133
00134
00135
00136 template <class T> Matrix<T> transpose (const Matrix<T> &A);
00137
00138
00139
00140
00141 template <class T> Matrix<T> Rot3D(Int axis, T angle);
00142 Matrix<Double> Rot3D(Int axis, Double angle);
00143 Matrix<Float> Rot3D(Int axis, Float angle);
00144
00145
00146
00147
00148
00149
00150
00151
00152 template <class T>
00153 Matrix<T> directProduct(const Matrix<T>& A, const Matrix<T>& B);
00154
00155
00156
00157
00158 Matrix<Complex> conjugate (const Matrix<Complex> &A);
00159
00160
00161
00162
00163 Matrix<DComplex> conjugate (const Matrix<DComplex> &A);
00164
00165
00166
00167
00168 Matrix<Complex> adjoint (const Matrix<Complex> &A);
00169 Matrix<DComplex> adjoint (const Matrix<DComplex> &A);
00170
00171
00172
00173 Matrix<Int> adjoint (const Matrix<Int> &A);
00174 Matrix<Float> adjoint (const Matrix<Float> &A);
00175 Matrix<Double> adjoint (const Matrix<Double> &A);
00176
00177
00178
00179
00180 Vector<Complex> product(const Matrix<Complex>&, const Vector<Float>&);
00181
00182
00183
00184
00185 Vector<Float> rproduct(const Matrix<Complex>&, const Vector<Complex>&);
00186
00187
00188
00189
00190 Matrix<Float> rproduct (const Matrix<Complex>&, const Matrix<Complex>&);
00191
00192
00193
00194
00195 }
00196
00197 #ifndef CASACORE_NO_AUTO_TEMPLATES
00198 #include <casacore/casa/Arrays/MatrixMath.tcc>
00199 #endif //# CASACORE_NO_AUTO_TEMPLATES
00200 #endif
00201