GNU Octave
3.8.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#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 "oct-obj.h"
Go to the source code of this file.
Macros | |
#define | MAKE_INT_BRANCH(X) |
#define | MAKE_INT_BRANCH(X) |
Functions | |
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<class NDA > | |
static octave_value | do_extended_gcd (const octave_value &a, const octave_value &b, octave_value &x, octave_value &y) |
template<class NDA > | |
static octave_value | do_simple_gcd (const octave_value &a, const octave_value &b) |
static double | extended_gcd (double a, double b, double &x, double &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) |
template<class 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) |
OCTAVE_EXPORT octave_value_list | Fgcd (const octave_value_list &args, int nargout) |
static double | simple_gcd (double a, double b) |
template<typename FP > | |
static std::complex< FP > | simple_gcd (const std::complex< FP > &a, const std::complex< FP > &b) |
template<class T > | |
static octave_int< T > | simple_gcd (const octave_int< T > &a, const octave_int< T > &b) |
#define MAKE_INT_BRANCH | ( | X | ) |
#define MAKE_INT_BRANCH | ( | X | ) |
|
static |
Definition at line 64 of file gcd.cc.
References floor(), imag(), and real.
Referenced by extended_gcd(), and simple_gcd().
|
static |
Definition at line 314 of file gcd.cc.
References octave_value::dims(), extended_gcd(), gripe_nonconformant(), and octave_value::is_scalar_type().
Referenced by Fgcd().
|
static |
Definition at line 234 of file gcd.cc.
References octave_value::is_scalar_type(), and simple_gcd().
Referenced by Fgcd().
Definition at line 119 of file gcd.cc.
References floor(), and xisinteger().
Referenced by do_extended_gcd().
|
static |
Definition at line 156 of file gcd.cc.
References abs(), divide(), and xisinteger().
|
static |
Definition at line 202 of file gcd.cc.
References octave_int< T >::abs(), and octave_int< T >::signum().
OCTAVE_EXPORT octave_value_list Fgcd | ( | const octave_value_list & | args, |
int | nargout | ||
) |
Definition at line 472 of file gcd.cc.
References do_extended_gcd(), do_simple_gcd(), error_state, octave_value::length(), octave_value::op_el_mul_eq, print_usage(), octave_value_list::resize(), and x.
|
static |
Definition at line 77 of file gcd.cc.
References abs(), divide(), and xisinteger().
|
static |
Definition at line 103 of file gcd.cc.
References octave_int< T >::abs().