#include "fMatrix.h"
Public Types | |
typedef FloatColumnVector | column_vector_type |
typedef FloatComplexDiagMatrix | complex_diag_matrix_type |
typedef FloatComplex | complex_elt_type |
typedef FloatComplexMatrix | complex_matrix_type |
typedef FloatColumnVector | real_column_vector_type |
typedef FloatDiagMatrix | real_diag_matrix_type |
typedef float | real_elt_type |
typedef FloatMatrix | real_matrix_type |
typedef FloatRowVector | real_row_vector_type |
typedef FloatRowVector | row_vector_type |
typedef void(* | solve_singularity_handler) (float rcon) |
![]() | |
typedef bool(* | compare_fcn_type) (typename ref_param< T >::type, typename ref_param< T >::type) |
typedef ref_param< T >::type | crefT |
typedef T | element_type |
typedef octave_idx_type | size_type |
Used for operator(), and returned by numel() and size() (beware: signed integer) | |
typedef T | value_type |
Public Member Functions | |
FloatMatrix ()=default | |
template<typename U > | |
FloatMatrix (const Array< U > &a) | |
FloatMatrix (const boolMatrix &a) | |
FloatMatrix (const charMatrix &a) | |
FloatMatrix (const DiagArray2< float > &a) | |
FloatMatrix (const dim_vector &dv) | |
FloatMatrix (const dim_vector &dv, float val) | |
FloatMatrix (const FloatColumnVector &cv) | |
FloatMatrix (const FloatDiagMatrix &a) | |
FloatMatrix (const FloatMatrix &a)=default | |
FloatMatrix (const FloatRowVector &rv) | |
template<typename U > | |
FloatMatrix (const MArray< U > &a) | |
FloatMatrix (const MDiagArray2< float > &a) | |
FloatMatrix (const PermMatrix &a) | |
FloatMatrix (octave_idx_type r, octave_idx_type c) | |
FloatMatrix (octave_idx_type r, octave_idx_type c, float val) | |
~FloatMatrix ()=default | |
FloatMatrix | abs () const |
FloatMatrix | append (const FloatColumnVector &a) const |
FloatMatrix | append (const FloatDiagMatrix &a) const |
FloatMatrix | append (const FloatMatrix &a) const |
FloatMatrix | append (const FloatRowVector &a) const |
FloatColumnVector | column (octave_idx_type i) const |
FloatRowVector | column_max () const |
FloatRowVector | column_max (Array< octave_idx_type > &index) const |
FloatRowVector | column_min () const |
FloatRowVector | column_min (Array< octave_idx_type > &index) const |
FloatMatrix | cumprod (int dim=-1) const |
FloatMatrix | cumsum (int dim=-1) const |
FloatDET | determinant () const |
FloatDET | determinant (MatrixType &mattype, octave_idx_type &info, float &rcon, bool calc_cond=true) const |
FloatDET | determinant (octave_idx_type &info) const |
FloatDET | determinant (octave_idx_type &info, float &rcon, bool calc_cond=true) const |
FloatMatrix | diag (octave_idx_type k=0) const |
FloatDiagMatrix | diag (octave_idx_type m, octave_idx_type n) const |
FloatMatrix | extract (octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const |
FloatMatrix | extract_n (octave_idx_type r1, octave_idx_type c1, octave_idx_type nr, octave_idx_type nc) const |
FloatMatrix & | fill (float val) |
FloatMatrix & | fill (float val, octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) |
FloatComplexMatrix | fourier () const |
FloatComplexMatrix | fourier2d () const |
FloatMatrix | hermitian () const |
FloatComplexMatrix | ifourier () const |
FloatComplexMatrix | ifourier2d () const |
FloatMatrix & | insert (const FloatColumnVector &a, octave_idx_type r, octave_idx_type c) |
FloatMatrix & | insert (const FloatDiagMatrix &a, octave_idx_type r, octave_idx_type c) |
FloatMatrix & | insert (const FloatMatrix &a, octave_idx_type r, octave_idx_type c) |
FloatMatrix & | insert (const FloatRowVector &a, octave_idx_type r, octave_idx_type c) |
FloatMatrix | inverse () const |
FloatMatrix | inverse (MatrixType &mattype) const |
FloatMatrix | inverse (MatrixType &mattype, octave_idx_type &info) const |
FloatMatrix | inverse (MatrixType &mattype, octave_idx_type &info, float &rcon, bool force=false, bool calc_cond=true) const |
FloatMatrix | inverse (octave_idx_type &info) const |
FloatMatrix | inverse (octave_idx_type &info, float &rcon, bool force=false, bool calc_cond=true) const |
bool | issymmetric () const |
FloatColumnVector | lssolve (const FloatColumnVector &b) const |
FloatColumnVector | lssolve (const FloatColumnVector &b, octave_idx_type &info) const |
FloatColumnVector | lssolve (const FloatColumnVector &b, octave_idx_type &info, octave_idx_type &rank) const |
FloatColumnVector | lssolve (const FloatColumnVector &b, octave_idx_type &info, octave_idx_type &rank, float &rcon) const |
FloatComplexColumnVector | lssolve (const FloatComplexColumnVector &b) const |
FloatComplexColumnVector | lssolve (const FloatComplexColumnVector &b, octave_idx_type &info) const |
FloatComplexColumnVector | lssolve (const FloatComplexColumnVector &b, octave_idx_type &info, octave_idx_type &rank) const |
FloatComplexColumnVector | lssolve (const FloatComplexColumnVector &b, octave_idx_type &info, octave_idx_type &rank, float &rcon) const |
FloatComplexMatrix | lssolve (const FloatComplexMatrix &b) const |
FloatComplexMatrix | lssolve (const FloatComplexMatrix &b, octave_idx_type &info) const |
FloatComplexMatrix | lssolve (const FloatComplexMatrix &b, octave_idx_type &info, octave_idx_type &rank) const |
FloatComplexMatrix | lssolve (const FloatComplexMatrix &b, octave_idx_type &info, octave_idx_type &rank, float &rcon) const |
FloatMatrix | lssolve (const FloatMatrix &b) const |
FloatMatrix | lssolve (const FloatMatrix &b, octave_idx_type &info) const |
FloatMatrix | lssolve (const FloatMatrix &b, octave_idx_type &info, octave_idx_type &rank) const |
FloatMatrix | lssolve (const FloatMatrix &b, octave_idx_type &info, octave_idx_type &rank, float &rcon) const |
bool | operator!= (const FloatMatrix &a) const |
FloatMatrix & | operator+= (const FloatDiagMatrix &a) |
FloatMatrix & | operator-= (const FloatDiagMatrix &a) |
FloatMatrix & | operator= (const FloatMatrix &a)=default |
bool | operator== (const FloatMatrix &a) const |
FloatMatrix | prod (int dim=-1) const |
FloatMatrix | pseudo_inverse (float tol=0.0) const |
float | rcond () const |
float | rcond (MatrixType &mattype) const |
void | resize (octave_idx_type nr, octave_idx_type nc, float rfv=0) |
FloatRowVector | row (octave_idx_type i) const |
FloatColumnVector | row_max () const |
FloatColumnVector | row_max (Array< octave_idx_type > &index) const |
FloatColumnVector | row_min () const |
FloatColumnVector | row_min (Array< octave_idx_type > &index) const |
FloatColumnVector | solve (const FloatColumnVector &b) const |
FloatColumnVector | solve (const FloatColumnVector &b, octave_idx_type &info) const |
FloatColumnVector | solve (const FloatColumnVector &b, octave_idx_type &info, float &rcon) const |
FloatColumnVector | solve (const FloatColumnVector &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, blas_trans_type transt=blas_no_trans) const |
FloatComplexColumnVector | solve (const FloatComplexColumnVector &b) const |
FloatComplexColumnVector | solve (const FloatComplexColumnVector &b, octave_idx_type &info) const |
FloatComplexColumnVector | solve (const FloatComplexColumnVector &b, octave_idx_type &info, float &rcon) const |
FloatComplexColumnVector | solve (const FloatComplexColumnVector &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, blas_trans_type transt=blas_no_trans) const |
FloatComplexMatrix | solve (const FloatComplexMatrix &b) const |
FloatComplexMatrix | solve (const FloatComplexMatrix &b, octave_idx_type &info) const |
FloatComplexMatrix | solve (const FloatComplexMatrix &b, octave_idx_type &info, float &rcon) const |
FloatComplexMatrix | solve (const FloatComplexMatrix &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, blas_trans_type transt=blas_no_trans) const |
FloatMatrix | solve (const FloatMatrix &b) const |
FloatMatrix | solve (const FloatMatrix &b, octave_idx_type &info) const |
FloatMatrix | solve (const FloatMatrix &b, octave_idx_type &info, float &rcon) const |
FloatMatrix | solve (const FloatMatrix &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, blas_trans_type transt=blas_no_trans) const |
FloatColumnVector | solve (MatrixType &mattype, const FloatColumnVector &b) const |
FloatColumnVector | solve (MatrixType &mattype, const FloatColumnVector &b, octave_idx_type &info) const |
FloatColumnVector | solve (MatrixType &mattype, const FloatColumnVector &b, octave_idx_type &info, float &rcon) const |
FloatColumnVector | solve (MatrixType &mattype, const FloatColumnVector &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, blas_trans_type transt=blas_no_trans) const |
FloatComplexColumnVector | solve (MatrixType &mattype, const FloatComplexColumnVector &b) const |
FloatComplexColumnVector | solve (MatrixType &mattype, const FloatComplexColumnVector &b, octave_idx_type &info) const |
FloatComplexColumnVector | solve (MatrixType &mattype, const FloatComplexColumnVector &b, octave_idx_type &info, float &rcon) const |
FloatComplexColumnVector | solve (MatrixType &mattype, const FloatComplexColumnVector &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, blas_trans_type transt=blas_no_trans) const |
FloatComplexMatrix | solve (MatrixType &mattype, const FloatComplexMatrix &b) const |
FloatComplexMatrix | solve (MatrixType &mattype, const FloatComplexMatrix &b, octave_idx_type &info) const |
FloatComplexMatrix | solve (MatrixType &mattype, const FloatComplexMatrix &b, octave_idx_type &info, float &rcon) const |
FloatComplexMatrix | solve (MatrixType &mattype, 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 |
FloatMatrix | solve (MatrixType &mattype, const FloatMatrix &b) const |
FloatMatrix | solve (MatrixType &mattype, const FloatMatrix &b, octave_idx_type &info) const |
FloatMatrix | solve (MatrixType &mattype, const FloatMatrix &b, octave_idx_type &info, float &rcon) const |
FloatMatrix | solve (MatrixType &mattype, 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 |
FloatMatrix | stack (const FloatColumnVector &a) const |
FloatMatrix | stack (const FloatDiagMatrix &a) const |
FloatMatrix | stack (const FloatMatrix &a) const |
FloatMatrix | stack (const FloatRowVector &a) const |
FloatMatrix | sum (int dim=-1) const |
FloatMatrix | sumsq (int dim=-1) const |
FloatMatrix | transpose () const |
![]() | |
FloatNDArray () | |
template<typename U > | |
FloatNDArray (const Array< U > &a) | |
FloatNDArray (const charNDArray &) | |
FloatNDArray (const dim_vector &dv) | |
FloatNDArray (const dim_vector &dv, float val) | |
FloatNDArray (const FloatNDArray &a) | |
template<typename U > | |
FloatNDArray (const intNDArray< U > &a) | |
template<typename U > | |
FloatNDArray (const MArray< U > &a) | |
~FloatNDArray ()=default | |
FloatNDArray | abs () const |
boolNDArray | all (int dim=-1) const |
bool | all_elements_are_int_or_inf_or_nan () const |
bool | all_elements_are_zero () const |
bool | all_integers () const |
bool | all_integers (float &max_val, float &min_val) const |
boolNDArray | any (int dim=-1) const |
bool | any_element_is_inf_or_nan () const |
bool | any_element_is_nan () const |
bool | any_element_is_negative (bool=false) const |
bool | any_element_is_positive (bool=false) const |
bool | any_element_not_one_or_zero () const |
FloatNDArray & | changesign () |
charNDArray | concat (const charNDArray &rb, const Array< octave_idx_type > &ra_idx) |
FloatComplexNDArray | concat (const FloatComplexNDArray &rb, const Array< octave_idx_type > &ra_idx) |
FloatNDArray | concat (const FloatNDArray &rb, const Array< octave_idx_type > &ra_idx) |
FloatNDArray | cummax (Array< octave_idx_type > &index, int dim=-1) const |
FloatNDArray | cummax (int dim=-1) const |
FloatNDArray | cummin (Array< octave_idx_type > &index, int dim=-1) const |
FloatNDArray | cummin (int dim=-1) const |
FloatNDArray | cumprod (int dim=-1) const |
FloatNDArray | cumsum (int dim=-1) const |
FloatNDArray | diag (octave_idx_type k=0) const |
FloatNDArray | diag (octave_idx_type m, octave_idx_type n) const |
FloatNDArray | diff (octave_idx_type order=1, int dim=-1) const |
NDArray | dprod (int dim=-1) const |
NDArray | dsum (int dim=-1) const |
FloatComplexNDArray | fourier (int dim=1) const |
FloatComplexNDArray | fourier2d () const |
FloatComplexNDArray | fourierNd () const |
FloatComplexNDArray | ifourier (int dim=1) const |
FloatComplexNDArray | ifourier2d () const |
FloatComplexNDArray | ifourierNd () const |
FloatNDArray & | insert (const FloatNDArray &a, const Array< octave_idx_type > &ra_idx) |
FloatNDArray & | insert (const FloatNDArray &a, octave_idx_type r, octave_idx_type c) |
boolNDArray | isfinite () const |
boolNDArray | isinf () const |
boolNDArray | isnan () const |
FloatNDArray | max (Array< octave_idx_type > &index, int dim=-1) const |
FloatNDArray | max (int dim=-1) const |
FloatNDArray | min (Array< octave_idx_type > &index, int dim=-1) const |
FloatNDArray | min (int dim=-1) const |
boolNDArray | operator! () const |
FloatNDArray & | operator= (const FloatNDArray &a) |
FloatNDArray | prod (int dim=-1) const |
FloatNDArray | squeeze () const |
FloatNDArray | sum (int dim=-1) const |
FloatNDArray | sumsq (int dim=-1) const |
bool | too_large_for_float () const |
![]() | |
MArray () | |
MArray (const Array< U > &a) | |
MArray (const dim_vector &dv) | |
MArray (const dim_vector &dv, const float &val) | |
MArray (const MArray< float > &a) | |
~MArray ()=default | |
void | changesign () |
MArray< float > | hermitian (float(*fcn)(const float &)=nullptr) const |
void | idx_add (const octave::idx_vector &idx, const MArray< float > &vals) |
void | idx_add (const octave::idx_vector &idx, float val) |
Performs indexed accumulative addition. | |
void | idx_add_nd (const octave::idx_vector &idx, const MArray< float > &vals, int dim=-1) |
void | idx_max (const octave::idx_vector &idx, const MArray< float > &vals) |
void | idx_min (const octave::idx_vector &idx, const MArray< float > &vals) |
MArray< float > | ipermute (const Array< octave_idx_type > &vec) const |
MArray< float > & | operator= (const MArray< float > &a) |
MArray< float > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
MArray< float > | reshape (const dim_vector &new_dims) const |
MArray | squeeze () const |
MArray< float > | transpose () const |
![]() | |
Array () | |
Empty ctor (0 by 0). | |
Array (Array< T, Alloc > &&a) | |
Array (const Array< T, Alloc > &a) | |
No type conversion case. | |
Array (const Array< T, Alloc > &a, const dim_vector &dv) | |
Reshape constructor. | |
template<typename U , typename A = Alloc> | |
Array (const Array< U, A > &a) | |
Type conversion case. | |
template<template< typename... > class Container> | |
Array (const Container< T > &a, const dim_vector &dv) | |
Constructor from standard library sequence containers. | |
Array (const dim_vector &dv) | |
nD uninitialized ctor. | |
Array (const dim_vector &dv, const T &val) | |
nD initialized ctor. | |
Array (T *ptr, const dim_vector &dv, const Alloc &xallocator=Alloc()) | |
virtual | ~Array () |
Array< T, Alloc > | as_column () const |
Return the array as a column vector. | |
Array< T, Alloc > | as_matrix () const |
Return the array as a matrix. | |
Array< T, Alloc > | as_row () const |
Return the array as a row vector. | |
void | clear () |
void | clear (const dim_vector &dv) |
void | clear (octave_idx_type r, octave_idx_type c) |
void | fill (const T &val) |
Array< octave_idx_type > | find (octave_idx_type, bool) const |
Array< octave_idx_type > | find (octave_idx_type, bool) const |
sortmode | is_sorted_rows (sortmode) const |
sortmode | is_sorted_rows (sortmode) const |
sortmode | issorted (sortmode) const |
sortmode | issorted (sortmode) const |
Array< octave_idx_type > | lookup (const Array< octave::cdef_object > &, sortmode) const |
Array< octave_idx_type > | lookup (const Array< octave::idx_vector > &, sortmode) const |
octave_idx_type | lookup (octave::cdef_object const &, sortmode) const |
octave_idx_type | lookup (octave::idx_vector const &, sortmode) const |
void | make_unique () |
octave_idx_type | nnz () const |
octave_idx_type | nnz () const |
Array< octave::cdef_object > | nth_element (const octave::idx_vector &, int) const |
Array< octave::idx_vector > | nth_element (const octave::idx_vector &, int) const |
octave_idx_type | numel () const |
Number of elements in the array. | |
Array< T, Alloc > & | operator= (Array< T, Alloc > &&a) |
Array< T, Alloc > & | operator= (const Array< T, Alloc > &a) |
Array< octave::cdef_object > | sort (Array< octave_idx_type > &sidx, int, sortmode) const |
Array< octave::idx_vector > | sort (Array< octave_idx_type > &sidx, int, sortmode) const |
Array< octave::cdef_object > | sort (int, sortmode) const |
Array< octave::idx_vector > | sort (int, sortmode) const |
Array< octave_idx_type > | sort_rows_idx (sortmode) const |
Array< octave_idx_type > | sort_rows_idx (sortmode) const |
octave_idx_type | dim1 () const |
octave_idx_type | rows () const |
octave_idx_type | dim2 () const |
octave_idx_type | cols () const |
octave_idx_type | columns () const |
octave_idx_type | dim3 () const |
Size of the specified dimension. | |
octave_idx_type | pages () const |
Size of the specified dimension. | |
size_type | size (const size_type d) const |
Size of the specified dimension. | |
std::size_t | byte_size () const |
Size of the specified dimension. | |
const dim_vector & | dims () const |
Return a const-reference so that dims ()(i) works efficiently. | |
Array< T, Alloc > | squeeze () const |
Chop off leading singleton dimensions. | |
octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. | |
octave_idx_type | compute_index (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. | |
octave_idx_type | compute_index (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. | |
octave_idx_type | compute_index_unchecked (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. | |
T & | xelem (octave_idx_type n) |
Size of the specified dimension. | |
crefT | xelem (octave_idx_type n) const |
Size of the specified dimension. | |
T & | xelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. | |
crefT | xelem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. | |
T & | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. | |
crefT | xelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. | |
T & | xelem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. | |
crefT | xelem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. | |
T & | checkelem (octave_idx_type n) |
Size of the specified dimension. | |
T & | checkelem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. | |
T & | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. | |
T & | checkelem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. | |
T & | elem (octave_idx_type n) |
Size of the specified dimension. | |
T & | elem (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. | |
T & | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. | |
T & | elem (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. | |
T & | operator() (octave_idx_type n) |
Size of the specified dimension. | |
T & | operator() (octave_idx_type i, octave_idx_type j) |
Size of the specified dimension. | |
T & | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) |
Size of the specified dimension. | |
T & | operator() (const Array< octave_idx_type > &ra_idx) |
Size of the specified dimension. | |
crefT | checkelem (octave_idx_type n) const |
Size of the specified dimension. | |
crefT | checkelem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. | |
crefT | checkelem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. | |
crefT | checkelem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. | |
crefT | elem (octave_idx_type n) const |
Size of the specified dimension. | |
crefT | elem (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. | |
crefT | elem (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. | |
crefT | elem (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. | |
crefT | operator() (octave_idx_type n) const |
Size of the specified dimension. | |
crefT | operator() (octave_idx_type i, octave_idx_type j) const |
Size of the specified dimension. | |
crefT | operator() (octave_idx_type i, octave_idx_type j, octave_idx_type k) const |
Size of the specified dimension. | |
crefT | operator() (const Array< octave_idx_type > &ra_idx) const |
Size of the specified dimension. | |
Array< T, Alloc > | column (octave_idx_type k) const |
Extract column: A(:,k+1). | |
Array< T, Alloc > | page (octave_idx_type k) const |
Extract page: A(:,:,k+1). | |
Array< T, Alloc > | linear_slice (octave_idx_type lo, octave_idx_type up) const |
Extract a slice from this array as a column vector: A(:)(lo+1:up). | |
Array< T, Alloc > | reshape (octave_idx_type nr, octave_idx_type nc) const |
Size of the specified dimension. | |
Array< T, Alloc > | reshape (const dim_vector &new_dims) const |
Size of the specified dimension. | |
Array< T, Alloc > | permute (const Array< octave_idx_type > &vec, bool inv=false) const |
Size of the specified dimension. | |
Array< T, Alloc > | ipermute (const Array< octave_idx_type > &vec) const |
Size of the specified dimension. | |
bool | issquare () const |
Size of the specified dimension. | |
bool | isempty () const |
Size of the specified dimension. | |
bool | isvector () const |
Size of the specified dimension. | |
bool | is_nd_vector () const |
Size of the specified dimension. | |
Array< T, Alloc > | transpose () const |
Size of the specified dimension. | |
Array< T, Alloc > | hermitian (T(*fcn)(const T &)=nullptr) const |
Size of the specified dimension. | |
const T * | data () const |
Size of the specified dimension. | |
T * | rwdata () |
Size of the specified dimension. | |
T * | fortran_vec () |
Size of the specified dimension. | |
bool | is_shared () const |
Size of the specified dimension. | |
int | ndims () const |
Size of the specified dimension. | |
Array< T, Alloc > | index (const octave::idx_vector &i) const |
Indexing without resizing. | |
Array< T, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j) const |
Size of the specified dimension. | |
Array< T, Alloc > | index (const Array< octave::idx_vector > &ia) const |
Size of the specified dimension. | |
virtual T | resize_fill_value () const |
Size of the specified dimension. | |
void | resize2 (octave_idx_type nr, octave_idx_type nc, const T &rfv) |
Resizing (with fill). | |
void | resize2 (octave_idx_type nr, octave_idx_type nc) |
Size of the specified dimension. | |
void | resize1 (octave_idx_type n, const T &rfv) |
Size of the specified dimension. | |
void | resize1 (octave_idx_type n) |
Size of the specified dimension. | |
void | resize (const dim_vector &dv, const T &rfv) |
Size of the specified dimension. | |
void | resize (const dim_vector &dv) |
Size of the specified dimension. | |
Array< T, Alloc > | index (const octave::idx_vector &i, bool resize_ok, const T &rfv) const |
Indexing with possible resizing and fill. | |
Array< T, Alloc > | index (const octave::idx_vector &i, bool resize_ok) const |
Size of the specified dimension. | |
Array< T, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok, const T &rfv) const |
Size of the specified dimension. | |
Array< T, Alloc > | index (const octave::idx_vector &i, const octave::idx_vector &j, bool resize_ok) const |
Size of the specified dimension. | |
Array< T, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok, const T &rfv) const |
Size of the specified dimension. | |
Array< T, Alloc > | index (const Array< octave::idx_vector > &ia, bool resize_ok) const |
Size of the specified dimension. | |
void | assign (const octave::idx_vector &i, const Array< T, Alloc > &rhs, const T &rfv) |
Indexed assignment (always with resize & fill). | |
void | assign (const octave::idx_vector &i, const Array< T, Alloc > &rhs) |
Size of the specified dimension. | |
void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< T, Alloc > &rhs, const T &rfv) |
Size of the specified dimension. | |
void | assign (const octave::idx_vector &i, const octave::idx_vector &j, const Array< T, Alloc > &rhs) |
Size of the specified dimension. | |
void | assign (const Array< octave::idx_vector > &ia, const Array< T, Alloc > &rhs, const T &rfv) |
Size of the specified dimension. | |
void | assign (const Array< octave::idx_vector > &ia, const Array< T, Alloc > &rhs) |
Size of the specified dimension. | |
void | delete_elements (const octave::idx_vector &i) |
Deleting elements. | |
void | delete_elements (int dim, const octave::idx_vector &i) |
A(:,...,I,...,:) = [] (>= 2 subscripts, one of them is non-colon) | |
void | delete_elements (const Array< octave::idx_vector > &ia) |
Dispatcher to the above two. | |
Array< T, Alloc > & | insert (const Array< T, Alloc > &a, const Array< octave_idx_type > &idx) |
Insert an array into another at a specified position. | |
Array< T, Alloc > & | insert (const Array< T, Alloc > &a, octave_idx_type r, octave_idx_type c) |
This is just a special case for idx = [r c 0 ...]. | |
void | maybe_economize () |
Size of the specified dimension. | |
void | print_info (std::ostream &os, const std::string &prefix) const |
Size of the specified dimension. | |
Array< T, Alloc > | sort (int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. | |
Array< T, Alloc > | sort (Array< octave_idx_type > &sidx, int dim=0, sortmode mode=ASCENDING) const |
Size of the specified dimension. | |
sortmode | issorted (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. | |
Array< octave_idx_type > | sort_rows_idx (sortmode mode=ASCENDING) const |
Sort by rows returns only indices. | |
sortmode | is_sorted_rows (sortmode mode=UNSORTED) const |
Ordering is auto-detected or can be specified. | |
octave_idx_type | lookup (const T &value, sortmode mode=UNSORTED) const |
Do a binary lookup in a sorted array. | |
Array< octave_idx_type > | lookup (const Array< T, Alloc > &values, sortmode mode=UNSORTED) const |
Ditto, but for an array of values, specializing on the case when values are sorted. | |
octave_idx_type | nnz () const |
Count nonzero elements. | |
Array< octave_idx_type > | find (octave_idx_type n=-1, bool backward=false) const |
Find indices of (at most n) nonzero elements. | |
Array< T, Alloc > | nth_element (const octave::idx_vector &n, int dim=0) const |
Returns the n-th element in increasing order, using the same ordering as used for sort. | |
Array< T, Alloc > | diag (octave_idx_type k=0) const |
Get the kth super or subdiagonal. | |
Array< T, Alloc > | diag (octave_idx_type m, octave_idx_type n) const |
Size of the specified dimension. | |
template<typename U , typename F , typename A = std::allocator<U>> | |
Array< U, A > | map (F fcn) const |
Apply function fcn to each element of the Array<T, Alloc>. | |
template<typename U , typename A = std::allocator<U>> | |
Array< U, A > | map (U(&fcn)(T)) const |
Overloads for function references. | |
template<typename U , typename A = std::allocator<U>> | |
Array< U, A > | map (U(&fcn)(const T &)) const |
Size of the specified dimension. | |
template<typename F , bool zero> | |
bool | test (F fcn) const |
Generic any/all test functionality with arbitrary predicate. | |
template<typename F > | |
bool | test_any (F fcn) const |
Simpler calls. | |
template<typename F > | |
bool | test_all (F fcn) const |
Size of the specified dimension. | |
bool | test_any (bool(&fcn)(T)) const |
Overloads for function references. | |
bool | test_any (bool(&fcn)(const T &)) const |
Size of the specified dimension. | |
bool | test_all (bool(&fcn)(T)) const |
Size of the specified dimension. | |
bool | test_all (bool(&fcn)(const T &)) const |
Size of the specified dimension. | |
bool | optimize_dimensions (const dim_vector &dv) |
Returns true if this->dims () == dv, and if so, replaces this->m_dimensions by a shallow copy of dv. | |
Friends | |
class | FloatComplexMatrix |
FloatMatrix | imag (const FloatComplexMatrix &a) |
std::ostream & | operator<< (std::ostream &os, const FloatMatrix &a) |
std::istream & | operator>> (std::istream &is, FloatMatrix &a) |
FloatMatrix | real (const FloatComplexMatrix &a) |
Additional Inherited Members | |
![]() | |
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) |
![]() | |
static Array< T, Alloc > | cat (int dim, octave_idx_type n, const Array< T, Alloc > *array_list) |
Concatenation along a specified (0-based) dimension, equivalent to cat(). | |
![]() | |
Array (const Array< T, Alloc > &a, const dim_vector &dv, octave_idx_type l, octave_idx_type u) | |
slice constructor | |
![]() | |
dim_vector | m_dimensions |
Array< T, Alloc >::ArrayRep * | m_rep |
T * | m_slice_data |
octave_idx_type | m_slice_len |
typedef float FloatMatrix::real_elt_type |
typedef void(* FloatMatrix::solve_singularity_handler) (float rcon) |
|
default |
Referenced by inverse(), lssolve(), and pseudo_inverse().
|
default |
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
explicit |
Definition at line 71 of file fMatrix.cc.
|
explicit |
Definition at line 75 of file fMatrix.cc.
|
explicit |
Definition at line 79 of file fMatrix.cc.
References Array< T, Alloc >::elem(), DiagArray2< T >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 86 of file fMatrix.cc.
References Array< T, Alloc >::elem(), DiagArray2< T >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 93 of file fMatrix.cc.
References Array< T, Alloc >::elem(), DiagArray2< T >::elem(), and DiagArray2< T >::length().
|
explicit |
Definition at line 100 of file fMatrix.cc.
References PermMatrix::col_perm_vec(), Array< T, Alloc >::elem(), len, and PermMatrix::rows().
|
explicit |
Definition at line 111 of file fMatrix.cc.
|
explicit |
Definition at line 115 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::abs | ( | ) | const |
Definition at line 2412 of file fMatrix.cc.
References FloatNDArray::abs().
FloatMatrix FloatMatrix::append | ( | const FloatColumnVector & | a | ) | const |
Definition at line 302 of file fMatrix.cc.
References Array< T, Alloc >::cols(), insert(), Array< T, Alloc >::numel(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::append | ( | const FloatDiagMatrix & | a | ) | const |
Definition at line 317 of file fMatrix.cc.
References Array< T, Alloc >::cols(), DiagArray2< T >::cols(), insert(), Array< T, Alloc >::rows(), and DiagArray2< T >::rows().
FloatMatrix FloatMatrix::append | ( | const FloatMatrix & | a | ) | const |
Definition at line 272 of file fMatrix.cc.
References Array< T, Alloc >::cols(), insert(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::append | ( | const FloatRowVector & | a | ) | const |
Definition at line 287 of file fMatrix.cc.
References Array< T, Alloc >::cols(), insert(), Array< T, Alloc >::numel(), and Array< T, Alloc >::rows().
FloatColumnVector FloatMatrix::column | ( | octave_idx_type | i | ) | const |
Definition at line 429 of file fMatrix.cc.
References Array< T, Alloc >::index().
Referenced by qr< T >::insert_col(), solve(), lu< T >::update(), qr< T >::update(), and lu< T >::update_piv().
FloatRowVector FloatMatrix::column_max | ( | ) | const |
FloatRowVector FloatMatrix::column_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2612 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< T, Alloc >::resize(), FloatRowVector::resize(), and Array< T, Alloc >::rows().
FloatRowVector FloatMatrix::column_min | ( | ) | const |
FloatRowVector FloatMatrix::column_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2557 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< T, Alloc >::resize(), FloatRowVector::resize(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::cumprod | ( | int | dim = -1 | ) | const |
Definition at line 2382 of file fMatrix.cc.
References FloatNDArray::cumprod().
FloatMatrix FloatMatrix::cumsum | ( | int | dim = -1 | ) | const |
Definition at line 2388 of file fMatrix.cc.
References FloatNDArray::cumsum().
FloatDET FloatMatrix::determinant | ( | ) | const |
Definition at line 873 of file fMatrix.cc.
References determinant().
Referenced by determinant(), determinant(), determinant(), and Fdet().
FloatDET FloatMatrix::determinant | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
float & | rcon, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 896 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), F77_XFCN, MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_unsymmetric(), MatrixType::Rectangular, Array< T, Alloc >::rows(), Array< T, Alloc >::rwdata(), base_det< T >::square(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
FloatDET FloatMatrix::determinant | ( | octave_idx_type & | info | ) | const |
Definition at line 881 of file fMatrix.cc.
References determinant().
FloatDET FloatMatrix::determinant | ( | octave_idx_type & | info, |
float & | rcon, | ||
bool | calc_cond = true |
||
) | const |
Definition at line 888 of file fMatrix.cc.
References determinant().
FloatMatrix FloatMatrix::diag | ( | octave_idx_type | k = 0 | ) | const |
Definition at line 2418 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 2424 of file fMatrix.cc.
References Array< T, Alloc >::cols(), current_liboctave_error_handler, and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::extract | ( | octave_idx_type | r1, |
octave_idx_type | c1, | ||
octave_idx_type | r2, | ||
octave_idx_type | c2 | ||
) | const |
Definition at line 404 of file fMatrix.cc.
References Array< T, Alloc >::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 414 of file fMatrix.cc.
References Array< T, Alloc >::index().
FloatMatrix & FloatMatrix::fill | ( | float | val | ) |
Definition at line 228 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::make_unique(), Array< T, Alloc >::rows(), and Array< T, Alloc >::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 246 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::make_unique(), Array< T, Alloc >::rows(), and Array< T, Alloc >::xelem().
FloatComplexMatrix FloatMatrix::fourier | ( | ) | const |
Definition at line 749 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::data(), Array< T, Alloc >::rows(), and Array< T, Alloc >::rwdata().
FloatComplexMatrix FloatMatrix::fourier2d | ( | ) | const |
Definition at line 808 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::data(), Array< T, Alloc >::rows(), and Array< T, Alloc >::rwdata().
|
inline |
Definition at line 137 of file fMatrix.h.
References MArray< T >::transpose().
FloatComplexMatrix FloatMatrix::ifourier | ( | ) | const |
Definition at line 778 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::rows(), and Array< T, Alloc >::rwdata().
FloatComplexMatrix FloatMatrix::ifourier2d | ( | ) | const |
Definition at line 820 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::rows(), and Array< T, Alloc >::rwdata().
FloatMatrix & FloatMatrix::insert | ( | const FloatColumnVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 183 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< T, Alloc >::make_unique(), Array< T, Alloc >::numel(), Array< T, Alloc >::rows(), and Array< T, Alloc >::xelem().
FloatMatrix & FloatMatrix::insert | ( | const FloatDiagMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 203 of file fMatrix.cc.
References Array< T, Alloc >::cols(), DiagArray2< T >::cols(), DiagArray2< T >::elem(), fill(), DiagArray2< T >::length(), Array< T, Alloc >::make_unique(), Array< T, Alloc >::rows(), DiagArray2< T >::rows(), and Array< T, Alloc >::xelem().
FloatMatrix & FloatMatrix::insert | ( | const FloatMatrix & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
FloatMatrix & FloatMatrix::insert | ( | const FloatRowVector & | a, |
octave_idx_type | r, | ||
octave_idx_type | c | ||
) |
Definition at line 163 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< T, Alloc >::make_unique(), Array< T, Alloc >::numel(), Array< T, Alloc >::rows(), and Array< T, Alloc >::xelem().
FloatMatrix FloatMatrix::inverse | ( | ) | const |
FloatMatrix FloatMatrix::inverse | ( | MatrixType & | mattype | ) | const |
Definition at line 491 of file fMatrix.cc.
References inverse().
FloatMatrix FloatMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info | ||
) | const |
Definition at line 499 of file fMatrix.cc.
References inverse().
FloatMatrix FloatMatrix::inverse | ( | MatrixType & | mattype, |
octave_idx_type & | info, | ||
float & | rcon, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 654 of file fMatrix.cc.
References FloatMatrix(), Array< T, Alloc >::columns(), MatrixType::Diagonal, Array< T, Alloc >::elem(), chol< T >::inverse(), MatrixType::ishermitian(), MatrixType::Lower, MatrixType::mark_as_unsymmetric(), chol< T >::rcond(), Array< T, Alloc >::rows(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
FloatMatrix FloatMatrix::inverse | ( | octave_idx_type & | info | ) | const |
Definition at line 475 of file fMatrix.cc.
References inverse().
FloatMatrix FloatMatrix::inverse | ( | octave_idx_type & | info, |
float & | rcon, | ||
bool | force = false , |
||
bool | calc_cond = true |
||
) | const |
Definition at line 483 of file fMatrix.cc.
References inverse().
bool FloatMatrix::issymmetric | ( | ) | const |
Definition at line 139 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< T, Alloc >::issquare(), and Array< T, Alloc >::rows().
FloatColumnVector FloatMatrix::lssolve | ( | const FloatColumnVector & | b | ) | const |
Definition at line 2152 of file fMatrix.cc.
References lssolve().
FloatColumnVector FloatMatrix::lssolve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2161 of file fMatrix.cc.
References lssolve().
FloatColumnVector FloatMatrix::lssolve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 2169 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 2177 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), F77_FUNC(), F77_XFCN, Array< T, Alloc >::numel(), Array< T, Alloc >::resize(), FloatColumnVector::resize(), Array< T, Alloc >::rows(), Array< T, Alloc >::rwdata(), and xilaenv().
FloatComplexColumnVector FloatMatrix::lssolve | ( | const FloatComplexColumnVector & | b | ) | const |
Definition at line 2280 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexColumnVector FloatMatrix::lssolve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2290 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 2300 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 2309 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexMatrix FloatMatrix::lssolve | ( | const FloatComplexMatrix & | b | ) | const |
Definition at line 2116 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatComplexMatrix FloatMatrix::lssolve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 2126 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 2135 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 2144 of file fMatrix.cc.
References FloatComplexMatrix::lssolve().
FloatMatrix FloatMatrix::lssolve | ( | const FloatMatrix & | b | ) | const |
FloatMatrix FloatMatrix::lssolve | ( | const FloatMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1937 of file fMatrix.cc.
References lssolve().
FloatMatrix FloatMatrix::lssolve | ( | const FloatMatrix & | b, |
octave_idx_type & | info, | ||
octave_idx_type & | rank | ||
) | const |
Definition at line 1945 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 1954 of file fMatrix.cc.
References FloatMatrix(), Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), F77_FUNC(), F77_XFCN, Array< T, Alloc >::resize(), resize(), Array< T, Alloc >::rows(), Array< T, Alloc >::rwdata(), and xilaenv().
bool FloatMatrix::operator!= | ( | const FloatMatrix & | a | ) | const |
Definition at line 133 of file fMatrix.cc.
FloatMatrix & FloatMatrix::operator+= | ( | const FloatDiagMatrix & | a | ) |
Definition at line 2317 of file fMatrix.cc.
References Array< T, Alloc >::cols(), DiagArray2< T >::cols(), Array< T, Alloc >::elem(), DiagArray2< T >::elem(), DiagArray2< T >::length(), Array< T, Alloc >::rows(), and DiagArray2< T >::rows().
FloatMatrix & FloatMatrix::operator-= | ( | const FloatDiagMatrix & | a | ) |
Definition at line 2335 of file fMatrix.cc.
References Array< T, Alloc >::cols(), DiagArray2< T >::cols(), Array< T, Alloc >::elem(), DiagArray2< T >::elem(), DiagArray2< T >::length(), Array< T, Alloc >::rows(), and DiagArray2< T >::rows().
|
default |
bool FloatMatrix::operator== | ( | const FloatMatrix & | a | ) | const |
Definition at line 124 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::data(), mx_inline_equal(), Array< T, Alloc >::numel(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::prod | ( | int | dim = -1 | ) | const |
Definition at line 2394 of file fMatrix.cc.
References FloatNDArray::prod().
FloatMatrix FloatMatrix::pseudo_inverse | ( | float | tol = 0.0 | ) | const |
Definition at line 708 of file fMatrix.cc.
References FloatMatrix(), Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), extract(), FloatColumnVector::extract(), FloatDiagMatrix::extract_diag(), FloatDiagMatrix::inverse(), Array< T, Alloc >::numel(), Array< T, Alloc >::rows(), transpose(), and V.
Referenced by Fpinv().
float FloatMatrix::rcond | ( | ) | const |
Definition at line 1047 of file fMatrix.cc.
References rcond().
float FloatMatrix::rcond | ( | MatrixType & | mattype | ) | const |
Definition at line 1054 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::data(), F77_XFCN, MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, MatrixType::mark_as_rectangular(), MatrixType::mark_as_unsymmetric(), norm(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, Array< T, Alloc >::rows(), Array< T, Alloc >::rwdata(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
|
inline |
Definition at line 156 of file fMatrix.h.
References Array< T >::resize().
Referenced by qr< T >::init(), qrp< T >::init(), and lssolve().
FloatRowVector FloatMatrix::row | ( | octave_idx_type | i | ) | const |
Definition at line 423 of file fMatrix.cc.
References Array< T, Alloc >::index().
FloatColumnVector FloatMatrix::row_max | ( | ) | const |
FloatColumnVector FloatMatrix::row_max | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2502 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< T, Alloc >::resize(), FloatColumnVector::resize(), and Array< T, Alloc >::rows().
FloatColumnVector FloatMatrix::row_min | ( | ) | const |
FloatColumnVector FloatMatrix::row_min | ( | Array< octave_idx_type > & | index | ) | const |
Definition at line 2447 of file fMatrix.cc.
References Array< T, Alloc >::cols(), Array< T, Alloc >::elem(), Array< T, Alloc >::resize(), FloatColumnVector::resize(), and Array< T, Alloc >::rows().
FloatColumnVector FloatMatrix::solve | ( | const FloatColumnVector & | b | ) | const |
Definition at line 1866 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1873 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | const FloatColumnVector & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1880 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 1887 of file fMatrix.cc.
References solve().
FloatComplexColumnVector FloatMatrix::solve | ( | const FloatComplexColumnVector & | b | ) | const |
Definition at line 1896 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1903 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | const FloatComplexColumnVector & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1911 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 1919 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexMatrix FloatMatrix::solve | ( | const FloatComplexMatrix & | b | ) | const |
Definition at line 1834 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexMatrix FloatMatrix::solve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1841 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexMatrix FloatMatrix::solve | ( | const FloatComplexMatrix & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1848 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 1856 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatMatrix FloatMatrix::solve | ( | const FloatMatrix & | b | ) | const |
Definition at line 1803 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | const FloatMatrix & | b, |
octave_idx_type & | info | ||
) | const |
Definition at line 1811 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | const FloatMatrix & | b, |
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1818 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 1825 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatColumnVector & | b | ||
) | const |
Definition at line 1734 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1742 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatColumnVector & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1750 of file fMatrix.cc.
References solve().
FloatColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
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 1758 of file fMatrix.cc.
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatComplexColumnVector & | b | ||
) | const |
Definition at line 1769 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatComplexColumnVector & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1777 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatComplexColumnVector & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1785 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexColumnVector FloatMatrix::solve | ( | MatrixType & | mattype, |
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 1793 of file fMatrix.cc.
References FloatComplexMatrix::solve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatComplexMatrix & | b | ||
) | const |
Definition at line 1667 of file fMatrix.cc.
References solve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatComplexMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1675 of file fMatrix.cc.
References solve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatComplexMatrix & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1683 of file fMatrix.cc.
References solve().
FloatComplexMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
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 1722 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatMatrix & | b | ||
) | const |
Definition at line 1609 of file fMatrix.cc.
References solve().
Referenced by solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), solve(), xdiv(), xdiv(), xleftdiv(), and xleftdiv().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatMatrix & | b, | ||
octave_idx_type & | info | ||
) | const |
Definition at line 1617 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
const FloatMatrix & | b, | ||
octave_idx_type & | info, | ||
float & | rcon | ||
) | const |
Definition at line 1625 of file fMatrix.cc.
References solve().
FloatMatrix FloatMatrix::solve | ( | MatrixType & | mattype, |
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 1632 of file fMatrix.cc.
References blas_conj_trans, blas_trans, MatrixType::Full, MatrixType::Hermitian, MatrixType::Lower, lssolve(), MatrixType::Permuted_Lower, MatrixType::Permuted_Upper, MatrixType::Rectangular, solve(), transpose(), MatrixType::type(), MatrixType::Unknown, and MatrixType::Upper.
FloatMatrix FloatMatrix::stack | ( | const FloatColumnVector & | a | ) | const |
Definition at line 362 of file fMatrix.cc.
References Array< T, Alloc >::cols(), insert(), Array< T, Alloc >::numel(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::stack | ( | const FloatDiagMatrix & | a | ) | const |
Definition at line 377 of file fMatrix.cc.
References Array< T, Alloc >::cols(), DiagArray2< T >::cols(), insert(), Array< T, Alloc >::rows(), and DiagArray2< T >::rows().
FloatMatrix FloatMatrix::stack | ( | const FloatMatrix & | a | ) | const |
Definition at line 332 of file fMatrix.cc.
References Array< T, Alloc >::cols(), insert(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::stack | ( | const FloatRowVector & | a | ) | const |
Definition at line 347 of file fMatrix.cc.
References Array< T, Alloc >::cols(), insert(), Array< T, Alloc >::numel(), and Array< T, Alloc >::rows().
FloatMatrix FloatMatrix::sum | ( | int | dim = -1 | ) | const |
Definition at line 2400 of file fMatrix.cc.
References FloatNDArray::sum().
FloatMatrix FloatMatrix::sumsq | ( | int | dim = -1 | ) | const |
Definition at line 2406 of file fMatrix.cc.
References FloatNDArray::sumsq().
|
inline |
Definition at line 138 of file fMatrix.h.
References MArray< T >::transpose().
Referenced by pseudo_inverse(), solve(), Sylvester(), xdiv(), and xdiv().
|
friend |
|
friend |
Definition at line 398 of file fMatrix.cc.
|
friend |
Definition at line 2659 of file fMatrix.cc.
|
friend |
Definition at line 2675 of file fMatrix.cc.
|
friend |
Definition at line 392 of file fMatrix.cc.