This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Data Structures | |
| struct | ComplexNumber |
| struct | MatrixElement |
| struct | AllocationRecord |
| struct | FillinListNodeStruct |
| struct | MatrixFrame |
Defines | |
| #define | LINT NO |
| #define | SPBOOLEAN int |
| #define | NO 0 |
| #define | YES 1 |
| #define | NOT ! |
| #define | AND && |
| #define | OR || |
| #define | NULL 0 |
| #define | SPARSE_ID 0x772773 |
| #define | IS_SPARSE(matrix) |
| #define | IS_VALID(matrix) |
| #define | IS_FACTORED(matrix) ((matrix)->Factored && !(matrix)->NeedsOrdering) |
| #define | MAX(a, b) ((a) > (b) ? (a) : (b)) |
| #define | MIN(a, b) ((a) < (b) ? (a) : (b)) |
| #define | ABS(a) ((a) < 0.0 ? -(a) : (a)) |
| #define | SQR(a) ((a)*(a)) |
| #define | SWAP(type, a, b) {type swapx; swapx = a; a = b; b = swapx;} |
| #define | ELEMENT_MAG(ptr) ((ptr)->Real < 0.0 ? -(ptr)->Real : (ptr)->Real) |
| #define | CMPLX_ASSIGN(to, from) |
| #define | CMPLX_CONJ_ASSIGN(to, from) |
| #define | CMPLX_NEGATE_ASSIGN(to, from) |
| #define | CMPLX_CONJ_NEGATE_ASSIGN(to, from) |
| #define | CMPLX_CONJ(a) (a).Imag = -(a).Imag |
| #define | CMPLX_NEGATE(a) |
| #define | CMPLX_1_NORM(a) (ABS((a).Real) + ABS((a).Imag)) |
| #define | CMPLX_INF_NORM(a) (MAX (ABS((a).Real),ABS((a).Imag))) |
| #define | CMPLX_2_NORM(a) (sqrt((a).Real*(a).Real + (a).Imag*(a).Imag)) |
| #define | CMPLX_ADD(to, from_a, from_b) |
| #define | CMPLX_SUBT(to, from_a, from_b) |
| #define | CMPLX_ADD_ASSIGN(to, from) |
| #define | CMPLX_SUBT_ASSIGN(to, from) |
| #define | SCLR_MULT(to, sclr, cmplx) |
| #define | SCLR_MULT_ASSIGN(to, sclr) |
| #define | CMPLX_MULT(to, from_a, from_b) |
| #define | CMPLX_MULT_ASSIGN(to, from) |
| #define | CMPLX_CONJ_MULT(to, from_a, from_b) |
| #define | CMPLX_MULT_ADD(to, mult_a, mult_b, add) |
| #define | CMPLX_MULT_SUBT(to, mult_a, mult_b, subt) |
| #define | CMPLX_CONJ_MULT_ADD(to, mult_a, mult_b, add) |
| #define | CMPLX_MULT_ADD_ASSIGN(to, from_a, from_b) |
| #define | CMPLX_MULT_SUBT_ASSIGN(to, from_a, from_b) |
| #define | CMPLX_CONJ_MULT_ADD_ASSIGN(to, from_a, from_b) |
| #define | CMPLX_CONJ_MULT_SUBT_ASSIGN(to, from_a, from_b) |
| #define | CMPLX_DIV(to, num, den) |
| #define | CMPLX_DIV_ASSIGN(num, den) |
| #define | CMPLX_RECIPROCAL(to, den) |
| #define | ASSERT(condition) |
| #define | ABORT() |
| #define | IMAG_VECTORS |
| #define | IMAG_RHS |
Typedefs | |
| typedef spREAL | RealNumber |
| typedef spREAL * | RealVector |
| typedef struct ComplexNumber * | ComplexVector |
| typedef MatrixElement * | ElementPtr |
| typedef ElementPtr * | ArrayOfElementPtrs |
| typedef AllocationRecord * | AllocationListPtr |
| typedef MatrixFrame * | MatrixPtr |
| #define AND && |
Definition at line 108 of file spDefs.h.
Referenced by ComplexRowColElimination(), CountMarkowitz(), CreateFillin(), ExchangeColElements(), ExchangeRowElements(), ExchangeRowsAndCols(), FindBiggestInColExclude(), MarkowitzProducts(), RealRowColElimination(), scheduler(), SearchEntireMatrix(), SearchForSingleton(), spCreate(), spFactor(), spGetElement(), spOrderAndFactor(), spSetComplex(), spSetReal(), and UpdateMarkowitzNumbers().
| #define ASSERT | ( | condition | ) |
Definition at line 380 of file spDefs.h.
Referenced by spClear(), spDestroy(), spElementCount(), spError(), spFactor(), spFillinCount(), spGetElement(), spGetSize(), spOrderAndFactor(), spPartition(), spSetComplex(), spSetReal(), and spWhereSingular().
| #define CMPLX_ADD | ( | to, | |||
| from_a, | |||||
| from_b | ) |
| #define CMPLX_ADD_ASSIGN | ( | to, | |||
| from | ) |
| #define CMPLX_ASSIGN | ( | to, | |||
| from | ) |
| #define CMPLX_CONJ_ASSIGN | ( | to, | |||
| from | ) |
| #define CMPLX_CONJ_MULT | ( | to, | |||
| from_a, | |||||
| from_b | ) |
| #define CMPLX_CONJ_MULT_ADD | ( | to, | |||
| mult_a, | |||||
| mult_b, | |||||
| add | ) |
| #define CMPLX_CONJ_MULT_ADD_ASSIGN | ( | to, | |||
| from_a, | |||||
| from_b | ) |
| #define CMPLX_CONJ_MULT_SUBT_ASSIGN | ( | to, | |||
| from_a, | |||||
| from_b | ) |
| #define CMPLX_CONJ_NEGATE_ASSIGN | ( | to, | |||
| from | ) |
| #define CMPLX_DIV | ( | to, | |||
| num, | |||||
| den | ) |
Value:
{ RealNumber r_, s_; \
if (((den).Real >= (den).Imag AND (den).Real > -(den).Imag) OR \
((den).Real < (den).Imag AND (den).Real <= -(den).Imag)) \
{ r_ = (den).Imag / (den).Real; \
s_ = (den).Real + r_*(den).Imag; \
(to).Real = ((num).Real + r_*(num).Imag)/s_; \
(to).Imag = ((num).Imag - r_*(num).Real)/s_; \
} \
else \
{ r_ = (den).Real / (den).Imag; \
s_ = (den).Imag + r_*(den).Real; \
(to).Real = (r_*(num).Real + (num).Imag)/s_; \
(to).Imag = (r_*(num).Imag - (num).Real)/s_; \
} \
}
| #define CMPLX_DIV_ASSIGN | ( | num, | |||
| den | ) |
Value:
{ RealNumber r_, s_, t_; \
if (((den).Real >= (den).Imag AND (den).Real > -(den).Imag) OR \
((den).Real < (den).Imag AND (den).Real <= -(den).Imag)) \
{ r_ = (den).Imag / (den).Real; \
s_ = (den).Real + r_*(den).Imag; \
t_ = ((num).Real + r_*(num).Imag)/s_; \
(num).Imag = ((num).Imag - r_*(num).Real)/s_; \
(num).Real = t_; \
} \
else \
{ r_ = (den).Real / (den).Imag; \
s_ = (den).Imag + r_*(den).Real; \
t_ = (r_*(num).Real + (num).Imag)/s_; \
(num).Imag = (r_*(num).Imag - (num).Real)/s_; \
(num).Real = t_; \
} \
}
| #define CMPLX_MULT | ( | to, | |||
| from_a, | |||||
| from_b | ) |
| #define CMPLX_MULT_ADD | ( | to, | |||
| mult_a, | |||||
| mult_b, | |||||
| add | ) |
| #define CMPLX_MULT_ADD_ASSIGN | ( | to, | |||
| from_a, | |||||
| from_b | ) |
| #define CMPLX_MULT_ASSIGN | ( | to, | |||
| from | ) |
Value:
{ RealNumber to_real_ = (to).Real; \
(to).Real = to_real_ * (from).Real - \
(to).Imag * (from).Imag; \
(to).Imag = to_real_ * (from).Imag + \
(to).Imag * (from).Real; \
}
Definition at line 223 of file spDefs.h.
Referenced by ComplexRowColElimination().
| #define CMPLX_MULT_SUBT | ( | to, | |||
| mult_a, | |||||
| mult_b, | |||||
| subt | ) |
| #define CMPLX_MULT_SUBT_ASSIGN | ( | to, | |||
| from_a, | |||||
| from_b | ) |
Value:
{ (to).Real -= (from_a).Real * (from_b).Real - \
(from_a).Imag * (from_b).Imag; \
(to).Imag -= (from_a).Real * (from_b).Imag + \
(from_a).Imag * (from_b).Real; \
}
Definition at line 279 of file spDefs.h.
Referenced by ComplexRowColElimination().
| #define CMPLX_NEGATE | ( | a | ) |
| #define CMPLX_NEGATE_ASSIGN | ( | to, | |||
| from | ) |
| #define CMPLX_RECIPROCAL | ( | to, | |||
| den | ) |
Value:
{ RealNumber r_; \
if (((den).Real >= (den).Imag AND (den).Real > -(den).Imag) OR \
((den).Real < (den).Imag AND (den).Real <= -(den).Imag)) \
{ r_ = (den).Imag / (den).Real; \
(to).Imag = -r_*((to).Real = 1.0/((den).Real + r_*(den).Imag)); \
} \
else \
{ r_ = (den).Real / (den).Imag; \
(to).Real = -r_*((to).Imag = -1.0/((den).Imag + r_*(den).Real));\
} \
}
Definition at line 349 of file spDefs.h.
Referenced by ComplexRowColElimination().
| #define CMPLX_SUBT | ( | to, | |||
| from_a, | |||||
| from_b | ) |
| #define CMPLX_SUBT_ASSIGN | ( | to, | |||
| from | ) |
Definition at line 143 of file spDefs.h.
Referenced by ComplexRowColElimination(), FindBiggestInColExclude(), FindLargestInCol(), SearchEntireMatrix(), SearchForSingleton(), and spOrderAndFactor().
| #define IMAG_VECTORS |
| #define IS_FACTORED | ( | matrix | ) | ((matrix)->Factored && !(matrix)->NeedsOrdering) |
| #define IS_SPARSE | ( | matrix | ) |
Value:
Definition at line 117 of file spDefs.h.
Referenced by spClear(), spDestroy(), spElementCount(), spFillinCount(), spGetElement(), spGetSize(), spPartition(), spSetComplex(), spSetReal(), and spWhereSingular().
| #define IS_VALID | ( | matrix | ) |
Value:
((matrix) != NULL && \ (matrix)->ID == SPARSE_ID && \ (matrix)->Error >= spOKAY && \ (matrix)->Error < spFATAL)
Definition at line 119 of file spDefs.h.
Referenced by spFactor(), and spOrderAndFactor().
| #define NOT ! |
Definition at line 107 of file spDefs.h.
Referenced by ExchangeRowsAndCols(), spCreate(), spFactor(), and spOrderAndFactor().
| #define OR || |
Definition at line 109 of file spDefs.h.
Referenced by ComplexRowColElimination(), CountMarkowitz(), cpass2(), critical_events(), MarkowitzProducts(), paksazi(), RealRowColElimination(), scheduler(), spcColExchange(), spClear(), spCreate(), spcRowExchange(), spGetElement(), spWhereSingular(), and UpdateMarkowitzNumbers().
| #define SCLR_MULT | ( | to, | |||
| sclr, | |||||
| cmplx | ) |
| #define SCLR_MULT_ASSIGN | ( | to, | |||
| sclr | ) |
| #define SPARSE_ID 0x772773 |
| #define SPBOOLEAN int |
Definition at line 137 of file spDefs.h.
Referenced by ExchangeRowsAndCols(), mgeti(), mputi(), spcColExchange(), and spcRowExchange().
| typedef struct AllocationRecord* AllocationListPtr |
| typedef ElementPtr* ArrayOfElementPtrs |
| typedef struct ComplexNumber * ComplexVector |
| typedef struct MatrixElement* ElementPtr |
| typedef struct MatrixFrame* MatrixPtr |
| typedef spREAL RealNumber |
| typedef spREAL * RealVector |
1.5.1