GNU Octave
4.0.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
|
#include "fMatrix.h"
Public Types | |
typedef FloatColumnVector | column_vector_type |
typedef bool(* | compare_fcn_type )(typename ref_param< float >::type, typename ref_param< float >::type) |
typedef ref_param< float >::type | crefT |
typedef float | element_type |
typedef FloatRowVector | row_vector_type |
typedef void(* | solve_singularity_handler )(float rcon) |
Static Public Member Functions | |
static Array< float > | cat (int dim, octave_idx_type n, const Array< float > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). More... | |
static octave_idx_type | compute_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions) |
static void | increment_index (Array< octave_idx_type > &ra_idx, const dim_vector &dimensions, int start_dimension=0) |
Protected Attributes | |
dim_vector | dimensions |
Array< float >::ArrayRep * | rep |
float * | slice_data |
octave_idx_type | slice_len |
Private Member Functions | |
FloatMatrix | finverse (MatrixType &mattype, octave_idx_type &info, float &rcon, int force, int calc_cond) const |
FloatMatrix | fsolve (MatrixType &typ, const FloatMatrix &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, bool calc_cond=false) const |
FloatMatrix | ltsolve (MatrixType &typ, const FloatMatrix &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, bool calc_cond=false, blas_trans_type transt=blas_no_trans) const |
FloatMatrix | tinverse (MatrixType &mattype, octave_idx_type &info, float &rcon, int force, int calc_cond) const |
FloatMatrix | utsolve (MatrixType &typ, const FloatMatrix &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, bool calc_cond=false, blas_trans_type transt=blas_no_trans) const |
Friends | |
class | FloatComplexMatrix |
OCTAVE_API FloatMatrix | imag (const FloatComplexMatrix &a) |
OCTAVE_API std::ostream & | operator<< (std::ostream &os, const FloatMatrix &a) |
OCTAVE_API std::istream & | operator>> (std::istream &is, FloatMatrix &a) |
OCTAVE_API FloatMatrix | real (const FloatComplexMatrix &a) |
typedef void(* FloatMatrix::solve_singularity_handler)(float rcon) |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
explicit |
Definition at line 251 of file fMatrix.cc.
|
explicit |
Definition at line 256 of file fMatrix.cc.
|
explicit |
Definition at line 261 of file fMatrix.cc.
References DiagArray2< T >::elem(), Array< float >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 268 of file fMatrix.cc.
References DiagArray2< T >::elem(), Array< float >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 275 of file fMatrix.cc.
References DiagArray2< T >::elem(), Array< float >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 282 of file fMatrix.cc.
References PermMatrix::col_perm_vec(), Array< float >::elem(), and PermMatrix::rows().
|
explicit |
Definition at line 293 of file fMatrix.cc.
|
explicit |
Definition at line 298 of file fMatrix.cc.
References Array< T >::cols(), Array< T >::elem(), Array< float >::elem(), and Array< T >::rows().
FloatMatrix FloatMatrix::abs | ( | void | ) | const |
Definition at line 2715 of file fMatrix.cc.
References FloatNDArray::abs().
Referenced by finverse(), fsolve(), and rcond().
|
inherited |
Definition at line 601 of file fNDArray.cc.
References mx_inline_all().
|
inherited |
Definition at line 548 of file fNDArray.cc.
References Array< float >::test_all(), and xis_int_or_inf_or_nan().
|
inherited |
Definition at line 542 of file fNDArray.cc.
References Array< float >::test_all(), and xis_zero().
Definition at line 557 of file fNDArray.cc.
References Array< float >::elem(), Array< float >::nelem(), and xisinteger().
Referenced by elem_xpow(), octave_float_diag_matrix::save_binary(), octave_float_matrix::save_binary(), octave_float_matrix::save_hdf5(), and write_mat5_array().
|
inherited |
Definition at line 587 of file fNDArray.cc.
References Array< float >::test_all(), and xisinteger().
|
inherited |
Definition at line 607 of file fNDArray.cc.
References mx_inline_any().
|
inherited |
Definition at line 530 of file fNDArray.cc.
References mx_inline_all_finite().
Referenced by Fsvd(), and FloatEIG::init().
|
inherited |
Definition at line 524 of file fNDArray.cc.
References mx_inline_any_nan().
Referenced by octave_float_matrix::bool_array_value(), and FloatNDArray::operator!().
Definition at line 510 of file fNDArray.cc.
References mx_inline_any_negative(), Array< float >::test_all(), and xnegative_sign().
Referenced by elem_xpow().
Definition at line 517 of file fNDArray.cc.
References mx_inline_any_positive(), Array< float >::test_all(), and xpositive_sign().
|
inherited |
Definition at line 536 of file fNDArray.cc.
References Array< float >::test_all(), and xis_one_or_zero().
Referenced by octave_float_matrix::bool_array_value().
FloatMatrix FloatMatrix::append | ( | const FloatMatrix & | a | ) | const |
Definition at line 467 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::cols(), FloatMatrix(), insert(), Array< float >::rows(), and Array< T >::rows().
FloatMatrix FloatMatrix::append | ( | const FloatRowVector & | a | ) | const |
Definition at line 485 of file fMatrix.cc.
References Array< float >::cols(), FloatMatrix(), insert(), Array< T >::length(), and Array< float >::rows().
FloatMatrix FloatMatrix::append | ( | const FloatColumnVector & | a | ) | const |
Definition at line 503 of file fMatrix.cc.
References Array< float >::cols(), FloatMatrix(), insert(), Array< T >::length(), and Array< float >::rows().
FloatMatrix FloatMatrix::append | ( | const FloatDiagMatrix & | a | ) | const |
Definition at line 521 of file fMatrix.cc.
References DiagArray2< T >::cols(), Array< float >::cols(), insert(), DiagArray2< T >::rows(), and Array< float >::rows().
|
inherited |
Indexed assignment (always with resize & fill).
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
staticinherited |
Concatenation along a specified (0-based) dimension, equivalent to cat().
dim = -1 corresponds to dim = 0 and dim = -2 corresponds to dim = 1, but apply the looser matching rules of vertcat/horzcat.
|
inlineinherited |
Definition at line 154 of file fNDArray.h.
References MArray< T >::changesign().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 321 of file Array.h.
Referenced by append(), column_max(), column_min(), determinant(), diag(), fill(), finverse(), fourier(), fourier2d(), fsolve(), ifourier(), ifourier2d(), insert(), is_symmetric(), lssolve(), ltsolve(), operator+=(), operator-=(), operator==(), pseudo_inverse(), rcond(), row_max(), row_min(), stack(), tinverse(), and utsolve().
FloatColumnVector FloatMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 652 of file fMatrix.cc.
References idx_vector::colon, and Array< float >::index().
Referenced by FloatQR::insert_col(), solve(), FloatQR::update(), FloatLU::update(), and FloatLU::update_piv().
FloatRowVector FloatMatrix::column_max | ( | void | ) | const |
Definition at line 2909 of file fMatrix.cc.
FloatRowVector FloatMatrix::column_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2916 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::elem(), Array< float >::elem(), octave_Float_NaN, FloatRowVector::resize(), Array< T >::resize(), Array< float >::rows(), and xisnan().
FloatRowVector FloatMatrix::column_min | ( | void | ) | const |
Definition at line 2854 of file fMatrix.cc.
FloatRowVector FloatMatrix::column_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2861 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::elem(), Array< float >::elem(), octave_Float_NaN, FloatRowVector::resize(), Array< T >::resize(), Array< float >::rows(), and xisnan().
|
inlineinherited |
|
staticinherited |
Definition at line 824 of file fNDArray.cc.
References compute_index().
|
inherited |
|
inherited |
|
inherited |
|
inlineinherited |
|
inherited |
Definition at line 709 of file fNDArray.cc.
References FloatNDArray::insert(), and Array< T >::numel().
|
inherited |
Definition at line 718 of file fNDArray.cc.
References FloatComplexNDArray::insert(), and Array< T >::numel().
|
inherited |
Definition at line 728 of file fNDArray.cc.
References d, Array< float >::dims(), Array< float >::elem(), Array< T >::elem(), charNDArray::insert(), max(), NINTbig(), Array< T >::numel(), Array< float >::numel(), and xisnan().
|
inherited |
Definition at line 679 of file fNDArray.cc.
References mx_inline_cummax().
|
inherited |
Definition at line 685 of file fNDArray.cc.
References mx_inline_cummax().
|
inherited |
Definition at line 691 of file fNDArray.cc.
References mx_inline_cummin().
|
inherited |
Definition at line 697 of file fNDArray.cc.
References mx_inline_cummin().
FloatMatrix FloatMatrix::cumprod | ( | int | dim = -1 | ) | const |
Definition at line 2685 of file fMatrix.cc.
References FloatNDArray::cumprod().
FloatMatrix FloatMatrix::cumsum | ( | int | dim = -1 | ) | const |
Definition at line 2691 of file fMatrix.cc.
References FloatNDArray::cumsum().
Definition at line 479 of file Array.h.
Referenced by FloatRowVector::operator==(), FloatColumnVector::operator==(), and operator==().
|
inherited |
Deleting elements.
A(I) = [] (with a single subscript)
|
inherited |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon)
|
inherited |
Dispatcher to the above two.
FloatDET FloatMatrix::determinant | ( | void | ) | const |
Definition at line 1243 of file fMatrix.cc.
Referenced by determinant(), and Fdet().
FloatDET FloatMatrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 1251 of file fMatrix.cc.
References determinant().
FloatDET FloatMatrix::determinant | ( | octave_idx_type & | info, |
float & | rcon, | ||
int | calc_cond = 1 |
||
) | const |
Definition at line 1258 of file fMatrix.cc.
References determinant().
FloatDET FloatMatrix::determinant | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
float & | rcon, | ||
int | calc_cond = 1 |
||
) | const |
Definition at line 1266 of file fMatrix.cc.
References Array< float >::cols(), Array< float >::elem(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_unsymmetric(), MatrixType::Rectangular, Array< float >::rows(), base_det< T >::square(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and xnorm().
FloatMatrix FloatMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2721 of file fMatrix.cc.
References FloatNDArray::diag().
Referenced by octave_float_matrix::diag().
FloatDiagMatrix FloatMatrix::diag | ( | octave_idx_type | m, |
octave_idx_type | n | ||
) | const |
Definition at line 2727 of file fMatrix.cc.
References Array< float >::cols(), current_liboctave_error_handler, and Array< float >::rows().
|
inherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Return a const-reference so that dims ()(i) works efficiently.
Definition at line 337 of file Array.h.
Referenced by FloatNDArray::concat(), FloatNDArray::fourier(), FloatNDArray::fourier2d(), FloatNDArray::fourierNd(), FloatNDArray::ifourier(), FloatNDArray::ifourier2d(), and FloatNDArray::ifourierNd().
|
inlineinherited |
Definition at line 380 of file Array.h.
Referenced by FloatNDArray::all_integers(), column_max(), column_min(), FloatNDArray::concat(), determinant(), FloatRowVector::extract(), FloatColumnVector::extract(), FloatRowVector::extract_n(), FloatColumnVector::extract_n(), FloatMatrix(), is_symmetric(), FloatRowVector::max(), FloatColumnVector::max(), FloatRowVector::min(), FloatColumnVector::min(), operator+=(), operator-=(), row_max(), and row_min().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
FloatMatrix FloatMatrix::extract | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) | const |
Definition at line 627 of file fMatrix.cc.
References Array< float >::index().
Referenced by pseudo_inverse().
FloatMatrix FloatMatrix::extract_n | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | nr, | ||
octave_idx_type | nc | ||
) | const |
Definition at line 637 of file fMatrix.cc.
References Array< float >::index().
FloatMatrix & FloatMatrix::fill | ( | float | val | ) |
Definition at line 420 of file fMatrix.cc.
References Array< float >::cols(), Array< float >::make_unique(), Array< float >::rows(), and Array< float >::xelem().
Referenced by insert().
FloatMatrix & FloatMatrix::fill | ( | float | val, |
octave_idx_type | r1, | ||
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) |
Definition at line 438 of file fMatrix.cc.
References Array< float >::cols(), Array< float >::make_unique(), r2, Array< float >::rows(), and Array< float >::xelem().
|
inherited |
Find indices of (at most n) nonzero elements.
If n is specified, backward specifies search from backward.
|
private |
Definition at line 756 of file fMatrix.cc.
References abs(), Array< float >::cols(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::mark_as_rectangular(), FloatRowVector::max(), Array< T >::resize(), row(), Array< float >::rows(), and sum().
Referenced by inverse().
Definition at line 481 of file Array.h.
Referenced by FloatNDArray::fourier(), fourier(), FloatNDArray::fourier2d(), fourier2d(), FloatNDArray::fourierNd(), ltsolve(), rcond(), and utsolve().
|
inherited |
Definition at line 58 of file fNDArray.cc.
References Array< float >::dims(), octave_fftw::fft(), Array< T >::fortran_vec(), Array< float >::fortran_vec(), dim_vector::length(), and Array< float >::numel().
Referenced by do_fft().
FloatComplexMatrix FloatMatrix::fourier | ( | void | ) | const |
Definition at line 916 of file fMatrix.cc.
References Array< float >::cols(), octave_fftw::fft(), Array< T >::fortran_vec(), Array< float >::fortran_vec(), and Array< float >::rows().
FloatComplexMatrix FloatMatrix::fourier2d | ( | void | ) | const |
Definition at line 975 of file fMatrix.cc.
References Array< float >::cols(), octave_fftw::fftNd(), Array< T >::fortran_vec(), Array< float >::fortran_vec(), and Array< float >::rows().
|
inherited |
Definition at line 158 of file fNDArray.cc.
References Array< float >::dims(), octave_fftw::fftNd(), Array< T >::fortran_vec(), Array< float >::fortran_vec(), and dim_vector::length().
Referenced by do_fftn().
|
private |
Definition at line 1764 of file fMatrix.cc.
References abs(), Array< float >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Full, gripe_singular_matrix(), MatrixType::Hermitian, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), FloatRowVector::max(), row(), Array< T >::rows(), Array< float >::rows(), sum(), MatrixType::type(), and xisnan().
Referenced by solve().
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
|
inherited |
Definition at line 89 of file fNDArray.cc.
References Array< float >::dims(), Array< T >::fortran_vec(), octave_fftw::ifft(), dim_vector::length(), and Array< float >::numel().
Referenced by do_fft().
FloatComplexMatrix FloatMatrix::ifourier | ( | void | ) | const |
Definition at line 945 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::fortran_vec(), octave_fftw::ifft(), and Array< float >::rows().
FloatComplexMatrix FloatMatrix::ifourier2d | ( | void | ) | const |
Definition at line 987 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::fortran_vec(), octave_fftw::ifftNd(), and Array< float >::rows().
|
inherited |
Definition at line 173 of file fNDArray.cc.
References Array< float >::dims(), Array< T >::fortran_vec(), octave_fftw::ifftNd(), and dim_vector::length().
Referenced by do_fftn().
|
staticinherited |
Definition at line 816 of file fNDArray.cc.
|
inherited |
Indexing without resizing.
Referenced by column(), extract(), extract_n(), and row().
|
inherited |
|
inherited |
Indexing with possible resizing and fill.
|
inherited |
|
inlineinherited |
|
inherited |
FloatMatrix & FloatMatrix::insert | ( | const FloatMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 338 of file fMatrix.cc.
References FloatNDArray::insert().
FloatMatrix & FloatMatrix::insert | ( | const FloatRowVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 346 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::elem(), Array< T >::length(), Array< float >::make_unique(), Array< float >::rows(), and Array< float >::xelem().
FloatMatrix & FloatMatrix::insert | ( | const FloatColumnVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 369 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::elem(), Array< T >::length(), Array< float >::make_unique(), Array< float >::rows(), and Array< float >::xelem().
FloatMatrix & FloatMatrix::insert | ( | const FloatDiagMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 392 of file fMatrix.cc.
References DiagArray2< T >::cols(), Array< float >::cols(), DiagArray2< T >::elem(), fill(), DiagArray2< T >::length(), Array< float >::make_unique(), DiagArray2< T >::rows(), Array< float >::rows(), and Array< float >::xelem().
|
inherited |
Definition at line 776 of file fNDArray.cc.
References Array< T >::insert().
Referenced by FloatNDArray::concat(), and insert().
|
inherited |
Definition at line 784 of file fNDArray.cc.
References Array< T >::insert().
|
inherited |
Insert an array into another at a specified position.
If size (a) is [d1 d2 ... dN] and idx is [i1 i2 ... iN], this method is equivalent to x(i1:i1+d1-1, i2:i2+d2-1, ... , iN:iN+dN-1) = a.
|
inherited |
This is just a special case for idx = [r c 0 ...].
FloatMatrix FloatMatrix::inverse | ( | void | ) | const |
Definition at line 658 of file fMatrix.cc.
Referenced by Finv(), inverse(), pseudo_inverse(), and xpow().
FloatMatrix FloatMatrix::inverse | ( | octave_idx_type & | info | ) | const |
Definition at line 667 of file fMatrix.cc.
References inverse().
FloatMatrix FloatMatrix::inverse | ( | octave_idx_type & | info, |
float & | rcon, | ||
int | force = 0 , |
||
int | calc_cond = 1 |
||
) | const |
Definition at line 675 of file fMatrix.cc.
References inverse().
FloatMatrix FloatMatrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 683 of file fMatrix.cc.
References inverse().
FloatMatrix FloatMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 691 of file fMatrix.cc.
References inverse().
FloatMatrix FloatMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
float & | rcon, | ||
int | force = 0 , |
||
int | calc_cond = 1 |
||
) | const |
Definition at line 838 of file fMatrix.cc.
References Array< float >::columns(), finverse(), FloatMatrix(), FloatCHOL::inverse(), MatrixType::is_hermitian(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), octave_Float_Inf, FloatCHOL::rcond(), Array< float >::rows(), tinverse(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
Ordering is auto-detected or can be specified.
Definition at line 92 of file Array-f.cc.
References ASCENDING, Array< T >::data(), DESCENDING, Array< T >::numel(), UNSORTED, and xisnan().
Ordering is auto-detected or can be specified.
Definition at line 470 of file Array.h.
Referenced by is_symmetric().
bool FloatMatrix::is_symmetric | ( | void | ) | const |
Definition at line 322 of file fMatrix.cc.
References Array< float >::cols(), Array< float >::elem(), Array< float >::is_square(), and Array< float >::rows().
Referenced by FloatEIG::init().
|
inherited |
Definition at line 810 of file fNDArray.cc.
|
inherited |
Definition at line 804 of file fNDArray.cc.
|
inherited |
Definition at line 798 of file fNDArray.cc.
|
inlineinherited |
|
inlineinherited |
Number of elements in the array.
Synonymous with capacity(), nelem(), and numel().
length
() at the Octave interpreter. At the Octave interpreter, the function length
() returns the length of the greatest dimension. This method returns the total number of elements. Definition at line 267 of file Array.h.
Referenced by FloatRowVector::append(), FloatRowVector::fill(), FloatColumnVector::fill(), FloatRowVector::insert(), FloatColumnVector::insert(), FloatRowVector::max(), FloatColumnVector::max(), FloatRowVector::min(), FloatColumnVector::min(), FloatRowVector::operator==(), FloatColumnVector::operator==(), operator==(), and FloatColumnVector::stack().
|
inherited |
Extract a slice from this array as a column vector: A(:)(lo+1:up).
Must be 0 <= lo && up <= numel. May be up < lo.
|
inherited |
Do a binary lookup in a sorted array.
Must not contain NaNs. Mode can be specified or is auto-detected by comparing 1st and last element.
|
inherited |
Ditto, but for an array of values, specializing on the case when values are sorted.
NaNs get the value N.
FloatMatrix FloatMatrix::lssolve | ( | const FloatMatrix & | b | ) | const |
Definition at line 2264 of file fMatrix.cc.
FloatMatrix FloatMatrix::lssolve | ( | const FloatMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2273 of file fMatrix.cc.
References lssolve().
FloatMatrix FloatMatrix::lssolve | ( | const FloatMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2281 of file fMatrix.cc.
References lssolve().
FloatMatrix FloatMatrix::lssolve | ( | const FloatMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
float & | rcon | ||
) | const |
Definition at line 2289 of file fMatrix.cc.
References Array< T >::cols(), Array< float >::cols(), current_liboctave_error_handler, Array< T >::elem(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_FUNC(), F77_XFCN, FloatMatrix(), Array< T >::fortran_vec(), resize(), Array< T >::resize(), Array< float >::rows(), Array< T >::rows(), xilaenv(), and xlog2().
FloatComplexMatrix FloatMatrix::lssolve | ( | const FloatComplexMatrix & | b | ) | const |
Definition at line 2423 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexMatrix FloatMatrix::lssolve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2433 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexMatrix FloatMatrix::lssolve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2442 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexMatrix FloatMatrix::lssolve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
float & | rcon | ||
) | const |
Definition at line 2451 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatColumnVector FloatMatrix::lssolve | ( | const FloatColumnVector & | b | ) | const |
Definition at line 2459 of file fMatrix.cc.
References lssolve().
FloatColumnVector FloatMatrix::lssolve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2468 of file fMatrix.cc.
References lssolve().
FloatColumnVector FloatMatrix::lssolve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2476 of file fMatrix.cc.
References lssolve().
FloatColumnVector FloatMatrix::lssolve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
float & | rcon | ||
) | const |
Definition at line 2484 of file fMatrix.cc.
References Array< float >::cols(), current_liboctave_error_handler, Array< T >::elem(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_FUNC(), F77_XFCN, Array< T >::fortran_vec(), Array< T >::length(), FloatColumnVector::resize(), Array< T >::resize(), Array< float >::rows(), xilaenv(), and xlog2().
FloatComplexColumnVector FloatMatrix::lssolve | ( | const FloatComplexColumnVector & | b | ) | const |
Definition at line 2577 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexColumnVector FloatMatrix::lssolve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2587 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexColumnVector FloatMatrix::lssolve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2597 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexColumnVector FloatMatrix::lssolve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank, | ||
float & | rcon | ||
) | const |
Definition at line 2606 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
|
private |
Definition at line 1669 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< float >::fortran_vec(), Array< T >::fortran_vec(), get_blas_char(), gripe_singular_matrix(), MatrixType::Lower, norm(), MatrixType::Permuted_Lower, Array< float >::rows(), Array< T >::rows(), MatrixType::type(), and xisnan().
Referenced by solve().
Definition at line 104 of file Array.h.
Referenced by FloatRowVector::fill(), FloatColumnVector::fill(), fill(), FloatRowVector::insert(), FloatColumnVector::insert(), and insert().
|
inherited |
Definition at line 655 of file fNDArray.cc.
References mx_inline_max().
|
inherited |
Definition at line 661 of file fNDArray.cc.
References mx_inline_max().
|
inherited |
Definition at line 667 of file fNDArray.cc.
References mx_inline_min().
|
inherited |
Definition at line 673 of file fNDArray.cc.
References mx_inline_min().
|
inlineinherited |
Number of elements in the array.
Synonymous with capacity(), length(), and numel().
Definition at line 271 of file Array.h.
Referenced by FloatNDArray::all_integers().
|
inherited |
Count nonzero elements.
Returns the n-th element in increasing order, using the same ordering as used for sort.
n can either be a scalar index or a contiguous range.
|
inlineinherited |
Number of elements in the array.
Synonymous with capacity(), length(), and nelem().
Definition at line 275 of file Array.h.
Referenced by FloatNDArray::concat(), FloatNDArray::fourier(), FloatNDArray::fourier2d(), FloatNDArray::ifourier(), and FloatNDArray::ifourier2d().
|
inherited |
Definition at line 501 of file fNDArray.cc.
References FloatNDArray::any_element_is_nan(), gripe_nan_to_logical_conversion(), and mx_inline_not().
bool FloatMatrix::operator!= | ( | const FloatMatrix & | a | ) | const |
Definition at line 316 of file fMatrix.cc.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
FloatMatrix & FloatMatrix::operator+= | ( | const FloatDiagMatrix & | a | ) |
Definition at line 2614 of file fMatrix.cc.
References DiagArray2< T >::cols(), Array< float >::cols(), DiagArray2< T >::elem(), Array< float >::elem(), gripe_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< float >::rows().
FloatMatrix & FloatMatrix::operator-= | ( | const FloatDiagMatrix & | a | ) |
Definition at line 2635 of file fMatrix.cc.
References DiagArray2< T >::cols(), Array< float >::cols(), DiagArray2< T >::elem(), Array< float >::elem(), gripe_nonconformant(), DiagArray2< T >::length(), DiagArray2< T >::rows(), and Array< float >::rows().
bool FloatMatrix::operator== | ( | const FloatMatrix & | a | ) | const |
Definition at line 307 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::cols(), Array< T >::data(), Array< float >::data(), Array< float >::length(), mx_inline_equal(), Array< float >::rows(), and Array< T >::rows().
|
inherited |
Returns true if this->dims () == dv, and if so, replaces this->dimensions by a shallow copy of dv.
This is useful for maintaining several arrays with supposedly equal dimensions (e.g. structs in the interpreter).
|
inherited |
Extract page: A(:,:,k+1).
|
inlineinherited |
FloatMatrix FloatMatrix::prod | ( | int | dim = -1 | ) | const |
Definition at line 2697 of file fMatrix.cc.
References FloatNDArray::prod().
FloatMatrix FloatMatrix::pseudo_inverse | ( | float | tol = 0.0 | ) | const |
Definition at line 877 of file fMatrix.cc.
References Array< float >::cols(), SVD::economy, Array< T >::elem(), FloatColumnVector::extract(), extract(), FloatDiagMatrix::extract_diag(), FloatMatrix(), inverse(), FloatSVD::left_singular_matrix(), Array< T >::length(), FloatSVD::right_singular_matrix(), Array< float >::rows(), FloatComplexSVD::sigma, FloatSVD::singular_values(), transpose(), and V.
Referenced by Fpinv().
float FloatMatrix::rcond | ( | void | ) | const |
Definition at line 1403 of file fMatrix.cc.
Referenced by Frcond().
float FloatMatrix::rcond | ( | MatrixType & | mattype | ) | const |
Definition at line 1410 of file fMatrix.cc.
References abs(), Array< float >::cols(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< float >::fortran_vec(), Array< T >::fortran_vec(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), FloatRowVector::max(), norm(), octave_Inf, octave_NaN, MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, row(), Array< float >::rows(), sum(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
|
inlineinherited |
|
inlineinherited |
|
inline |
Definition at line 134 of file fMatrix.h.
References Array< T >::resize().
Referenced by FloatQR::delete_col(), FloatQR::delete_row(), FloatCHOL::delete_sym(), gammainc(), FloatQR::init(), FloatQRP::init(), FloatSVD::init(), FloatCHOL::init(), FloatQR::insert_col(), FloatQR::insert_row(), FloatCHOL::insert_sym(), and lssolve().
|
inherited |
|
inlineinherited |
|
inherited |
|
inlineinherited |
|
inherited |
Resizing (with fill).
|
inlineinherited |
FloatRowVector FloatMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 646 of file fMatrix.cc.
References idx_vector::colon, and Array< float >::index().
Referenced by finverse(), FloatComplexMatrix::finverse(), fsolve(), FloatComplexMatrix::fsolve(), Gqrinsert(), and rcond().
FloatColumnVector FloatMatrix::row_max | ( | void | ) | const |
Definition at line 2799 of file fMatrix.cc.
FloatColumnVector FloatMatrix::row_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2806 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::elem(), Array< float >::elem(), octave_Float_NaN, FloatColumnVector::resize(), Array< T >::resize(), Array< float >::rows(), and xisnan().
FloatColumnVector FloatMatrix::row_min | ( | void | ) | const |
Definition at line 2744 of file fMatrix.cc.
FloatColumnVector FloatMatrix::row_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2751 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::elem(), Array< float >::elem(), octave_Float_NaN, FloatColumnVector::resize(), Array< T >::resize(), Array< float >::rows(), and xisnan().
|
inlineinherited |
Definition at line 313 of file Array.h.
Referenced by append(), column_max(), column_min(), determinant(), diag(), fill(), finverse(), fourier(), fourier2d(), fsolve(), ifourier(), ifourier2d(), insert(), inverse(), is_symmetric(), lssolve(), ltsolve(), operator+=(), operator-=(), operator==(), pseudo_inverse(), rcond(), row_max(), row_min(), stack(), tinverse(), and utsolve().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatMatrix & | b | ||
) | const |
Definition at line 1945 of file fMatrix.cc.
Referenced by solve(), xdiv(), and xleftdiv().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1953 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatMatrix & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1961 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatMatrix & | b, | ||
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true , |
||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 1968 of file fMatrix.cc.
References blas_conj_trans, blas_trans, FloatMatrix(), fsolve(), MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, lssolve(), ltsolve(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, MatrixType::Rectangular, solve(), transpose(), MatrixType::type(), MatrixType::Unknown, MatrixType::Upper, and utsolve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexMatrix & | b | ||
) | const |
Definition at line 2006 of file fMatrix.cc.
References solve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2014 of file fMatrix.cc.
References solve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 2022 of file fMatrix.cc.
References solve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
bool | singular_fallback = true , |
||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 2061 of file fMatrix.cc.
References solve(), stack_complex_matrix(), and unstack_complex_matrix().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatColumnVector & | b | ||
) | const |
Definition at line 2072 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2079 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatColumnVector & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 2087 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatColumnVector & | b, | ||
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 2095 of file fMatrix.cc.
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexColumnVector & | b | ||
) | const |
Definition at line 2106 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 2113 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 2121 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | typ, |
const FloatComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 2129 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatMatrix FloatMatrix::solve | ( | const FloatMatrix & | b | ) | const |
Definition at line 2139 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | const FloatMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2147 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | const FloatMatrix & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 2154 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | const FloatMatrix & | b, |
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 2161 of file fMatrix.cc.
References solve().
FloatComplexMatrix FloatMatrix::solve | ( | const FloatComplexMatrix & | b | ) | const |
Definition at line 2170 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexMatrix FloatMatrix::solve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2177 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexMatrix FloatMatrix::solve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 2184 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexMatrix FloatMatrix::solve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 2192 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatColumnVector FloatMatrix::solve | ( | const FloatColumnVector & | b | ) | const |
Definition at line 2202 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2209 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 2216 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 2223 of file fMatrix.cc.
References solve().
FloatComplexColumnVector FloatMatrix::solve | ( | const FloatComplexColumnVector & | b | ) | const |
Definition at line 2232 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2239 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 2247 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info, | ||
float & | rcon, | ||
solve_singularity_handler | sing_handler, | ||
blas_trans_type | transt = blas_no_trans |
||
) | const |
Definition at line 2255 of file fMatrix.cc.
References FloatComplexMatrix::solve().
|
inherited |
Sort by rows returns only indices.
|
inlineinherited |
Definition at line 135 of file fNDArray.h.
References MArray< T >::squeeze().
FloatMatrix FloatMatrix::stack | ( | const FloatMatrix & | a | ) | const |
Definition at line 539 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::cols(), FloatMatrix(), insert(), Array< float >::rows(), and Array< T >::rows().
FloatMatrix FloatMatrix::stack | ( | const FloatRowVector & | a | ) | const |
Definition at line 558 of file fMatrix.cc.
References Array< float >::cols(), FloatMatrix(), insert(), Array< T >::length(), and Array< float >::rows().
FloatMatrix FloatMatrix::stack | ( | const FloatColumnVector & | a | ) | const |
Definition at line 577 of file fMatrix.cc.
References Array< float >::cols(), FloatMatrix(), insert(), Array< T >::length(), and Array< float >::rows().
FloatMatrix FloatMatrix::stack | ( | const FloatDiagMatrix & | a | ) | const |
Definition at line 596 of file fMatrix.cc.
References DiagArray2< T >::cols(), Array< float >::cols(), FloatMatrix(), insert(), DiagArray2< T >::rows(), and Array< float >::rows().
FloatMatrix FloatMatrix::sum | ( | int | dim = -1 | ) | const |
Definition at line 2703 of file fMatrix.cc.
References FloatNDArray::sum().
Referenced by finverse(), FloatComplexMatrix::finverse(), fsolve(), FloatComplexMatrix::fsolve(), rcond(), and FloatComplexMatrix::rcond().
FloatMatrix FloatMatrix::sumsq | ( | int | dim = -1 | ) | const |
Definition at line 2709 of file fMatrix.cc.
References FloatNDArray::sumsq().
Definition at line 714 of file Array.h.
Referenced by FloatNDArray::all_elements_are_int_or_inf_or_nan(), FloatNDArray::all_elements_are_zero(), FloatNDArray::all_integers(), FloatNDArray::any_element_is_negative(), FloatNDArray::any_element_is_positive(), and FloatNDArray::any_element_not_one_or_zero().
|
private |
Definition at line 698 of file fMatrix.cc.
References Array< float >::cols(), F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< T >::fortran_vec(), MatrixType::Lower, OCTAVE_LOCAL_BUFFER, Array< float >::rows(), and MatrixType::type().
Referenced by inverse().
|
inherited |
Definition at line 593 of file fNDArray.cc.
|
inline |
Definition at line 118 of file fMatrix.h.
References MArray< T >::transpose().
Referenced by Gchol(), FloatSVD::init(), pseudo_inverse(), solve(), Sylvester(), and xdiv().
|
private |
Definition at line 1573 of file fMatrix.cc.
References Array< float >::cols(), Array< T >::cols(), current_liboctave_error_handler, F77_CHAR_ARG_LEN, F77_CONST_CHAR_ARG2, F77_XFCN, Array< float >::fortran_vec(), Array< T >::fortran_vec(), get_blas_char(), gripe_singular_matrix(), norm(), MatrixType::Permuted_Upper, Array< float >::rows(), Array< T >::rows(), MatrixType::type(), MatrixType::Upper, and xisnan().
Referenced by solve().
|
inlineinherited |
Definition at line 353 of file Array.h.
Referenced by FloatRowVector::fill(), FloatColumnVector::fill(), fill(), FloatNDArray::FloatNDArray(), FloatRowVector::insert(), FloatColumnVector::insert(), and insert().
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
|
friend |
|
friend |
Definition at line 621 of file fMatrix.cc.
|
friend |
Definition at line 2964 of file fMatrix.cc.
|
friend |
Definition at line 2979 of file fMatrix.cc.
|
friend |
Definition at line 615 of file fMatrix.cc.
|
protectedinherited |
|
protectedinherited |