Functions

xpow.cc File Reference

#include <cassert>
#include <climits>
#include "Array-util.h"
#include "CColVector.h"
#include "CDiagMatrix.h"
#include "fCDiagMatrix.h"
#include "CMatrix.h"
#include "EIG.h"
#include "fEIG.h"
#include "dDiagMatrix.h"
#include "fDiagMatrix.h"
#include "dMatrix.h"
#include "PermMatrix.h"
#include "mx-cm-cdm.h"
#include "oct-cmplx.h"
#include "Range.h"
#include "quit.h"
#include "error.h"
#include "oct-obj.h"
#include "utils.h"
#include "xpow.h"
#include "bsxfun.h"
Include dependency graph for xpow.cc:

Go to the source code of this file.

Functions

octave_value elem_xpow (double a, const Matrix &b)
octave_value elem_xpow (const FloatComplexNDArray &a, const FloatComplexNDArray &b)
octave_value elem_xpow (double a, const ComplexMatrix &b)
octave_value elem_xpow (const FloatComplexNDArray &a, const FloatNDArray &b)
octave_value elem_xpow (const ComplexMatrix &a, const Complex &b)
octave_value elem_xpow (const FloatComplex &a, const FloatComplexNDArray &b)
octave_value elem_xpow (const ComplexMatrix &a, const ComplexMatrix &b)
octave_value elem_xpow (const FloatNDArray &a, const FloatComplexNDArray &b)
octave_value elem_xpow (const FloatNDArray &a, const FloatComplex &b)
octave_value elem_xpow (const FloatNDArray &a, const FloatNDArray &b)
octave_value elem_xpow (const FloatMatrix &a, float b)
octave_value elem_xpow (float a, const FloatComplexNDArray &b)
octave_value elem_xpow (const FloatMatrix &a, const FloatMatrix &b)
octave_value elem_xpow (const FloatComplexMatrix &a, const FloatComplexMatrix &b)
octave_value elem_xpow (const FloatMatrix &a, const FloatComplex &b)
octave_value elem_xpow (const FloatComplexMatrix &a, const FloatMatrix &b)
octave_value elem_xpow (const FloatComplexMatrix &a, float b)
octave_value elem_xpow (const FloatMatrix &a, const FloatComplexMatrix &b)
octave_value elem_xpow (double a, const NDArray &b)
octave_value elem_xpow (const FloatComplex &a, const FloatMatrix &b)
octave_value elem_xpow (const FloatComplex &a, const FloatComplexMatrix &b)
octave_value elem_xpow (double a, const ComplexNDArray &b)
octave_value elem_xpow (const NDArray &a, double b)
octave_value elem_xpow (float a, const FloatComplexMatrix &b)
octave_value elem_xpow (float a, const FloatMatrix &b)
octave_value elem_xpow (const NDArray &a, const NDArray &b)
octave_value elem_xpow (const FloatComplexMatrix &a, const FloatComplex &b)
octave_value elem_xpow (float a, const FloatNDArray &b)
octave_value elem_xpow (const NDArray &a, const Complex &b)
octave_value elem_xpow (const FloatNDArray &a, float b)
octave_value elem_xpow (const NDArray &a, const ComplexNDArray &b)
octave_value elem_xpow (double a, const Range &r)
octave_value elem_xpow (const Complex &a, const NDArray &b)
octave_value elem_xpow (const Complex &a, const ComplexNDArray &b)
octave_value elem_xpow (const FloatComplex &a, const FloatNDArray &b)
octave_value elem_xpow (const FloatComplexNDArray &a, float b)
octave_value elem_xpow (const ComplexNDArray &a, double b)
octave_value elem_xpow (const FloatComplexNDArray &a, const FloatComplex &b)
octave_value elem_xpow (const ComplexNDArray &a, const NDArray &b)
octave_value elem_xpow (const Matrix &a, double b)
octave_value elem_xpow (const ComplexNDArray &a, const Complex &b)
octave_value elem_xpow (const ComplexNDArray &a, const ComplexNDArray &b)
octave_value elem_xpow (const Matrix &a, const Matrix &b)
octave_value elem_xpow (const Matrix &a, const Complex &b)
octave_value elem_xpow (const Matrix &a, const ComplexMatrix &b)
octave_value elem_xpow (const Complex &a, const Matrix &b)
octave_value elem_xpow (const Complex &a, const ComplexMatrix &b)
octave_value elem_xpow (const Complex &a, const Range &r)
octave_value elem_xpow (const ComplexMatrix &a, double b)
octave_value elem_xpow (const ComplexMatrix &a, const Matrix &b)
static bool same_sign (double a, double b)
static int xisint (double x)
static int xisint (float x)
octave_value xpow (const Matrix &a, const Complex &b)
octave_value xpow (double a, const ComplexMatrix &b)
octave_value xpow (const FloatComplex &a, const FloatComplexMatrix &b)
octave_value xpow (const ComplexMatrix &a, const Complex &b)
octave_value xpow (const DiagMatrix &a, double b)
octave_value xpow (const ComplexMatrix &a, double b)
octave_value xpow (const Complex &a, const Matrix &b)
octave_value xpow (const Complex &a, const ComplexMatrix &b)
octave_value xpow (const Matrix &a, double b)
octave_value xpow (const Complex &a, const Complex &b)
octave_value xpow (float a, float b)
octave_value xpow (float a, const FloatMatrix &b)
octave_value xpow (const FloatMatrix &a, float b)
octave_value xpow (const FloatComplex &a, float b)
octave_value xpow (const FloatComplexDiagMatrix &a, const FloatComplex &b)
octave_value xpow (const ComplexDiagMatrix &a, const Complex &b)
octave_value xpow (const ComplexDiagMatrix &a, double b)
octave_value xpow (const Complex &a, double b)
octave_value xpow (const FloatComplexDiagMatrix &a, float b)
octave_value xpow (const FloatComplex &a, const FloatMatrix &b)
octave_value xpow (const FloatDiagMatrix &a, float b)
octave_value xpow (double a, const Matrix &b)
octave_value xpow (float a, const FloatComplex &b)
octave_value xpow (float a, const FloatComplexMatrix &b)
octave_value xpow (const FloatComplexMatrix &a, const FloatComplex &b)
octave_value xpow (const FloatComplexMatrix &a, float b)
octave_value xpow (const FloatDiagMatrix &a, const FloatComplex &b)
octave_value xpow (const FloatMatrix &a, const FloatComplex &b)
octave_value xpow (double a, const Complex &b)
octave_value xpow (const PermMatrix &a, double b)
octave_value xpow (double a, double b)
octave_value xpow (const DiagMatrix &a, const Complex &b)

Function Documentation

octave_value elem_xpow ( double  a,
const Matrix b 
)

Definition at line 639 of file xpow.cc.

References Matrix::all_integers(), Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( const FloatComplexNDArray a,
const FloatComplexNDArray b 
)
octave_value elem_xpow ( double  a,
const ComplexMatrix b 
)

Definition at line 681 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( const FloatComplexNDArray a,
const FloatNDArray b 
)
octave_value elem_xpow ( const ComplexMatrix a,
const Complex b 
)

Definition at line 1045 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( const FloatComplex a,
const FloatComplexNDArray b 
)

Definition at line 2732 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const ComplexMatrix a,
const ComplexMatrix b 
)
octave_value elem_xpow ( const FloatNDArray a,
const FloatComplexNDArray b 
)
octave_value elem_xpow ( const FloatNDArray a,
const FloatComplex b 
)

Definition at line 2667 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const FloatNDArray a,
const FloatNDArray b 
)
octave_value elem_xpow ( const FloatMatrix a,
float  b 
)
octave_value elem_xpow ( float  a,
const FloatComplexNDArray b 
)

Definition at line 2507 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const FloatMatrix a,
const FloatMatrix b 
)
octave_value elem_xpow ( const FloatComplexMatrix a,
const FloatComplexMatrix b 
)
octave_value elem_xpow ( const FloatMatrix a,
const FloatComplex b 
)

Definition at line 2246 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( const FloatComplexMatrix a,
const FloatMatrix b 
)
octave_value elem_xpow ( const FloatComplexMatrix a,
float  b 
)

Definition at line 2335 of file xpow.cc.

References Array< T >::cols(), pow(), Array< T >::rows(), and xisint().

octave_value elem_xpow ( const FloatMatrix a,
const FloatComplexMatrix b 
)
octave_value elem_xpow ( double  a,
const NDArray b 
)

Definition at line 1121 of file xpow.cc.

References NDArray::all_integers(), Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const FloatComplex a,
const FloatMatrix b 
)

Definition at line 2293 of file xpow.cc.

References Array< T >::cols(), pow(), Array< T >::rows(), and xisint().

octave_value elem_xpow ( const FloatComplex a,
const FloatComplexMatrix b 
)

Definition at line 2316 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( double  a,
const ComplexNDArray b 
)

Definition at line 1154 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const NDArray a,
double  b 
)
octave_value elem_xpow ( float  a,
const FloatComplexMatrix b 
)

Definition at line 2118 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( float  a,
const FloatMatrix b 
)

Definition at line 2076 of file xpow.cc.

References FloatMatrix::all_integers(), Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( const NDArray a,
const NDArray b 
)
octave_value elem_xpow ( const FloatComplexMatrix a,
const FloatComplex b 
)

Definition at line 2398 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( float  a,
const FloatNDArray b 
)
octave_value elem_xpow ( const NDArray a,
const Complex b 
)

Definition at line 1314 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const FloatNDArray a,
float  b 
)
octave_value elem_xpow ( const NDArray a,
const ComplexNDArray b 
)
octave_value elem_xpow ( double  a,
const Range r 
)
octave_value elem_xpow ( const Complex a,
const NDArray b 
)

Definition at line 1360 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), pow(), and xisint().

octave_value elem_xpow ( const Complex a,
const ComplexNDArray b 
)

Definition at line 1379 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const FloatComplex a,
const FloatNDArray b 
)

Definition at line 2713 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), pow(), and xisint().

octave_value elem_xpow ( const FloatComplexNDArray a,
float  b 
)

Definition at line 2747 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), pow(), and xisint().

octave_value elem_xpow ( const ComplexNDArray a,
double  b 
)

Definition at line 1394 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), pow(), and xisint().

octave_value elem_xpow ( const FloatComplexNDArray a,
const FloatComplex b 
)

Definition at line 2816 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const ComplexNDArray a,
const NDArray b 
)
octave_value elem_xpow ( const Matrix a,
double  b 
)
octave_value elem_xpow ( const ComplexNDArray a,
const Complex b 
)

Definition at line 1463 of file xpow.cc.

References Array< T >::dims(), Array< T >::length(), and pow().

octave_value elem_xpow ( const ComplexNDArray a,
const ComplexNDArray b 
)
octave_value elem_xpow ( const Matrix a,
const Matrix b 
)
octave_value elem_xpow ( const Matrix a,
const Complex b 
)

Definition at line 853 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( const Matrix a,
const ComplexMatrix b 
)
octave_value elem_xpow ( const Complex a,
const Matrix b 
)

Definition at line 900 of file xpow.cc.

References Array< T >::cols(), pow(), Array< T >::rows(), and xisint().

octave_value elem_xpow ( const Complex a,
const ComplexMatrix b 
)

Definition at line 923 of file xpow.cc.

References Array< T >::cols(), pow(), and Array< T >::rows().

octave_value elem_xpow ( const Complex a,
const Range r 
)
octave_value elem_xpow ( const ComplexMatrix a,
double  b 
)

Definition at line 982 of file xpow.cc.

References Array< T >::cols(), pow(), Array< T >::rows(), and xisint().

octave_value elem_xpow ( const ComplexMatrix a,
const Matrix b 
)
static bool same_sign ( double  a,
double  b 
) [inline, static]

Definition at line 700 of file xpow.cc.

Referenced by elem_xpow().

static int xisint ( double  x  )  [inline, static]

Definition at line 59 of file xpow.cc.

References D_NINT().

static int xisint ( float  x  )  [inline, static]

Definition at line 1508 of file xpow.cc.

References D_NINT().

octave_value xpow ( const Matrix a,
const Complex b 
)
octave_value xpow ( double  a,
const ComplexMatrix b 
)
octave_value xpow ( const FloatComplex a,
const FloatComplexMatrix b 
)
octave_value xpow ( const ComplexMatrix a,
const Complex b 
)
octave_value xpow ( const DiagMatrix a,
double  b 
)
octave_value xpow ( const ComplexMatrix a,
double  b 
)
octave_value xpow ( const Complex a,
const Matrix b 
)
octave_value xpow ( const Complex a,
const ComplexMatrix b 
)
octave_value xpow ( const Matrix a,
double  b 
)
OCTINTERP_API octave_value xpow ( const Complex a,
const Complex b 
)

Definition at line 1844 of file xpow.cc.

References pow().

octave_value xpow ( float  a,
float  b 
)

Definition at line 1530 of file xpow.cc.

References pow(), and xisint().

octave_value xpow ( float  a,
const FloatMatrix b 
)
octave_value xpow ( const FloatMatrix a,
float  b 
)
octave_value xpow ( const FloatComplex a,
float  b 
)

Definition at line 1791 of file xpow.cc.

References pow(), and xisint().

octave_value xpow ( const FloatComplexDiagMatrix a,
const FloatComplex b 
)

Definition at line 2012 of file xpow.cc.

References DiagArray2< T >::cols(), error(), pow(), and DiagArray2< T >::rows().

octave_value xpow ( const ComplexDiagMatrix a,
const Complex b 
)

Definition at line 574 of file xpow.cc.

References DiagArray2< T >::cols(), error(), pow(), and DiagArray2< T >::rows().

octave_value xpow ( const ComplexDiagMatrix a,
double  b 
)

Definition at line 596 of file xpow.cc.

References xpow().

octave_value xpow ( const Complex a,
double  b 
)

Definition at line 353 of file xpow.cc.

References pow(), and xisint().

octave_value xpow ( const FloatComplexDiagMatrix a,
float  b 
)

Definition at line 2034 of file xpow.cc.

References xpow().

octave_value xpow ( const FloatComplex a,
const FloatMatrix b 
)
octave_value xpow ( const FloatDiagMatrix a,
float  b 
)
octave_value xpow ( double  a,
const Matrix b 
)
octave_value xpow ( float  a,
const FloatComplex b 
)

Definition at line 1592 of file xpow.cc.

References pow().

octave_value xpow ( float  a,
const FloatComplexMatrix b 
)
octave_value xpow ( const FloatComplexMatrix a,
const FloatComplex b 
)
octave_value xpow ( const FloatComplexMatrix a,
float  b 
)
octave_value xpow ( const FloatDiagMatrix a,
const FloatComplex b 
)

Definition at line 2040 of file xpow.cc.

References xpow().

octave_value xpow ( const FloatMatrix a,
const FloatComplex b 
)
octave_value xpow ( double  a,
const Complex b 
)

Definition at line 142 of file xpow.cc.

References pow().

octave_value xpow ( const PermMatrix a,
double  b 
)

Definition at line 307 of file xpow.cc.

References PermMatrix::power(), and xpow().

octave_value xpow ( double  a,
double  b 
)

Definition at line 81 of file xpow.cc.

References pow(), and xisint().

octave_value xpow ( const DiagMatrix a,
const Complex b 
)

Definition at line 602 of file xpow.cc.

References xpow().

 All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Defines