GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cassert>
#include <limits>
#include "Array-util.h"
#include "CColVector.h"
#include "CDiagMatrix.h"
#include "fCDiagMatrix.h"
#include "fCMatrix.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 "mx-fcm-fcdm.h"
#include "oct-cmplx.h"
#include "Range.h"
#include "quit.h"
#include "error.h"
#include "ovl.h"
#include "utils.h"
#include "xpow.h"
#include "bsxfun.h"
Go to the source code of this file.
octave_value elem_xpow | ( | double | a, |
const Matrix & | b | ||
) |
Definition at line 640 of file xpow.cc.
References NDArray::all_integers(), Array< T >::cols(), pow(), result, retval, and Array< T >::rows().
Referenced by elem_xpow().
octave_value elem_xpow | ( | double | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 682 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | double | a, |
const Range & | r | ||
) |
Definition at line 707 of file xpow.cc.
References Range::all_elements_are_ints(), Range::base(), elem_xpow(), Range::inc(), Range::limit(), Range::matrix_value(), Range::numel(), pow(), result, retval, and same_sign().
octave_value elem_xpow | ( | const Matrix & | a, |
double | b | ||
) |
Definition at line 746 of file xpow.cc.
References NDArray::any_element_is_negative(), Array< T >::cols(), pow(), result, retval, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const Matrix & | a, |
const Matrix & | b | ||
) |
Definition at line 788 of file xpow.cc.
References a, b, b_nc, b_nr, Array< T >::cols(), done, octave::err_nonconformant(), pow(), result, retval, and Array< T >::rows().
octave_value elem_xpow | ( | const Matrix & | a, |
const Complex & | b | ||
) |
Definition at line 851 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const Matrix & | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 870 of file xpow.cc.
References b_nc, b_nr, Array< T >::cols(), octave::err_nonconformant(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const Complex & | a, |
const Matrix & | b | ||
) |
Definition at line 895 of file xpow.cc.
References b, Array< T >::cols(), pow(), result, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const Complex & | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 918 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const Complex & | a, |
const Range & | r | ||
) |
Definition at line 936 of file xpow.cc.
References Range::all_elements_are_ints(), Range::base(), elem_xpow(), Range::inc(), Range::limit(), Range::matrix_value(), Range::numel(), pow(), result, retval, and same_sign().
octave_value elem_xpow | ( | const ComplexMatrix & | a, |
double | b | ||
) |
Definition at line 976 of file xpow.cc.
References Array< T >::cols(), pow(), result, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const ComplexMatrix & | a, |
const Matrix & | b | ||
) |
Definition at line 1007 of file xpow.cc.
References b, b_nc, b_nr, Array< T >::cols(), octave::err_nonconformant(), pow(), result, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const ComplexMatrix & | a, |
const Complex & | b | ||
) |
Definition at line 1036 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const ComplexMatrix & | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 1055 of file xpow.cc.
References b_nc, b_nr, Array< T >::cols(), octave::err_nonconformant(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | double | a, |
const NDArray & | b | ||
) |
Definition at line 1108 of file xpow.cc.
References NDArray::all_integers(), b, Array< T >::dims(), Array< T >::numel(), pow(), result, and retval.
octave_value elem_xpow | ( | double | a, |
const ComplexNDArray & | b | ||
) |
Definition at line 1141 of file xpow.cc.
References b, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const NDArray & | a, |
double | b | ||
) |
Definition at line 1156 of file xpow.cc.
References a, NDArray::any_element_is_negative(), b, Array< T >::dims(), Array< T >::numel(), pow(), result, retval, and xisint().
octave_value elem_xpow | ( | const NDArray & | a, |
const NDArray & | b | ||
) |
Definition at line 1226 of file xpow.cc.
References a, NDArray::any_element_is_negative(), b, bsxfun_pow(), Array< T >::dims(), done, octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), octave_value(), octave_value_extract< NDArray >(), pow(), result, and retval.
octave_value elem_xpow | ( | const NDArray & | a, |
const Complex & | b | ||
) |
Definition at line 1296 of file xpow.cc.
References a, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const NDArray & | a, |
const ComplexNDArray & | b | ||
) |
Definition at line 1311 of file xpow.cc.
References a, b, bsxfun_pow(), Array< T >::dims(), octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const Complex & | a, |
const NDArray & | b | ||
) |
Definition at line 1337 of file xpow.cc.
References b, Array< T >::dims(), Array< T >::numel(), pow(), result, and xisint().
octave_value elem_xpow | ( | const Complex & | a, |
const ComplexNDArray & | b | ||
) |
Definition at line 1356 of file xpow.cc.
References b, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const ComplexNDArray & | a, |
double | b | ||
) |
Definition at line 1371 of file xpow.cc.
References a, Array< T >::dims(), Array< T >::numel(), pow(), result, and xisint().
octave_value elem_xpow | ( | const ComplexNDArray & | a, |
const NDArray & | b | ||
) |
Definition at line 1405 of file xpow.cc.
References a, b, bsxfun_pow(), Array< T >::dims(), octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), pow(), result, and xisint().
octave_value elem_xpow | ( | const ComplexNDArray & | a, |
const Complex & | b | ||
) |
Definition at line 1435 of file xpow.cc.
References a, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const ComplexNDArray & | a, |
const ComplexNDArray & | b | ||
) |
Definition at line 1450 of file xpow.cc.
References a, b, bsxfun_pow(), Array< T >::dims(), octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | float | a, |
const FloatMatrix & | b | ||
) |
Definition at line 2035 of file xpow.cc.
References FloatNDArray::all_integers(), Array< T >::cols(), pow(), result, retval, and Array< T >::rows().
octave_value elem_xpow | ( | float | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 2077 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const FloatMatrix & | a, |
float | b | ||
) |
Definition at line 2097 of file xpow.cc.
References FloatNDArray::any_element_is_negative(), Array< T >::cols(), pow(), result, retval, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const FloatMatrix & | a, |
const FloatMatrix & | b | ||
) |
Definition at line 2139 of file xpow.cc.
References a, b, b_nc, b_nr, Array< T >::cols(), done, octave::err_nonconformant(), pow(), result, retval, and Array< T >::rows().
octave_value elem_xpow | ( | const FloatMatrix & | a, |
const FloatComplex & | b | ||
) |
Definition at line 2202 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const FloatMatrix & | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 2221 of file xpow.cc.
References b_nc, b_nr, Array< T >::cols(), octave::err_nonconformant(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const FloatComplex & | a, |
const FloatMatrix & | b | ||
) |
Definition at line 2246 of file xpow.cc.
References b, Array< T >::cols(), pow(), result, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const FloatComplex & | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 2269 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const FloatComplexMatrix & | a, |
float | b | ||
) |
Definition at line 2288 of file xpow.cc.
References Array< T >::cols(), pow(), result, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const FloatComplexMatrix & | a, |
const FloatMatrix & | b | ||
) |
Definition at line 2319 of file xpow.cc.
References b, b_nc, b_nr, Array< T >::cols(), octave::err_nonconformant(), pow(), result, Array< T >::rows(), and xisint().
octave_value elem_xpow | ( | const FloatComplexMatrix & | a, |
const FloatComplex & | b | ||
) |
Definition at line 2348 of file xpow.cc.
References Array< T >::cols(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | const FloatComplexMatrix & | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 2367 of file xpow.cc.
References b_nc, b_nr, Array< T >::cols(), octave::err_nonconformant(), pow(), result, and Array< T >::rows().
octave_value elem_xpow | ( | float | a, |
const FloatNDArray & | b | ||
) |
Definition at line 2420 of file xpow.cc.
References FloatNDArray::all_integers(), b, Array< T >::dims(), Array< T >::numel(), pow(), result, and retval.
octave_value elem_xpow | ( | float | a, |
const FloatComplexNDArray & | b | ||
) |
Definition at line 2453 of file xpow.cc.
References b, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const FloatNDArray & | a, |
float | b | ||
) |
Definition at line 2468 of file xpow.cc.
References a, FloatNDArray::any_element_is_negative(), b, Array< T >::dims(), Array< T >::numel(), pow(), result, retval, and xisint().
octave_value elem_xpow | ( | const FloatNDArray & | a, |
const FloatNDArray & | b | ||
) |
Definition at line 2538 of file xpow.cc.
References a, FloatNDArray::any_element_is_negative(), b, bsxfun_pow(), Array< T >::dims(), done, octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), octave_value(), octave_value_extract< FloatNDArray >(), pow(), result, and retval.
octave_value elem_xpow | ( | const FloatNDArray & | a, |
const FloatComplex & | b | ||
) |
Definition at line 2608 of file xpow.cc.
References a, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const FloatNDArray & | a, |
const FloatComplexNDArray & | b | ||
) |
Definition at line 2623 of file xpow.cc.
References a, b, bsxfun_pow(), Array< T >::dims(), octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const FloatComplex & | a, |
const FloatNDArray & | b | ||
) |
Definition at line 2649 of file xpow.cc.
References b, Array< T >::dims(), Array< T >::numel(), pow(), result, and xisint().
octave_value elem_xpow | ( | const FloatComplex & | a, |
const FloatComplexNDArray & | b | ||
) |
Definition at line 2668 of file xpow.cc.
References b, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const FloatComplexNDArray & | a, |
float | b | ||
) |
Definition at line 2683 of file xpow.cc.
References a, Array< T >::dims(), Array< T >::numel(), pow(), result, and xisint().
octave_value elem_xpow | ( | const FloatComplexNDArray & | a, |
const FloatNDArray & | b | ||
) |
Definition at line 2717 of file xpow.cc.
References a, b, bsxfun_pow(), Array< T >::dims(), octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), pow(), result, and xisint().
octave_value elem_xpow | ( | const FloatComplexNDArray & | a, |
const FloatComplex & | b | ||
) |
Definition at line 2747 of file xpow.cc.
References a, Array< T >::dims(), Array< T >::numel(), pow(), and result.
octave_value elem_xpow | ( | const FloatComplexNDArray & | a, |
const FloatComplexNDArray & | b | ||
) |
Definition at line 2762 of file xpow.cc.
References a, b, bsxfun_pow(), Array< T >::dims(), octave::err_nonconformant(), is_valid_bsxfun(), Array< T >::numel(), pow(), and result.
|
static |
|
static |
Definition at line 701 of file xpow.cc.
Referenced by elem_xpow().
Definition at line 71 of file xpow.cc.
References max(), min(), and octave::math::x_nint().
Referenced by elem_xpow(), and xpow().
|
inlinestatic |
Definition at line 1475 of file xpow.cc.
References max(), min(), and octave::math::x_nint().
octave_value xpow | ( | double | a, |
double | b | ||
) |
octave_value xpow | ( | double | a, |
const Matrix & | b | ||
) |
Definition at line 111 of file xpow.cc.
References C, Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, EIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | double | a, |
const Complex & | b | ||
) |
octave_value xpow | ( | double | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 162 of file xpow.cc.
References Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, EIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const Matrix & | a, |
double | b | ||
) |
Definition at line 201 of file xpow.cc.
References a, b, Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), Matrix::inverse(), pow(), Q, result, retval, EIG::right_eigenvectors(), Array< T >::rows(), and warning().
octave_value xpow | ( | const DiagMatrix & | a, |
double | b | ||
) |
Definition at line 285 of file xpow.cc.
References b, DiagArray2< T >::cols(), DiagArray2< T >::dgelem(), err_nonsquare_matrix(), pow(), retval, and DiagArray2< T >::rows().
octave_value xpow | ( | const PermMatrix & | a, |
double | b | ||
) |
Definition at line 315 of file xpow.cc.
References b, PermMatrix::power(), and xpow().
octave_value xpow | ( | const Matrix & | a, |
const Complex & | b | ||
) |
Definition at line 326 of file xpow.cc.
References Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), pow(), Q, retval, EIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const Complex & | a, |
double | b | ||
) |
octave_value xpow | ( | const Complex & | a, |
const Matrix & | b | ||
) |
Definition at line 374 of file xpow.cc.
References Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, EIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const Complex & | a, |
const Complex & | b | ||
) |
octave_value xpow | ( | const Complex & | a, |
const ComplexMatrix & | b | ||
) |
Definition at line 422 of file xpow.cc.
References Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, EIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const ComplexMatrix & | a, |
double | b | ||
) |
Definition at line 461 of file xpow.cc.
References a, b, Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), ComplexMatrix::inverse(), pow(), Q, result, retval, EIG::right_eigenvectors(), Array< T >::rows(), and warning().
octave_value xpow | ( | const ComplexMatrix & | a, |
const Complex & | b | ||
) |
Definition at line 545 of file xpow.cc.
References Array< T >::cols(), EIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), pow(), Q, retval, EIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const ComplexDiagMatrix & | a, |
const Complex & | b | ||
) |
Definition at line 579 of file xpow.cc.
References a, DiagArray2< T >::cols(), err_nonsquare_matrix(), pow(), retval, and DiagArray2< T >::rows().
octave_value xpow | ( | const ComplexDiagMatrix & | a, |
double | b | ||
) |
octave_value xpow | ( | const DiagMatrix & | a, |
const Complex & | b | ||
) |
octave_value xpow | ( | float | a, |
float | b | ||
) |
octave_value xpow | ( | float | a, |
const FloatMatrix & | b | ||
) |
Definition at line 1515 of file xpow.cc.
References C, Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, FloatEIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | float | a, |
const FloatComplex & | b | ||
) |
octave_value xpow | ( | float | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 1567 of file xpow.cc.
References Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, FloatEIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const FloatMatrix & | a, |
float | b | ||
) |
Definition at line 1606 of file xpow.cc.
References a, b, Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), FloatMatrix::inverse(), pow(), Q, result, retval, FloatEIG::right_eigenvectors(), Array< T >::rows(), and warning().
octave_value xpow | ( | const FloatDiagMatrix & | a, |
float | b | ||
) |
Definition at line 1690 of file xpow.cc.
References b, DiagArray2< T >::cols(), DiagArray2< T >::dgelem(), err_nonsquare_matrix(), pow(), retval, and DiagArray2< T >::rows().
octave_value xpow | ( | const FloatMatrix & | a, |
const FloatComplex & | b | ||
) |
Definition at line 1721 of file xpow.cc.
References Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), pow(), Q, retval, FloatEIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const FloatComplex & | a, |
float | b | ||
) |
octave_value xpow | ( | const FloatComplex & | a, |
const FloatMatrix & | b | ||
) |
Definition at line 1769 of file xpow.cc.
References Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, FloatEIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const FloatComplex & | a, |
const FloatComplex & | b | ||
) |
octave_value xpow | ( | const FloatComplex & | a, |
const FloatComplexMatrix & | b | ||
) |
Definition at line 1817 of file xpow.cc.
References Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), imag(), pow(), Q, real(), retval, FloatEIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const FloatComplexMatrix & | a, |
float | b | ||
) |
Definition at line 1856 of file xpow.cc.
References a, b, Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), FloatComplexMatrix::inverse(), pow(), Q, result, retval, FloatEIG::right_eigenvectors(), Array< T >::rows(), and warning().
octave_value xpow | ( | const FloatComplexMatrix & | a, |
const FloatComplex & | b | ||
) |
Definition at line 1940 of file xpow.cc.
References Array< T >::cols(), FloatEIG::eigenvalues(), err_failed_diagonalization(), err_nonsquare_matrix(), pow(), Q, retval, FloatEIG::right_eigenvectors(), and Array< T >::rows().
octave_value xpow | ( | const FloatComplexDiagMatrix & | a, |
const FloatComplex & | b | ||
) |
Definition at line 1974 of file xpow.cc.
References a, DiagArray2< T >::cols(), err_nonsquare_matrix(), pow(), retval, and DiagArray2< T >::rows().
octave_value xpow | ( | const FloatComplexDiagMatrix & | a, |
float | b | ||
) |
octave_value xpow | ( | const FloatDiagMatrix & | a, |
const FloatComplex & | b | ||
) |