#include "spconfig.h"
#include "spmatrix.h"
Go to the source code of this file.
Defines | |
#define | spINSIDE_SPARSE |
Functions | |
static void | EnlargeMatrix (MatrixPtr Matrix, int NewSize) |
ElementPtr | spcCreateElement (MatrixPtr Matrix, int Row, int Col, ElementPtr *LastAddr, int Fillin) |
ElementPtr | spcFindElementInCol (MatrixPtr Matrix, ElementPtr *LastAddr, int Row, int Col, int CreateIfMissing) |
ElementPtr | spcGetElement (MatrixPtr Matrix) |
ElementPtr | spcGetFillin (MatrixPtr Matrix) |
void | spClear (MatrixPtr Matrix) |
void | spcLinkRows (MatrixPtr Matrix) |
ElementPtr | spGetElement (MatrixPtr Matrix, int Row, int Col) |
#define spINSIDE_SPARSE |
Definition at line 57 of file spbuild.cpp.
static void EnlargeMatrix | ( | MatrixPtr | Matrix, | |
int | NewSize | |||
) | [static] |
Definition at line 712 of file spbuild.cpp.
References MatrixFrame::AllocatedSize, MatrixFrame::Diag, MatrixFrame::DoCmplxDirect, MatrixFrame::DoRealDirect, MatrixFrame::Error, EXPANSION_FACTOR, MatrixFrame::FirstInCol, MatrixFrame::FirstInRow, FREE, MatrixFrame::Intermediate, MatrixFrame::InternalVectorsAllocated, MatrixFrame::IntToExtColMap, MatrixFrame::IntToExtRowMap, MatrixFrame::MarkowitzCol, MatrixFrame::MarkowitzProd, MatrixFrame::MarkowitzRow, MAX, REALLOC, MatrixFrame::Size, and spNO_MEMORY.
Referenced by spGetElement().
ElementPtr spcCreateElement | ( | MatrixPtr | Matrix, | |
int | Row, | |||
int | Col, | |||
ElementPtr * | LastAddr, | |||
int | Fillin | |||
) |
Definition at line 240 of file spbuild.cpp.
References MatrixElement::Col, MatrixFrame::Diag, MatrixFrame::Elements, MatrixFrame::Fillins, MatrixFrame::FirstInRow, MatrixFrame::NeedsOrdering, MatrixElement::NextInCol, MatrixElement::NextInRow, MatrixElement::Real, MatrixElement::Row, MatrixFrame::RowsLinked, spcGetElement(), and spcGetFillin().
Referenced by CreateFillin(), and spcFindElementInCol().
ElementPtr spcFindElementInCol | ( | MatrixPtr | Matrix, | |
ElementPtr * | LastAddr, | |||
int | Row, | |||
int | Col, | |||
int | CreateIfMissing | |||
) |
Definition at line 372 of file spbuild.cpp.
References MatrixElement::NextInCol, MatrixElement::Row, and spcCreateElement().
Referenced by ExchangeRowsAndCols(), and spGetElement().
ElementPtr spcGetElement | ( | MatrixPtr | Matrix | ) |
Definition at line 307 of file spallocate.cpp.
References ALLOC, ELEMENTS_PER_ALLOCATION, MatrixFrame::ElementsRemaining, MatrixFrame::Error, MatrixFrame::NextAvailElement, RecordAllocation(), and spNO_MEMORY.
Referenced by spcCreateElement(), and spcGetFillin().
ElementPtr spcGetFillin | ( | MatrixPtr | Matrix | ) |
Definition at line 404 of file spallocate.cpp.
References ALLOC, ELEMENTS_PER_ALLOCATION, MatrixFrame::Error, MatrixFrame::FillinsRemaining, MatrixFrame::LastFillinListNode, FillinListNodeStruct::Next, MatrixFrame::NextAvailFillin, FillinListNodeStruct::NumberOfFillinsInList, FillinListNodeStruct::pFillinList, RecordAllocation(), spcGetElement(), and spNO_MEMORY.
Referenced by spcCreateElement().
void spClear | ( | MatrixPtr | Matrix | ) |
Definition at line 78 of file spbuild.cpp.
References ASSERT, MatrixFrame::Error, MatrixFrame::Factored, MatrixFrame::FirstInCol, IS_SPARSE, MatrixElement::NextInCol, MatrixElement::Real, MatrixFrame::SingularCol, MatrixFrame::SingularRow, MatrixFrame::Size, and MatrixFrame::TrashCan.
void spcLinkRows | ( | MatrixPtr | Matrix | ) |
Definition at line 672 of file spbuild.cpp.
References MatrixElement::Col, MatrixFrame::FirstInCol, MatrixFrame::FirstInRow, MatrixElement::NextInCol, MatrixElement::NextInRow, MatrixElement::Row, MatrixFrame::RowsLinked, and MatrixFrame::Size.
Referenced by spMultiply(), spNorm(), spOrderAndFactor(), and spScale().
ElementPtr spGetElement | ( | MatrixPtr | Matrix, | |
int | Row, | |||
int | Col | |||
) |
Definition at line 434 of file spbuild.cpp.
References ASSERT, MatrixFrame::Diag, EnlargeMatrix(), MatrixFrame::Error, MatrixFrame::FirstInCol, IS_SPARSE, MAX, MatrixFrame::NeedsOrdering, MatrixFrame::Size, Size, spcFindElementInCol(), spNO_MEMORY, and MatrixFrame::TrashCan.
Referenced by novaMatice(), and ReadMatrixFromFile().