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 "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"
Go to the source code of this file.
octave_value elem_xpow | ( | double | a, |
const SparseMatrix & | b | ||
) |
Definition at line 247 of file sparse-xpow.cc.
References SparseMatrix::all_integers(), b, Sparse< T >::cols(), pow(), result, retval, and Sparse< T >::rows().
Referenced by oct_binop_el_pow(), and scalar_xpow().
octave_value elem_xpow | ( | double | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 293 of file sparse-xpow.cc.
References b, Sparse< T >::cols(), pow(), result, and Sparse< T >::rows().
octave_value elem_xpow | ( | const SparseMatrix & | a, |
double | b | ||
) |
Definition at line 315 of file sparse-xpow.cc.
References SparseMatrix::any_element_is_negative(), b, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), octave_value(), pow(), result, retval, Sparse< T >::ridx(), and Sparse< T >::rows().
octave_value elem_xpow | ( | const SparseMatrix & | a, |
const SparseMatrix & | b | ||
) |
Definition at line 405 of file sparse-xpow.cc.
References a, b, b_nc, b_nr, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), done, octave::err_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::numel(), pow(), result, retval, Sparse< T >::ridx(), Sparse< T >::rows(), scalar_xpow(), and Sparse< T >::xelem().
octave_value elem_xpow | ( | const SparseMatrix & | a, |
const Complex & | b | ||
) |
Definition at line 481 of file sparse-xpow.cc.
References Sparse< T >::data(), Sparse< T >::dims(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), octave_value(), pow(), result, and retval.
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, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave::err_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::numel(), pow(), result, Sparse< T >::ridx(), Sparse< T >::rows(), scalar_xpow(), and Sparse< T >::xelem().
octave_value elem_xpow | ( | const Complex & | a, |
const SparseMatrix & | b | ||
) |
Definition at line 540 of file sparse-xpow.cc.
References b, Sparse< T >::cols(), pow(), result, Sparse< T >::rows(), and xisint().
octave_value elem_xpow | ( | const Complex & | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 565 of file sparse-xpow.cc.
References Sparse< T >::cols(), pow(), result, and Sparse< T >::rows().
octave_value elem_xpow | ( | const SparseComplexMatrix & | a, |
double | b | ||
) |
Definition at line 583 of file sparse-xpow.cc.
References b, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), pow(), result, retval, Sparse< T >::ridx(), Sparse< T >::rows(), and xisint().
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, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave::err_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::numel(), pow(), result, Sparse< T >::ridx(), Sparse< T >::rows(), scalar_xpow(), Sparse< T >::xelem(), and xisint().
octave_value elem_xpow | ( | const SparseComplexMatrix & | a, |
const Complex & | b | ||
) |
Definition at line 686 of file sparse-xpow.cc.
References b, Sparse< T >::data(), Sparse< T >::dims(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), octave_value(), pow(), result, and retval.
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, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave::err_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::numel(), pow(), result, Sparse< T >::ridx(), Sparse< T >::rows(), scalar_xpow(), and Sparse< T >::xelem().
|
inline |
Definition at line 230 of file sparse-xpow.cc.
References octave_value::complex_matrix_value(), elem_xpow(), octave_value::is_complex_type(), octave_value::matrix_value(), and val.
Referenced by elem_xpow().
Definition at line 47 of file sparse-xpow.cc.
References max(), min(), and octave::math::x_nint().
Referenced by elem_xpow().
octave_value xpow | ( | const SparseMatrix & | a, |
double | b | ||
) |
Definition at line 58 of file sparse-xpow.cc.
References a, b, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), error(), SparseMatrix::inverse(), result, retval, Sparse< T >::ridx(), Sparse< T >::rows(), tmp, and warning().
Referenced by oct_binop_dmspow(), and oct_binop_pow().
octave_value xpow | ( | const SparseComplexMatrix & | a, |
double | b | ||
) |
Definition at line 126 of file sparse-xpow.cc.
References a, b, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), error(), SparseComplexMatrix::inverse(), result, retval, Sparse< T >::ridx(), Sparse< T >::rows(), tmp, and warning().