GNU Octave  4.4.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
sparse-xpow.cc File Reference
#include <cassert>
#include <limits>
#include "Array-util.h"
#include "oct-cmplx.h"
#include "quit.h"
#include "error.h"
#include "ovl.h"
#include "utils.h"
#include "dSparse.h"
#include "CSparse.h"
#include "ov-re-sparse.h"
#include "ov-cx-sparse.h"
#include "sparse-xpow.h"
Include dependency graph for sparse-xpow.cc:

Go to the source code of this file.

Functions

octave_value elem_xpow (double a, const SparseMatrix &b)
 
octave_value elem_xpow (double a, const SparseComplexMatrix &b)
 
octave_value elem_xpow (const SparseMatrix &a, double b)
 
octave_value elem_xpow (const SparseMatrix &a, const SparseMatrix &b)
 
octave_value elem_xpow (const SparseMatrix &a, const Complex &b)
 
octave_value elem_xpow (const SparseMatrix &a, const SparseComplexMatrix &b)
 
octave_value elem_xpow (const Complex &a, const SparseMatrix &b)
 
octave_value elem_xpow (const Complex &a, const SparseComplexMatrix &b)
 
octave_value elem_xpow (const SparseComplexMatrix &a, double b)
 
octave_value elem_xpow (const SparseComplexMatrix &a, const SparseMatrix &b)
 
octave_value elem_xpow (const SparseComplexMatrix &a, const Complex &b)
 
octave_value elem_xpow (const SparseComplexMatrix &a, const SparseComplexMatrix &b)
 
template<typename S , typename SM >
octave_value scalar_xpow (const S &a, const SM &b)
 
static int xisint (double x)
 
octave_value xpow (const SparseMatrix &a, double b)
 
octave_value xpow (const SparseComplexMatrix &a, double b)
 

Function Documentation

◆ elem_xpow() [1/12]

octave_value elem_xpow ( double  a,
const SparseMatrix b 
)

Definition at line 247 of file sparse-xpow.cc.

References a, b, i, pow(), result, and retval.

Referenced by oct_binop_el_pow(), and scalar_xpow().

◆ elem_xpow() [2/12]

octave_value elem_xpow ( double  a,
const SparseComplexMatrix b 
)

Definition at line 293 of file sparse-xpow.cc.

References a, b, i, pow(), and result.

◆ elem_xpow() [3/12]

octave_value elem_xpow ( const SparseMatrix a,
double  b 
)

Definition at line 315 of file sparse-xpow.cc.

References a, b, i, octave_value(), pow(), result, and retval.

◆ elem_xpow() [4/12]

octave_value elem_xpow ( const SparseMatrix a,
const SparseMatrix b 
)

◆ elem_xpow() [5/12]

octave_value elem_xpow ( const SparseMatrix a,
const Complex b 
)

Definition at line 481 of file sparse-xpow.cc.

References a, b, i, octave_value(), pow(), result, and retval.

◆ elem_xpow() [6/12]

octave_value elem_xpow ( const SparseMatrix a,
const SparseComplexMatrix b 
)

Definition at line 509 of file sparse-xpow.cc.

References a, b, b_nc, b_nr, octave::err_nonconformant(), i, pow(), result, and scalar_xpow().

◆ elem_xpow() [7/12]

octave_value elem_xpow ( const Complex a,
const SparseMatrix b 
)

Definition at line 540 of file sparse-xpow.cc.

References a, b, i, pow(), result, and xisint().

◆ elem_xpow() [8/12]

octave_value elem_xpow ( const Complex a,
const SparseComplexMatrix b 
)

Definition at line 565 of file sparse-xpow.cc.

References a, b, i, pow(), and result.

◆ elem_xpow() [9/12]

octave_value elem_xpow ( const SparseComplexMatrix a,
double  b 
)

Definition at line 583 of file sparse-xpow.cc.

References a, b, i, pow(), result, retval, and xisint().

◆ elem_xpow() [10/12]

octave_value elem_xpow ( const SparseComplexMatrix a,
const SparseMatrix b 
)

Definition at line 649 of file sparse-xpow.cc.

References a, b, b_nc, b_nr, octave::err_nonconformant(), i, pow(), result, scalar_xpow(), and xisint().

◆ elem_xpow() [11/12]

octave_value elem_xpow ( const SparseComplexMatrix a,
const Complex b 
)

Definition at line 686 of file sparse-xpow.cc.

References a, b, i, octave_value(), pow(), result, and retval.

◆ elem_xpow() [12/12]

octave_value elem_xpow ( const SparseComplexMatrix a,
const SparseComplexMatrix b 
)

Definition at line 716 of file sparse-xpow.cc.

References a, b, b_nc, b_nr, octave::err_nonconformant(), i, pow(), result, and scalar_xpow().

◆ scalar_xpow()

template<typename S , typename SM >
octave_value scalar_xpow ( const S &  a,
const SM &  b 
)
inline

Definition at line 230 of file sparse-xpow.cc.

References a, b, elem_xpow(), and val.

Referenced by elem_xpow().

◆ xisint()

static int xisint ( double  x)
inlinestatic

Definition at line 47 of file sparse-xpow.cc.

References max(), min(), x, and octave::math::x_nint().

Referenced by elem_xpow().

◆ xpow() [1/2]

octave_value xpow ( const SparseMatrix a,
double  b 
)

Definition at line 58 of file sparse-xpow.cc.

References a, b, error(), i, result, retval, tmp, and warning().

Referenced by oct_binop_dmspow(), and oct_binop_pow().

◆ xpow() [2/2]

octave_value xpow ( const SparseComplexMatrix a,
double  b 
)

Definition at line 126 of file sparse-xpow.cc.

References a, b, error(), i, result, retval, tmp, and warning().