23 #if ! defined (octave_fMatrix_h)
24 #define octave_fMatrix_h 1
26 #include "octave-config.h"
58 typedef void (*solve_singularity_handler) (
float rcon);
100 bool is_symmetric (
void)
const;
156 float& rcon,
bool force,
bool calc_cond)
const;
159 float& rcon,
bool force,
bool calc_cond)
const;
165 bool calc_cond =
true)
const;
170 bool force =
false,
bool calc_cond =
true)
const;
183 bool calc_cond =
true)
const;
185 float& rcon,
bool calc_cond =
true)
const;
187 float rcond (
void)
const;
195 bool calc_cond =
false,
202 bool calc_cond =
false,
209 bool calc_cond =
false)
const;
221 bool singular_fallback =
true,
232 bool singular_fallback =
true,
364 friend OCTAVE_API std::ostream&
operator << (std::ostream& os,
366 friend OCTAVE_API std::istream&
operator >> (std::istream&
is,
417 template <typename T>
static void swap_bytes(void *ptr, unsigned int i, unsigned int j)
Array< FloatComplex > as_matrix(void) const
Return the array as a matrix.
FloatComplexRowVector column_min(void) const
OCTAVE_API FloatMatrix Sylvester(const FloatMatrix &, const FloatMatrix &, const FloatMatrix &)
FloatComplexMatrix solve(MatrixType &typ, const FloatMatrix &b) const
FloatComplexMatrix extract(octave_idx_type r1, octave_idx_type c1, octave_idx_type r2, octave_idx_type c2) const
void resize(octave_idx_type nr, octave_idx_type nc, float rfv=0)
void(* solve_singularity_handler)(float rcon)
OCTAVE_EXPORT octave_value_list column
FloatMatrix(const dim_vector &dv, float val)
bool operator!=(const dim_vector &a, const dim_vector &b)
FloatMatrix(const FloatMatrix &a)
FloatMatrix(octave_idx_type r, octave_idx_type c, float val)
std::istream & operator>>(std::istream &is, SparseBoolMatrix &a)
FloatComplex complex_elt_type
FloatComplexMatrix tinverse(MatrixType &mattype, octave_idx_type &info, float &rcon, bool force, bool calc_cond) const
FloatComplexMatrix fsolve(MatrixType &typ, const FloatComplexMatrix &b, octave_idx_type &info, float &rcon, solve_singularity_handler sing_handler, bool calc_cond=false) const
identity matrix If supplied two scalar respectively For allows like xample val
FloatColumnVector real_column_vector_type
FloatMatrix transpose(void) const
FloatMatrix(octave_idx_type r, octave_idx_type c)
MArray< T > transpose(void) const
FloatMatrix hermitian(void) const
FloatColumnVector column_vector_type
Template for N-dimensional array classes with like-type math operators.
#define SM_CMP_OP_DECLS(S, M, API)
FloatComplexMatrix inverse(void) const
FloatComplexMatrix lssolve(const FloatMatrix &b) const
#define MARRAY_FORWARD_DEFS(B, R, T)
void read_int(std::istream &is, bool swap_bytes, T &val)
OCTAVE_API FloatMatrix xgemm(const FloatMatrix &a, const FloatMatrix &b, blas_trans_type transa=blas_no_trans, blas_trans_type transb=blas_no_trans)
F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_REAL const F77_REAL F77_REAL &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T F77_DBLE &F77_RET_T F77_REAL &F77_RET_T F77_REAL &F77_RET_T F77_DBLE &F77_RET_T const F77_DBLE F77_DBLE &F77_RET_T const F77_REAL F77_REAL &F77_RET_T F77_REAL F77_REAL &F77_RET_T F77_DBLE F77_DBLE &F77_RET_T const F77_DBLE const F77_DBLE F77_DBLE * d
FloatDiagMatrix real_diag_matrix_type
FloatComplexMatrix cumprod(int dim=-1) const
calling an anonymous function involves an overhead quite comparable to the overhead of an m file function Passing a handle to a built in function is because the interpreter is not involved in the internal loop For a
FloatComplexMatrix diag(octave_idx_type k=0) const
FloatComplexMatrix pseudo_inverse(float tol=0.0) const
FloatMatrix(const dim_vector &dv)
OCTAVE_API FloatMatrix Givens(float, float)
FloatComplexMatrix fourier2d(void) const
OCTAVE_API FloatMatrix real(const FloatComplexMatrix &a)
#define SM_BOOL_OP_DECLS(S, M, API)
nd deftypefn *octave_map m
#define MM_CMP_OP_DECLS(M1, M2, API)
#define MM_BOOL_OP_DECLS(M1, M2, API)
FloatComplexColumnVector row_min(void) const
void resize(const dim_vector &dv, const T &rfv)
FloatComplexMatrix sum(int dim=-1) const
OCTAVE_API FloatMatrix imag(const FloatComplexMatrix &a)
static M ltsolve(const SM &L, const ColumnVector &Q, const M &m)
FloatComplexMatrix sumsq(int dim=-1) const
FloatMatrix(const MArray< U > &a)
FloatMatrix real_matrix_type
FloatComplexMatrix cumsum(int dim=-1) const
the sparsity preserving column transformation such that that defines the pivoting threshold can be given in which case it defines the c
FloatComplexMatrix ifourier(void) const
FloatComplexColumnVector stack(const FloatColumnVector &a) const
bool operator==(const dim_vector &a, const dim_vector &b)
FloatRowVector real_row_vector_type
FloatComplexRowVector column_max(void) const
#define MS_CMP_OP_DECLS(M, S, API)
N Dimensional Array with copy-on-write semantics.
OCTAVE_API FloatMatrix linspace(const FloatColumnVector &x1, const FloatColumnVector &x2, octave_idx_type n)
FloatComplexMatrix prod(int dim=-1) const
=val(i)}if ode{val(i)}occurs in table i
OCTAVE_EXPORT octave_value_list return the value of the option it must match the dimension of the state and the relative tolerance must also be a vector of the same length tem it must match the dimension of the state and the absolute tolerance must also be a vector of the same length The local error test applied at each integration step is xample roup abs(local error in x(i))<
FloatMatrix operator+=(FloatMatrix &x, const float &y)
template OCTAVE_API std::ostream & operator<<(std::ostream &, const Array< bool > &)
FloatRowVector row_vector_type
OCTAVE_API FloatMatrix max(float d, const FloatMatrix &m)
FloatComplexMatrix fourier(void) const
#define MS_BOOL_OP_DECLS(M, S, API)
static M utsolve(const SM &U, const ColumnVector &Q, const M &m)
FloatComplexColumnVector & fill(float val)
FloatComplexColumnVector & insert(const FloatColumnVector &a, octave_idx_type r)
std::complex< float > FloatComplex
FloatComplexColumnVector row_max(void) const
FloatComplexDET determinant(void) const
FloatComplexMatrix ifourier2d(void) const
FloatMatrix operator-=(FloatMatrix &x, const float &y)
write the output to stdout if nargout is
OCTAVE_API FloatMatrix min(float d, const FloatMatrix &m)
Vector representing the dimensions (size) of an Array.
FloatComplexMatrix complex_matrix_type
FloatComplexMatrix finverse(MatrixType &mattype, octave_idx_type &info, float &rcon, bool force, bool calc_cond) const
OCTAVE_API FloatMatrix operator*(const FloatColumnVector &a, const FloatRowVector &b)
FloatComplexMatrix extract_n(octave_idx_type r1, octave_idx_type c1, octave_idx_type nr, octave_idx_type nc) const
FloatMatrix(const Array< U > &a)
where the brackets indicate optional arguments and and character or cell array For character arrays the conversion is repeated for every row
Array< FloatComplex > index(const idx_vector &i) const
Indexing without resizing.
FloatComplexDiagMatrix complex_diag_matrix_type