comparison src/xpow.h @ 7789:82be108cc558

First attempt at single precision tyeps * * * corrections to qrupdate single precision routines * * * prefer demotion to single over promotion to double * * * Add single precision support to log2 function * * * Trivial PROJECT file update * * * Cache optimized hermitian/transpose methods * * * Add tests for tranpose/hermitian and ChangeLog entry for new transpose code
author David Bateman <dbateman@free.fr>
date Sun, 27 Apr 2008 22:34:17 +0200
parents a1dbe9d80eee
children 9b20a4847056
comparison
equal deleted inserted replaced
7788:45f5faba05a2 7789:82be108cc558
26 26
27 #include "oct-cmplx.h" 27 #include "oct-cmplx.h"
28 28
29 class Matrix; 29 class Matrix;
30 class ComplexMatrix; 30 class ComplexMatrix;
31 class FloatMatrix;
32 class FloatComplexMatrix;
31 class octave_value; 33 class octave_value;
32 34
33 extern octave_value xpow (double a, double b); 35 extern octave_value xpow (double a, double b);
34 extern octave_value xpow (double a, const Matrix& b); 36 extern octave_value xpow (double a, const Matrix& b);
35 extern octave_value xpow (double a, const Complex& b); 37 extern octave_value xpow (double a, const Complex& b);
77 extern octave_value elem_xpow (const ComplexNDArray& a, double b); 79 extern octave_value elem_xpow (const ComplexNDArray& a, double b);
78 extern octave_value elem_xpow (const ComplexNDArray& a, const NDArray& b); 80 extern octave_value elem_xpow (const ComplexNDArray& a, const NDArray& b);
79 extern octave_value elem_xpow (const ComplexNDArray& a, const Complex& b); 81 extern octave_value elem_xpow (const ComplexNDArray& a, const Complex& b);
80 extern octave_value elem_xpow (const ComplexNDArray& a, const ComplexNDArray& b); 82 extern octave_value elem_xpow (const ComplexNDArray& a, const ComplexNDArray& b);
81 83
84 extern octave_value xpow (float a, float b);
85 extern octave_value xpow (float a, const FloatMatrix& b);
86 extern octave_value xpow (float a, const FloatComplex& b);
87 extern octave_value xpow (float a, const FloatComplexMatrix& b);
88
89 extern octave_value xpow (const FloatMatrix& a, float b);
90 extern octave_value xpow (const FloatMatrix& a, const FloatComplex& b);
91
92 extern octave_value xpow (const FloatComplex& a, float b);
93 extern octave_value xpow (const FloatComplex& a, const FloatMatrix& b);
94 extern octave_value xpow (const FloatComplex& a, const FloatComplex& b);
95 extern octave_value xpow (const FloatComplex& a, const FloatComplexMatrix& b);
96
97 extern octave_value xpow (const FloatComplexMatrix& a, float b);
98 extern octave_value xpow (const FloatComplexMatrix& a, const FloatComplex& b);
99
100 extern octave_value elem_xpow (float a, const FloatMatrix& b);
101 extern octave_value elem_xpow (float a, const FloatComplexMatrix& b);
102
103 extern octave_value elem_xpow (const FloatMatrix& a, float b);
104 extern octave_value elem_xpow (const FloatMatrix& a, const FloatMatrix& b);
105 extern octave_value elem_xpow (const FloatMatrix& a, const FloatComplex& b);
106 extern octave_value elem_xpow (const FloatMatrix& a, const FloatComplexMatrix& b);
107
108 extern octave_value elem_xpow (const FloatComplex& a, const FloatMatrix& b);
109 extern octave_value elem_xpow (const FloatComplex& a, const FloatComplexMatrix& b);
110
111 extern octave_value elem_xpow (const FloatComplexMatrix& a, float b);
112 extern octave_value elem_xpow (const FloatComplexMatrix& a, const FloatMatrix& b);
113 extern octave_value elem_xpow (const FloatComplexMatrix& a, const FloatComplex& b);
114 extern octave_value elem_xpow (const FloatComplexMatrix& a, const FloatComplexMatrix& b);
115
116
117 extern octave_value elem_xpow (float a, const FloatNDArray& b);
118 extern octave_value elem_xpow (float a, const FloatComplexNDArray& b);
119
120 extern octave_value elem_xpow (const FloatNDArray& a, float b);
121 extern octave_value elem_xpow (const FloatNDArray& a, const FloatNDArray& b);
122 extern octave_value elem_xpow (const FloatNDArray& a, const FloatComplex& b);
123 extern octave_value elem_xpow (const FloatNDArray& a, const FloatComplexNDArray& b);
124
125 extern octave_value elem_xpow (const FloatComplex& a, const FloatNDArray& b);
126 extern octave_value elem_xpow (const FloatComplex& a, const FloatComplexNDArray& b);
127
128 extern octave_value elem_xpow (const FloatComplexNDArray& a, float b);
129 extern octave_value elem_xpow (const FloatComplexNDArray& a, const FloatNDArray& b);
130 extern octave_value elem_xpow (const FloatComplexNDArray& a, const FloatComplex& b);
131 extern octave_value elem_xpow (const FloatComplexNDArray& a, const FloatComplexNDArray& b);
132
82 #endif 133 #endif
83 134
84 /* 135 /*
85 ;;; Local Variables: *** 136 ;;; Local Variables: ***
86 ;;; mode: C++ *** 137 ;;; mode: C++ ***