#include "dNDArray.h"
#include "CNDArray.h"
#include "fNDArray.h"
#include "fCNDArray.h"
#include "lo-mappers.h"
#include "oct-binmap.h"
#include "defun.h"
#include "error.h"
#include "ovl.h"
Go to the source code of this file.
|
template<typename FP > |
static void | divide (const std::complex< FP > &a, const std::complex< FP > &b, std::complex< FP > &q, std::complex< FP > &r) |
|
template<typename NDA > |
static octave_value | do_extended_gcd (const octave_value &a, const octave_value &b, octave_value &x, octave_value &y) |
|
template<typename NDA > |
static octave_value | do_simple_gcd (const octave_value &a, const octave_value &b) |
|
template<typename T > |
static octave_int< T > | extended_gcd (const octave_int< T > &a, const octave_int< T > &b, octave_int< T > &x, octave_int< T > &y) |
|
template<typename FP > |
static std::complex< FP > | extended_gcd (const std::complex< FP > &a, const std::complex< FP > &b, std::complex< FP > &x, std::complex< FP > &y) |
|
static double | extended_gcd (double a, double b, double &x, double &y) |
|
OCTAVE_EXPORT octave_value_list | Fgcd (const octave_value_list &args, int nargout) |
|
template<typename T > |
static octave_int< T > | simple_gcd (const octave_int< T > &a, const octave_int< T > &b) |
|
template<typename FP > |
static std::complex< FP > | simple_gcd (const std::complex< FP > &a, const std::complex< FP > &b) |
|
static double | simple_gcd (double a, double b) |
|
◆ MAKE_INT_BRANCH [1/2]
#define MAKE_INT_BRANCH |
( |
|
X | ) |
|
Value: case btyp_ ## X: \
retval = do_simple_gcd<X ## NDArray> (a, b); \
break
◆ MAKE_INT_BRANCH [2/2]
#define MAKE_INT_BRANCH |
( |
|
X | ) |
|
Value: case btyp_ ## X: \
retval = do_extended_gcd<X ## NDArray> (a, b,
x, y); \
break
F77_RET_T const F77_DBLE * x
◆ divide()
template<typename FP >
static void divide |
( |
const std::complex< FP > & |
a, |
|
|
const std::complex< FP > & |
b, |
|
|
std::complex< FP > & |
q, |
|
|
std::complex< FP > & |
r |
|
) |
| |
|
static |
◆ do_extended_gcd()
◆ do_simple_gcd()
◆ extended_gcd() [1/3]
◆ extended_gcd() [2/3]
template<typename FP >
static std::complex<FP> extended_gcd |
( |
const std::complex< FP > & |
a, |
|
|
const std::complex< FP > & |
b, |
|
|
std::complex< FP > & |
x, |
|
|
std::complex< FP > & |
y |
|
) |
| |
|
static |
◆ extended_gcd() [3/3]
static double extended_gcd |
( |
double |
a, |
|
|
double |
b, |
|
|
double & |
x, |
|
|
double & |
y |
|
) |
| |
|
static |
◆ Fgcd()
◆ simple_gcd() [1/3]
◆ simple_gcd() [2/3]
template<typename FP >
static std::complex<FP> simple_gcd |
( |
const std::complex< FP > & |
a, |
|
|
const std::complex< FP > & |
b |
|
) |
| |
|
static |
◆ simple_gcd() [3/3]
static double simple_gcd |
( |
double |
a, |
|
|
double |
b |
|
) |
| |
|
static |