GNU Octave
4.2.1
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include <cassert>
#include "Array-util.h"
#include "lo-array-errwarn.h"
#include "oct-cmplx.h"
#include "quit.h"
#include "error.h"
#include "lo-ieee.h"
#include "dSparse.h"
#include "dDiagMatrix.h"
#include "CSparse.h"
#include "CDiagMatrix.h"
#include "oct-spparms.h"
#include "sparse-xdiv.h"
Go to the source code of this file.
Macros | |
#define | INSTANTIATE_MX_DIV_CONFORM(T1, T2) template bool mx_div_conform (const T1&, const T2&) |
#define | INSTANTIATE_MX_LEFTDIV_CONFORM(T1, T2) template bool mx_leftdiv_conform (const T1&, const T2&) |
#define INSTANTIATE_MX_DIV_CONFORM | ( | T1, | |
T2 | |||
) | template bool mx_div_conform (const T1&, const T2&) |
Definition at line 102 of file sparse-xdiv.cc.
#define INSTANTIATE_MX_LEFTDIV_CONFORM | ( | T1, | |
T2 | |||
) | template bool mx_leftdiv_conform (const T1&, const T2&) |
Definition at line 68 of file sparse-xdiv.cc.
RT do_leftdiv_dm_sm | ( | const DM & | d, |
const SM & | a | ||
) |
Definition at line 560 of file sparse-xdiv.cc.
References a_nc, a_nr, k, min(), mx_leftdiv_conform(), s, and zero.
RT do_rightdiv_sm_dm | ( | const SM & | a, |
const DM & | d | ||
) |
Definition at line 293 of file sparse-xdiv.cc.
References a_nc, a_nr, k, min(), mx_div_conform(), s, and zero.
bool mx_div_conform | ( | const T1 & | a, |
const T2 & | b | ||
) |
Definition at line 86 of file sparse-xdiv.cc.
References a_nc, a_nr, b_nc, b_nr, and octave::err_nonconformant().
Referenced by do_rightdiv_sm_dm(), and xdiv().
template bool mx_div_conform | ( | const SparseMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const Matrix & | , |
const SparseMatrix & | |||
) |
template bool mx_div_conform | ( | const Matrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const ComplexMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_div_conform | ( | const ComplexMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseMatrix & | , |
const DiagMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseMatrix & | , |
const ComplexDiagMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const DiagMatrix & | |||
) |
template bool mx_div_conform | ( | const SparseComplexMatrix & | , |
const ComplexDiagMatrix & | |||
) |
bool mx_leftdiv_conform | ( | const T1 & | a, |
const T2 & | b | ||
) |
Definition at line 52 of file sparse-xdiv.cc.
References a_nc, a_nr, b_nc, b_nr, and octave::err_nonconformant().
Referenced by do_leftdiv_dm_sm(), and xleftdiv().
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const Matrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseMatrix & | , |
const ComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const Matrix & | |||
) |
template bool mx_leftdiv_conform | ( | const SparseComplexMatrix & | , |
const ComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const DiagMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const DiagMatrix & | , |
const SparseComplexMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const ComplexDiagMatrix & | , |
const SparseMatrix & | |||
) |
template bool mx_leftdiv_conform | ( | const ComplexDiagMatrix & | , |
const SparseComplexMatrix & | |||
) |
|
static |
Definition at line 45 of file sparse-xdiv.cc.
References octave::warn_singular_matrix().
Referenced by xdiv(), and xleftdiv().
Matrix x_el_div | ( | double | a, |
const SparseMatrix & | b | ||
) |
Definition at line 371 of file sparse-xdiv.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::elem(), Inf, NaN(), result, Sparse< T >::ridx(), and Sparse< T >::rows().
Referenced by oct_binop_el_ldiv().
ComplexMatrix x_el_div | ( | double | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 395 of file sparse-xdiv.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::elem(), NaN(), result, Sparse< T >::ridx(), and Sparse< T >::rows().
ComplexMatrix x_el_div | ( | const Complex | a, |
const SparseMatrix & | b | ||
) |
Definition at line 414 of file sparse-xdiv.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::elem(), result, Sparse< T >::ridx(), and Sparse< T >::rows().
ComplexMatrix x_el_div | ( | const Complex | a, |
const SparseComplexMatrix & | b | ||
) |
Definition at line 432 of file sparse-xdiv.cc.
References Sparse< T >::cidx(), Sparse< T >::cols(), Sparse< T >::data(), Array< T >::elem(), result, Sparse< T >::ridx(), and Sparse< T >::rows().
Matrix xdiv | ( | const Matrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 133 of file sparse-xdiv.cc.
References mx_div_conform(), result, SparseMatrix::solve(), solve_singularity_warning(), Matrix::transpose(), SparseMatrix::transpose(), and MatrixType::transpose().
Referenced by oct_binop_div(), oct_binop_div_scm_cdm(), oct_binop_div_scm_dm(), oct_binop_div_sm_cdm(), and oct_binop_div_sm_dm().
ComplexMatrix xdiv | ( | const Matrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 153 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), ComplexMatrix::hermitian(), mx_div_conform(), result, SparseComplexMatrix::solve(), solve_singularity_warning(), Matrix::transpose(), and MatrixType::transpose().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 173 of file sparse-xdiv.cc.
References ComplexMatrix::hermitian(), mx_div_conform(), result, SparseMatrix::solve(), solve_singularity_warning(), SparseMatrix::transpose(), and MatrixType::transpose().
ComplexMatrix xdiv | ( | const ComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 193 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), ComplexMatrix::hermitian(), mx_div_conform(), result, SparseComplexMatrix::solve(), solve_singularity_warning(), and MatrixType::transpose().
SparseMatrix xdiv | ( | const SparseMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 213 of file sparse-xdiv.cc.
References mx_div_conform(), result, SparseMatrix::solve(), solve_singularity_warning(), SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xdiv | ( | const SparseMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 233 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), mx_div_conform(), result, SparseComplexMatrix::solve(), solve_singularity_warning(), SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 253 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), mx_div_conform(), result, SparseMatrix::solve(), solve_singularity_warning(), SparseMatrix::transpose(), and MatrixType::transpose().
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 273 of file sparse-xdiv.cc.
References SparseComplexMatrix::hermitian(), mx_div_conform(), result, SparseComplexMatrix::solve(), solve_singularity_warning(), and MatrixType::transpose().
SparseMatrix xdiv | ( | const SparseMatrix & | a, |
const DiagMatrix & | b, | ||
MatrixType & | |||
) |
Definition at line 335 of file sparse-xdiv.cc.
SparseComplexMatrix xdiv | ( | const SparseMatrix & | a, |
const ComplexDiagMatrix & | b, | ||
MatrixType & | |||
) |
Definition at line 342 of file sparse-xdiv.cc.
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const DiagMatrix & | b, | ||
MatrixType & | |||
) |
Definition at line 349 of file sparse-xdiv.cc.
SparseComplexMatrix xdiv | ( | const SparseComplexMatrix & | a, |
const ComplexDiagMatrix & | b, | ||
MatrixType & | |||
) |
Definition at line 356 of file sparse-xdiv.cc.
Matrix xleftdiv | ( | const SparseMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 464 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseMatrix::solve(), and solve_singularity_warning().
Referenced by oct_binop_herm_ldiv(), oct_binop_ldiv(), oct_binop_ldiv_cdm_scm(), oct_binop_ldiv_cdm_sm(), oct_binop_ldiv_dm_scm(), oct_binop_ldiv_dm_sm(), and oct_binop_trans_ldiv().
ComplexMatrix xleftdiv | ( | const SparseMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 476 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseMatrix::solve(), and solve_singularity_warning().
SparseMatrix xleftdiv | ( | const SparseMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 488 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseMatrix::solve(), and solve_singularity_warning().
SparseComplexMatrix xleftdiv | ( | const SparseMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 500 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseMatrix::solve(), and solve_singularity_warning().
ComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const Matrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 512 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseComplexMatrix::solve(), and solve_singularity_warning().
ComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const ComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 524 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseComplexMatrix::solve(), and solve_singularity_warning().
SparseComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const SparseMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 536 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseComplexMatrix::solve(), and solve_singularity_warning().
SparseComplexMatrix xleftdiv | ( | const SparseComplexMatrix & | a, |
const SparseComplexMatrix & | b, | ||
MatrixType & | typ | ||
) |
Definition at line 548 of file sparse-xdiv.cc.
References mx_leftdiv_conform(), SparseComplexMatrix::solve(), and solve_singularity_warning().
SparseMatrix xleftdiv | ( | const DiagMatrix & | d, |
const SparseMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 608 of file sparse-xdiv.cc.
SparseComplexMatrix xleftdiv | ( | const DiagMatrix & | d, |
const SparseComplexMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 615 of file sparse-xdiv.cc.
SparseComplexMatrix xleftdiv | ( | const ComplexDiagMatrix & | d, |
const SparseMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 622 of file sparse-xdiv.cc.
SparseComplexMatrix xleftdiv | ( | const ComplexDiagMatrix & | d, |
const SparseComplexMatrix & | a, | ||
MatrixType & | |||
) |
Definition at line 629 of file sparse-xdiv.cc.