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 <functional>
#include "quit.h"
#include "lo-ieee.h"
#include "lo-lapack-proto.h"
#include "lo-mappers.h"
#include "dRowVector.h"
#include "oct-locbuf.h"
#include "dDiagMatrix.h"
#include "CSparse.h"
#include "boolSparse.h"
#include "dSparse.h"
#include "functor.h"
#include "oct-spparms.h"
#include "sparse-lu.h"
#include "MatrixType.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 SparseMatrix::sumsq().
#define EMPTY_RETURN_CHECK | ( | T | ) |
Definition at line 7580 of file dSparse.cc.
#define ROW_EXPR |
Referenced by SparseMatrix::sumsq().
SparseMatrix atan2 | ( | const double & | x, |
const SparseMatrix & | y | ||
) |
Definition at line 606 of file dSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::elem(), Sparse< T >::ridx(), Sparse< T >::rows(), and tmp.
Referenced by atan2(), and octave::math::log1p().
SparseMatrix atan2 | ( | const SparseMatrix & | x, |
const double & | y | ||
) |
Definition at line 628 of file dSparse.cc.
References atan2(), Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::nnz(), retval, Sparse< T >::ridx(), Sparse< T >::rows(), tmp, Sparse< T >::xcidx(), Sparse< T >::xdata(), Sparse< T >::xridx(), and y.
SparseMatrix atan2 | ( | const SparseMatrix & | x, |
const SparseMatrix & | y | ||
) |
Definition at line 669 of file dSparse.cc.
References atan2(), Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave::err_nonconformant(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), Sparse< T >::rows(), and tmp.
SparseMatrix imag | ( | const SparseComplexMatrix & | a | ) |
Definition at line 578 of file dSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave::math::imag(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), Sparse< T >::ridx(), and Sparse< T >::rows().
SparseMatrix max | ( | double | d, |
const SparseMatrix & | m | ||
) |
Definition at line 7735 of file dSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), EMPTY_RETURN_CHECK, octave::math::max(), result, Sparse< T >::ridx(), Sparse< T >::rows(), tmp, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by max().
SparseMatrix max | ( | const SparseMatrix & | m, |
double | d | ||
) |
Definition at line 7792 of file dSparse.cc.
References max().
SparseMatrix max | ( | const SparseMatrix & | a, |
const SparseMatrix & | b | ||
) |
Definition at line 7798 of file dSparse.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.
SparseMatrix min | ( | double | d, |
const SparseMatrix & | m | ||
) |
Definition at line 7585 of file dSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::columns(), Sparse< T >::data(), EMPTY_RETURN_CHECK, octave::math::min(), result, Sparse< T >::ridx(), Sparse< T >::rows(), tmp, Sparse< T >::xcidx(), Sparse< T >::xdata(), and Sparse< T >::xridx().
Referenced by min().
SparseMatrix min | ( | const SparseMatrix & | m, |
double | d | ||
) |
Definition at line 7642 of file dSparse.cc.
References min().
SparseMatrix min | ( | const SparseMatrix & | a, |
const SparseMatrix & | b | ||
) |
Definition at line 7648 of file dSparse.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.
Matrix mul_trans | ( | const Matrix & | m, |
const SparseMatrix & | a | ||
) |
Definition at line 7509 of file dSparse.cc.
References FULL_SPARSE_MUL_TRANS.
SparseBoolMatrix mx_el_and | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7885 of file dSparse.cc.
SparseBoolMatrix mx_el_and | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7888 of file dSparse.cc.
SparseBoolMatrix mx_el_and | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7891 of file dSparse.cc.
SparseBoolMatrix mx_el_eq | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7884 of file dSparse.cc.
SparseBoolMatrix mx_el_eq | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7887 of file dSparse.cc.
SparseBoolMatrix mx_el_eq | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7890 of file dSparse.cc.
SparseBoolMatrix mx_el_ge | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7884 of file dSparse.cc.
SparseBoolMatrix mx_el_ge | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7887 of file dSparse.cc.
SparseBoolMatrix mx_el_ge | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7890 of file dSparse.cc.
SparseBoolMatrix mx_el_gt | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7884 of file dSparse.cc.
SparseBoolMatrix mx_el_gt | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7887 of file dSparse.cc.
SparseBoolMatrix mx_el_gt | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7890 of file dSparse.cc.
SparseBoolMatrix mx_el_le | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7884 of file dSparse.cc.
SparseBoolMatrix mx_el_le | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7887 of file dSparse.cc.
SparseBoolMatrix mx_el_le | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7890 of file dSparse.cc.
SparseBoolMatrix mx_el_lt | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7884 of file dSparse.cc.
SparseBoolMatrix mx_el_lt | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7887 of file dSparse.cc.
SparseBoolMatrix mx_el_lt | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7890 of file dSparse.cc.
SparseBoolMatrix mx_el_ne | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7884 of file dSparse.cc.
SparseBoolMatrix mx_el_ne | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7887 of file dSparse.cc.
SparseBoolMatrix mx_el_ne | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7890 of file dSparse.cc.
SparseBoolMatrix mx_el_or | ( | const SparseMatrix & | m, |
const double & | s | ||
) |
Definition at line 7885 of file dSparse.cc.
SparseBoolMatrix mx_el_or | ( | const double & | s, |
const SparseMatrix & | m | ||
) |
Definition at line 7888 of file dSparse.cc.
SparseBoolMatrix mx_el_or | ( | const SparseMatrix & | m1, |
const SparseMatrix & | m2 | ||
) |
Definition at line 7891 of file dSparse.cc.
SparseMatrix operator* | ( | const SparseMatrix & | m, |
const SparseMatrix & | a | ||
) |
Definition at line 7497 of file dSparse.cc.
References SPARSE_SPARSE_MUL.
Matrix operator* | ( | const Matrix & | m, |
const SparseMatrix & | a | ||
) |
Definition at line 7503 of file dSparse.cc.
References FULL_SPARSE_MUL.
Matrix operator* | ( | const SparseMatrix & | m, |
const Matrix & | a | ||
) |
Definition at line 7515 of file dSparse.cc.
References SPARSE_FULL_MUL.
SparseMatrix operator* | ( | const DiagMatrix & | d, |
const SparseMatrix & | a | ||
) |
Definition at line 7529 of file dSparse.cc.
SparseMatrix operator* | ( | const SparseMatrix & | a, |
const DiagMatrix & | d | ||
) |
Definition at line 7535 of file dSparse.cc.
SparseMatrix operator* | ( | const PermMatrix & | p, |
const SparseMatrix & | a | ||
) |
Definition at line 7567 of file dSparse.cc.
References octinternal_do_mul_pm_sm().
SparseMatrix operator* | ( | const SparseMatrix & | a, |
const PermMatrix & | p | ||
) |
Definition at line 7573 of file dSparse.cc.
References octinternal_do_mul_sm_pm().
SparseMatrix operator+ | ( | const DiagMatrix & | d, |
const SparseMatrix & | a | ||
) |
Definition at line 7541 of file dSparse.cc.
SparseMatrix operator+ | ( | const SparseMatrix & | a, |
const DiagMatrix & | d | ||
) |
Definition at line 7553 of file dSparse.cc.
SparseMatrix operator- | ( | const DiagMatrix & | d, |
const SparseMatrix & | a | ||
) |
Definition at line 7547 of file dSparse.cc.
SparseMatrix operator- | ( | const SparseMatrix & | a, |
const DiagMatrix & | d | ||
) |
Definition at line 7559 of file dSparse.cc.
std::ostream& operator<< | ( | std::ostream & | os, |
const SparseMatrix & | a | ||
) |
Definition at line 7442 of file dSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), octave_write_double(), and Sparse< T >::ridx().
std::istream& operator>> | ( | std::istream & | is, |
SparseMatrix & | a | ||
) |
Definition at line 7463 of file dSparse.cc.
SparseMatrix real | ( | const SparseComplexMatrix & | a | ) |
Definition at line 557 of file dSparse.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Sparse< T >::maybe_compress(), Sparse< T >::nnz(), octave::math::real(), Sparse< T >::ridx(), and Sparse< T >::rows().
Matrix trans_mul | ( | const SparseMatrix & | m, |
const Matrix & | a | ||
) |
Definition at line 7521 of file dSparse.cc.
References SPARSE_FULL_TRANS_MUL.