GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cfloat>
#include <iostream>
#include <vector>
#include "quit.h"
#include "lo-ieee.h"
#include "lo-mappers.h"
#include "f77-fcn.h"
#include "dRowVector.h"
#include "lo-lapack-proto.h"
#include "mx-m-cs.h"
#include "mx-cs-m.h"
#include "mx-cm-s.h"
#include "mx-fcm-fs.h"
#include "mx-s-cm.h"
#include "mx-fs-fcm.h"
#include "oct-locbuf.h"
#include "dDiagMatrix.h"
#include "CDiagMatrix.h"
#include "CSparse.h"
#include "boolSparse.h"
#include "dSparse.h"
#include "functor.h"
#include "oct-spparms.h"
#include "sparse-lu.h"
#include "oct-sparse.h"
#include "sparse-util.h"
#include "sparse-chol.h"
#include "sparse-qr.h"
#include "Sparse-op-defs.h"
#include "Sparse-diag-op-defs.h"
#include "Sparse-perm-op-defs.h"
#include "sparse-dmsolve.h"
Go to the source code of this file.
Macros | |
#define | COL_EXPR |
#define | EMPTY_RETURN_CHECK(T) |
#define | ROW_EXPR |
#define COL_EXPR |
Referenced by SparseComplexMatrix::sumsq().
#define EMPTY_RETURN_CHECK | ( | T | ) |
Definition at line 7526 of file CSparse.cc.
#define ROW_EXPR |
Referenced by SparseComplexMatrix::sumsq().
|
static |
Referenced by SparseComplexMatrix::max(), and SparseComplexMatrix::min().
SparseComplexMatrix conj | ( | const SparseComplexMatrix & | a | ) |
Definition at line 641 of file CSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::nnz(), retval, Sparse< T >::ridx(), and Sparse< T >::rows().
Referenced by herm_mul(), and mul_herm().
ComplexMatrix herm_mul | ( | const SparseComplexMatrix & | m, |
const ComplexMatrix & | a | ||
) |
Definition at line 7409 of file CSparse.cc.
References conj(), and SPARSE_FULL_TRANS_MUL.
Referenced by install_cm_cm_ops(), install_fcm_fcm_ops(), and install_scm_cm_ops().
SparseComplexMatrix max | ( | const Complex & | c, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7648 of file CSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), EMPTY_RETURN_CHECK, octave::math::max(), result, Sparse< T >::ridx(), Sparse< T >::rows(), and Sparse< T >::xdata().
Referenced by max().
SparseComplexMatrix max | ( | const SparseComplexMatrix & | m, |
const Complex & | c | ||
) |
Definition at line 7672 of file CSparse.cc.
References max().
SparseComplexMatrix max | ( | const SparseComplexMatrix & | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 7678 of file CSparse.cc.
References a_nc, a_nr, b_nc, b_nr, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave::err_nonconformant(), octave::math::max(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::resize(), Sparse< T >::ridx(), Sparse< T >::rows(), and tmp.
SparseComplexMatrix min | ( | const Complex & | c, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7531 of file CSparse.cc.
References abs(), Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), EMPTY_RETURN_CHECK, octave::math::min(), result, and Sparse< T >::rows().
Referenced by min().
SparseComplexMatrix min | ( | const SparseComplexMatrix & | m, |
const Complex & | c | ||
) |
Definition at line 7555 of file CSparse.cc.
References min().
SparseComplexMatrix min | ( | const SparseComplexMatrix & | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 7561 of file CSparse.cc.
References a_nc, a_nr, b_nc, b_nr, Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave::err_nonconformant(), Sparse< T >::maybe_compress(), octave::math::min(), Sparse< T >::nnz(), Sparse< T >::resize(), Sparse< T >::ridx(), Sparse< T >::rows(), and tmp.
ComplexMatrix mul_herm | ( | const ComplexMatrix & | m, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7379 of file CSparse.cc.
References conj(), and FULL_SPARSE_MUL_TRANS.
Referenced by install_cm_cm_ops(), install_cm_scm_ops(), and install_fcm_fcm_ops().
ComplexMatrix mul_trans | ( | const ComplexMatrix & | m, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7373 of file CSparse.cc.
References FULL_SPARSE_MUL_TRANS.
Referenced by install_cm_cm_ops(), install_cm_m_ops(), install_cm_scm_ops(), install_fcm_fcm_ops(), install_fcm_fm_ops(), install_fm_fm_ops(), install_m_m_ops(), and install_m_sm_ops().
SparseBoolMatrix mx_el_and | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7766 of file CSparse.cc.
SparseBoolMatrix mx_el_and | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7770 of file CSparse.cc.
SparseBoolMatrix mx_el_and | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7774 of file CSparse.cc.
SparseBoolMatrix mx_el_eq | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7765 of file CSparse.cc.
SparseBoolMatrix mx_el_eq | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7769 of file CSparse.cc.
SparseBoolMatrix mx_el_eq | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7773 of file CSparse.cc.
SparseBoolMatrix mx_el_ge | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7765 of file CSparse.cc.
SparseBoolMatrix mx_el_ge | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7769 of file CSparse.cc.
SparseBoolMatrix mx_el_ge | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7773 of file CSparse.cc.
SparseBoolMatrix mx_el_gt | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7765 of file CSparse.cc.
SparseBoolMatrix mx_el_gt | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7769 of file CSparse.cc.
SparseBoolMatrix mx_el_gt | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7773 of file CSparse.cc.
SparseBoolMatrix mx_el_le | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7765 of file CSparse.cc.
SparseBoolMatrix mx_el_le | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7769 of file CSparse.cc.
SparseBoolMatrix mx_el_le | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7773 of file CSparse.cc.
SparseBoolMatrix mx_el_lt | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7765 of file CSparse.cc.
SparseBoolMatrix mx_el_lt | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7769 of file CSparse.cc.
SparseBoolMatrix mx_el_lt | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7773 of file CSparse.cc.
SparseBoolMatrix mx_el_ne | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7765 of file CSparse.cc.
SparseBoolMatrix mx_el_ne | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7769 of file CSparse.cc.
SparseBoolMatrix mx_el_ne | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7773 of file CSparse.cc.
SparseBoolMatrix mx_el_or | ( | const SparseComplexMatrix & | m, |
const Complex & | s | ||
) |
Definition at line 7766 of file CSparse.cc.
SparseBoolMatrix mx_el_or | ( | const Complex & | s, |
const SparseComplexMatrix & | m | ||
) |
Definition at line 7770 of file CSparse.cc.
SparseBoolMatrix mx_el_or | ( | const SparseComplexMatrix & | m1, |
const SparseComplexMatrix & | m2 | ||
) |
Definition at line 7774 of file CSparse.cc.
SparseComplexMatrix operator* | ( | const SparseComplexMatrix & | m, |
const SparseMatrix & | a | ||
) |
Definition at line 7337 of file CSparse.cc.
References SPARSE_SPARSE_MUL.
SparseComplexMatrix operator* | ( | const SparseMatrix & | m, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7343 of file CSparse.cc.
References SPARSE_SPARSE_MUL.
SparseComplexMatrix operator* | ( | const SparseComplexMatrix & | m, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7349 of file CSparse.cc.
References SPARSE_SPARSE_MUL.
ComplexMatrix operator* | ( | const ComplexMatrix & | m, |
const SparseMatrix & | a | ||
) |
Definition at line 7355 of file CSparse.cc.
References FULL_SPARSE_MUL.
ComplexMatrix operator* | ( | const Matrix & | m, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7361 of file CSparse.cc.
References FULL_SPARSE_MUL.
ComplexMatrix operator* | ( | const ComplexMatrix & | m, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7367 of file CSparse.cc.
References FULL_SPARSE_MUL.
ComplexMatrix operator* | ( | const SparseComplexMatrix & | m, |
const Matrix & | a | ||
) |
Definition at line 7385 of file CSparse.cc.
References SPARSE_FULL_MUL.
ComplexMatrix operator* | ( | const SparseMatrix & | m, |
const ComplexMatrix & | a | ||
) |
Definition at line 7391 of file CSparse.cc.
References SPARSE_FULL_MUL.
ComplexMatrix operator* | ( | const SparseComplexMatrix & | m, |
const ComplexMatrix & | a | ||
) |
Definition at line 7397 of file CSparse.cc.
References SPARSE_FULL_MUL.
SparseComplexMatrix operator* | ( | const DiagMatrix & | d, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7416 of file CSparse.cc.
SparseComplexMatrix operator* | ( | const SparseComplexMatrix & | a, |
const DiagMatrix & | d | ||
) |
Definition at line 7421 of file CSparse.cc.
SparseComplexMatrix operator* | ( | const ComplexDiagMatrix & | d, |
const SparseMatrix & | a | ||
) |
Definition at line 7427 of file CSparse.cc.
SparseComplexMatrix operator* | ( | const SparseMatrix & | a, |
const ComplexDiagMatrix & | d | ||
) |
Definition at line 7432 of file CSparse.cc.
SparseComplexMatrix operator* | ( | const ComplexDiagMatrix & | d, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7438 of file CSparse.cc.
SparseComplexMatrix operator* | ( | const SparseComplexMatrix & | a, |
const ComplexDiagMatrix & | d | ||
) |
Definition at line 7443 of file CSparse.cc.
SparseComplexMatrix operator* | ( | const PermMatrix & | p, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7513 of file CSparse.cc.
References octinternal_do_mul_pm_sm().
SparseComplexMatrix operator* | ( | const SparseComplexMatrix & | a, |
const PermMatrix & | p | ||
) |
Definition at line 7519 of file CSparse.cc.
References octinternal_do_mul_sm_pm().
SparseComplexMatrix operator+ | ( | const ComplexDiagMatrix & | d, |
const SparseMatrix & | a | ||
) |
Definition at line 7449 of file CSparse.cc.
SparseComplexMatrix operator+ | ( | const DiagMatrix & | d, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7454 of file CSparse.cc.
SparseComplexMatrix operator+ | ( | const ComplexDiagMatrix & | d, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7459 of file CSparse.cc.
SparseComplexMatrix operator+ | ( | const SparseMatrix & | a, |
const ComplexDiagMatrix & | d | ||
) |
Definition at line 7464 of file CSparse.cc.
SparseComplexMatrix operator+ | ( | const SparseComplexMatrix & | a, |
const DiagMatrix & | d | ||
) |
Definition at line 7469 of file CSparse.cc.
SparseComplexMatrix operator+ | ( | const SparseComplexMatrix & | a, |
const ComplexDiagMatrix & | d | ||
) |
Definition at line 7474 of file CSparse.cc.
SparseComplexMatrix operator- | ( | const ComplexDiagMatrix & | d, |
const SparseMatrix & | a | ||
) |
Definition at line 7480 of file CSparse.cc.
SparseComplexMatrix operator- | ( | const DiagMatrix & | d, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7485 of file CSparse.cc.
SparseComplexMatrix operator- | ( | const ComplexDiagMatrix & | d, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7490 of file CSparse.cc.
SparseComplexMatrix operator- | ( | const SparseMatrix & | a, |
const ComplexDiagMatrix & | d | ||
) |
Definition at line 7495 of file CSparse.cc.
SparseComplexMatrix operator- | ( | const SparseComplexMatrix & | a, |
const DiagMatrix & | d | ||
) |
Definition at line 7500 of file CSparse.cc.
SparseComplexMatrix operator- | ( | const SparseComplexMatrix & | a, |
const ComplexDiagMatrix & | d | ||
) |
Definition at line 7505 of file CSparse.cc.
std::ostream& operator<< | ( | std::ostream & | os, |
const SparseComplexMatrix & | a | ||
) |
Definition at line 7308 of file CSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave_write_complex(), and Sparse< T >::ridx().
std::istream& operator>> | ( | std::istream & | is, |
SparseComplexMatrix & | a | ||
) |
Definition at line 7329 of file CSparse.cc.
ComplexMatrix trans_mul | ( | const SparseComplexMatrix & | m, |
const ComplexMatrix & | a | ||
) |
Definition at line 7403 of file CSparse.cc.
References SPARSE_FULL_TRANS_MUL.
Referenced by install_cm_cm_ops(), install_fcm_fcm_ops(), install_fm_fcm_ops(), install_fm_fm_ops(), install_m_cm_ops(), install_m_m_ops(), install_scm_cm_ops(), and install_sm_m_ops().