GNU Octave  9.1.0
A high-level interpreted language, primarily intended for numerical computations, mostly compatible with Matlab
dMatrix.h File Reference
#include "octave-config.h"
#include "DET.h"
#include "MArray.h"
#include "MDiagArray2.h"
#include "MatrixType.h"
#include "dNDArray.h"
#include "mx-defs.h"
#include "mx-op-decl.h"

Go to the source code of this file.

Classes

class  Matrix
 

Functions

Matrix Givens (double, double)
 
Matrix imag (const ComplexMatrix &a)
 
Matrix linspace (const ColumnVector &x1, const ColumnVector &x2, octave_idx_type n)
 
Matrix max (const Matrix &a, const Matrix &b)
 
Matrix max (const Matrix &m, double d)
 
Matrix max (double d, const Matrix &m)
 
Matrix min (const Matrix &a, const Matrix &b)
 
Matrix min (const Matrix &m, double d)
 
Matrix min (double d, const Matrix &m)
 
boolMatrix mx_el_and (const double &, const Matrix &)
 
boolMatrix mx_el_and (const Matrix &, const double &)
 
boolMatrix mx_el_and (const Matrix &, const Matrix &)
 
boolMatrix mx_el_eq (const double &, const Matrix &)
 
boolMatrix mx_el_eq (const Matrix &, const double &)
 
boolMatrix mx_el_eq (const Matrix &, const Matrix &)
 
boolMatrix mx_el_ge (const double &, const Matrix &)
 
boolMatrix mx_el_ge (const Matrix &, const double &)
 
boolMatrix mx_el_ge (const Matrix &, const Matrix &)
 
boolMatrix mx_el_gt (const double &, const Matrix &)
 
boolMatrix mx_el_gt (const Matrix &, const double &)
 
boolMatrix mx_el_gt (const Matrix &, const Matrix &)
 
boolMatrix mx_el_le (const double &, const Matrix &)
 
boolMatrix mx_el_le (const Matrix &, const double &)
 
boolMatrix mx_el_le (const Matrix &, const Matrix &)
 
boolMatrix mx_el_lt (const double &, const Matrix &)
 
boolMatrix mx_el_lt (const Matrix &, const double &)
 
boolMatrix mx_el_lt (const Matrix &, const Matrix &)
 
boolMatrix mx_el_ne (const double &, const Matrix &)
 
boolMatrix mx_el_ne (const Matrix &, const double &)
 
boolMatrix mx_el_ne (const Matrix &, const Matrix &)
 
boolMatrix mx_el_or (const double &, const Matrix &)
 
boolMatrix mx_el_or (const Matrix &, const double &)
 
boolMatrix mx_el_or (const Matrix &, const Matrix &)
 
Matrix operator* (const ColumnVector &a, const RowVector &b)
 
Matrix operator* (const double &x, const Matrix &y)
 
Matrix operator* (const Matrix &a, const Matrix &b)
 
Matrix operator* (const Matrix &x, const double &y)
 
Matrix operator*= (Matrix &x, const double &y)
 
Matrix operator+ (const double &x, const Matrix &y)
 
Matrix operator+ (const Matrix &x)
 
Matrix operator+ (const Matrix &x, const double &y)
 
Matrix operator+ (const Matrix &x, const Matrix &y)
 
Matrix operator+= (Matrix &x, const double &y)
 
Matrix operator+= (Matrix &x, const Matrix &y)
 
Matrix operator- (const double &x, const Matrix &y)
 
Matrix operator- (const Matrix &x)
 
Matrix operator- (const Matrix &x, const double &y)
 
Matrix operator- (const Matrix &x, const Matrix &y)
 
Matrix operator-= (Matrix &x, const double &y)
 
Matrix operator-= (Matrix &x, const Matrix &y)
 
Matrix operator/ (const double &x, const Matrix &y)
 
Matrix operator/ (const Matrix &x, const double &y)
 
Matrix operator/= (Matrix &x, const double &y)
 
Matrix product (const Matrix &x, const Matrix &y)
 
Matrix product_eq (Matrix &x, const Matrix &y)
 
Matrix quotient (const Matrix &x, const Matrix &y)
 
Matrix quotient_eq (Matrix &x, const Matrix &y)
 
template<typename T >
void read_int (std::istream &is, bool swap_bytes, T &val)
 
Matrix real (const ComplexMatrix &a)
 
Matrix Sylvester (const Matrix &, const Matrix &, const Matrix &)
 
Matrix xgemm (const Matrix &a, const Matrix &b, blas_trans_type transa=blas_no_trans, blas_trans_type transb=blas_no_trans)
 

Function Documentation

◆ Givens()

Matrix Givens ( double  x,
double  y 
)

Definition at line 2687 of file dMatrix.cc.

References Array< T, Alloc >::elem(), F77_FUNC(), and x.

◆ imag()

Matrix imag ( const ComplexMatrix a)

Definition at line 135 of file dMatrix.cc.

◆ linspace()

Matrix linspace ( const ColumnVector x1,
const ColumnVector x2,
octave_idx_type  n 
)

Definition at line 3012 of file dMatrix.cc.

References Array< T, Alloc >::clear(), m, n, and Array< T, Alloc >::numel().

◆ max() [1/3]

Matrix max ( const Matrix a,
const Matrix b 
)

◆ max() [2/3]

Matrix max ( const Matrix m,
double  d 
)

Definition at line 2968 of file dMatrix.cc.

References d, EMPTY_RETURN_CHECK, m, and max().

◆ max() [3/3]

Matrix max ( double  d,
const Matrix m 
)

Definition at line 2948 of file dMatrix.cc.

References d, EMPTY_RETURN_CHECK, and m.

Referenced by max(), and Matrix::pseudo_inverse().

◆ min() [1/3]

Matrix min ( const Matrix a,
const Matrix b 
)

◆ min() [2/3]

Matrix min ( const Matrix m,
double  d 
)

Definition at line 2904 of file dMatrix.cc.

References d, EMPTY_RETURN_CHECK, m, and min().

◆ min() [3/3]

Matrix min ( double  d,
const Matrix m 
)

Definition at line 2884 of file dMatrix.cc.

References d, EMPTY_RETURN_CHECK, and m.

Referenced by min(), and Matrix::pseudo_inverse().

◆ mx_el_and() [1/3]

boolMatrix mx_el_and ( const double &  s,
const Matrix m 
)

Definition at line 3042 of file dMatrix.cc.

◆ mx_el_and() [2/3]

boolMatrix mx_el_and ( const Matrix m,
const double &  s 
)

Definition at line 3039 of file dMatrix.cc.

◆ mx_el_and() [3/3]

boolMatrix mx_el_and ( const Matrix m1,
const Matrix m2 
)

Definition at line 3045 of file dMatrix.cc.

◆ mx_el_eq() [1/3]

boolMatrix mx_el_eq ( const double &  s,
const Matrix m 
)

Definition at line 3041 of file dMatrix.cc.

◆ mx_el_eq() [2/3]

boolMatrix mx_el_eq ( const Matrix m,
const double &  s 
)

Definition at line 3038 of file dMatrix.cc.

◆ mx_el_eq() [3/3]

boolMatrix mx_el_eq ( const Matrix m1,
const Matrix m2 
)

Definition at line 3044 of file dMatrix.cc.

◆ mx_el_ge() [1/3]

boolMatrix mx_el_ge ( const double &  s,
const Matrix m 
)

Definition at line 3041 of file dMatrix.cc.

◆ mx_el_ge() [2/3]

boolMatrix mx_el_ge ( const Matrix m,
const double &  s 
)

Definition at line 3038 of file dMatrix.cc.

◆ mx_el_ge() [3/3]

boolMatrix mx_el_ge ( const Matrix m1,
const Matrix m2 
)

Definition at line 3044 of file dMatrix.cc.

◆ mx_el_gt() [1/3]

boolMatrix mx_el_gt ( const double &  s,
const Matrix m 
)

Definition at line 3041 of file dMatrix.cc.

◆ mx_el_gt() [2/3]

boolMatrix mx_el_gt ( const Matrix m,
const double &  s 
)

Definition at line 3038 of file dMatrix.cc.

◆ mx_el_gt() [3/3]

boolMatrix mx_el_gt ( const Matrix m1,
const Matrix m2 
)

Definition at line 3044 of file dMatrix.cc.

◆ mx_el_le() [1/3]

boolMatrix mx_el_le ( const double &  s,
const Matrix m 
)

Definition at line 3041 of file dMatrix.cc.

◆ mx_el_le() [2/3]

boolMatrix mx_el_le ( const Matrix m,
const double &  s 
)

Definition at line 3038 of file dMatrix.cc.

◆ mx_el_le() [3/3]

boolMatrix mx_el_le ( const Matrix m1,
const Matrix m2 
)

Definition at line 3044 of file dMatrix.cc.

◆ mx_el_lt() [1/3]

boolMatrix mx_el_lt ( const double &  s,
const Matrix m 
)

Definition at line 3041 of file dMatrix.cc.

◆ mx_el_lt() [2/3]

boolMatrix mx_el_lt ( const Matrix m,
const double &  s 
)

Definition at line 3038 of file dMatrix.cc.

◆ mx_el_lt() [3/3]

boolMatrix mx_el_lt ( const Matrix m1,
const Matrix m2 
)

Definition at line 3044 of file dMatrix.cc.

◆ mx_el_ne() [1/3]

boolMatrix mx_el_ne ( const double &  s,
const Matrix m 
)

Definition at line 3041 of file dMatrix.cc.

◆ mx_el_ne() [2/3]

boolMatrix mx_el_ne ( const Matrix m,
const double &  s 
)

Definition at line 3038 of file dMatrix.cc.

◆ mx_el_ne() [3/3]

boolMatrix mx_el_ne ( const Matrix m1,
const Matrix m2 
)

Definition at line 3044 of file dMatrix.cc.

◆ mx_el_or() [1/3]

boolMatrix mx_el_or ( const double &  s,
const Matrix m 
)

Definition at line 3042 of file dMatrix.cc.

◆ mx_el_or() [2/3]

boolMatrix mx_el_or ( const Matrix m,
const double &  s 
)

Definition at line 3039 of file dMatrix.cc.

◆ mx_el_or() [3/3]

boolMatrix mx_el_or ( const Matrix m1,
const Matrix m2 
)

Definition at line 3045 of file dMatrix.cc.

◆ operator*() [1/4]

Matrix operator* ( const ColumnVector a,
const RowVector b 
)

◆ operator*() [2/4]

Matrix operator* ( const double &  x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator*() [3/4]

Matrix operator* ( const Matrix a,
const Matrix b 
)

Definition at line 2872 of file dMatrix.cc.

References xgemm().

◆ operator*() [4/4]

Matrix operator* ( const Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator*=()

Matrix operator*= ( Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator+() [1/4]

Matrix operator+ ( const double &  x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator+() [2/4]

Matrix operator+ ( const Matrix x)
inline

Definition at line 444 of file dMatrix.h.

◆ operator+() [3/4]

Matrix operator+ ( const Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator+() [4/4]

Matrix operator+ ( const Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator+=() [1/2]

Matrix operator+= ( Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator+=() [2/2]

Matrix operator+= ( Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator-() [1/4]

Matrix operator- ( const double &  x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator-() [2/4]

Matrix operator- ( const Matrix x)
inline

Definition at line 444 of file dMatrix.h.

◆ operator-() [3/4]

Matrix operator- ( const Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator-() [4/4]

Matrix operator- ( const Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator-=() [1/2]

Matrix operator-= ( Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator-=() [2/2]

Matrix operator-= ( Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator/() [1/2]

Matrix operator/ ( const double &  x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator/() [2/2]

Matrix operator/ ( const Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ operator/=()

Matrix operator/= ( Matrix x,
const double &  y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ product()

Matrix product ( const Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ product_eq()

Matrix product_eq ( Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ quotient()

Matrix quotient ( const Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ quotient_eq()

Matrix quotient_eq ( Matrix x,
const Matrix y 
)
inline

Definition at line 444 of file dMatrix.h.

◆ read_int()

template<typename T >
void read_int ( std::istream &  is,
bool  swap_bytes,
T &  val 
)

◆ real()

Matrix real ( const ComplexMatrix a)

Definition at line 134 of file dMatrix.cc.

◆ Sylvester()

Matrix Sylvester ( const Matrix a,
const Matrix b,
const Matrix c 
)

◆ xgemm()