ColPack
|
class HessianRecovery in group5. More...
#include <HessianRecovery.h>
Public Member Functions | |
int | DirectRecover_RowCompressedFormat (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, double ***dp3_HessianValue) |
A routine for recovering a Hessian from a star-coloring based compressed representation. | |
int | DirectRecover_RowCompressedFormat_unmanaged (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, double ***dp3_HessianValue) |
Same as DirectRecover_RowCompressedFormat(), except that the output is NOT managed by ColPack. | |
int | DirectRecover_RowCompressedFormat_usermem (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, double ***dp3_HessianValue) |
Same as DirectRecover_RowCompressedFormat_unmanaged(), except that memory allocation for output vector(s) is done by user. | |
int | DirectRecover_CoordinateFormat (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
A routine for recovering a Hessian from a star-coloring based compressed representation. | |
int | DirectRecover_CoordinateFormat_OMP (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
int | DirectRecover_CoordinateFormat_unmanaged (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
Same as DirectRecover_CoordinateFormat(), except that the output is NOT managed by ColPack. | |
int | DirectRecover_CoordinateFormat_unmanaged_OMP (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
int | DirectRecover_CoordinateFormat_usermem_serial (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
Same as DirectRecover_CoordinateFormat_unmanaged(), except that memory allocation for output vector(s) is done by user. (OpenMP enabled) | |
int | DirectRecover_CoordinateFormat_usermem (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
int | DirectRecover_SparseSolversFormat (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
A routine for recovering a Hessian from a star-coloring based compressed representation. | |
int | DirectRecover_SparseSolversFormat_unmanaged (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue, unsigned int numOfNonZerosInHessianValue=0) |
Same as DirectRecover_SparseSolversFormat(), except that the output is NOT managed by ColPack. | |
int | DirectRecover_SparseSolversFormat_usermem (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue, unsigned int numOfNonZerosInHessianValue) |
Same as DirectRecover_SparseSolversFormat_unmanaged(), except that memory allocation for output vector(s) is done by user. | |
int | IndirectRecover_RowCompressedFormat (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, double ***dp3_HessianValue) |
A routine for recovering a Hessian from a acyclic-coloring based compressed representation. | |
int | IndirectRecover_RowCompressedFormat_unmanaged (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, double ***dp3_HessianValue) |
Same as IndirectRecover_RowCompressedFormat(), except that the output is NOT managed by ColPack. | |
int | IndirectRecover_RowCompressedFormat_usermem (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, double ***dp3_HessianValue) |
Same as IndirectRecover_RowCompressedFormat_unmanaged(), except that memory allocation for output vector(s) is done by user. | |
int | IndirectRecover_CoordinateFormat (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
A routine for recovering a Hessian from a acyclic-coloring based compressed representation. | |
int | IndirectRecover_CoordinateFormat_unmanaged (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
Same as IndirectRecover_CoordinateFormat(), except that the output is NOT managed by ColPack. | |
int | IndirectRecover_CoordinateFormat_usermem (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
Same as IndirectRecover_CoordinateFormat_unmanaged(), except that memory allocation for output vector(s) is done by user. | |
int | IndirectRecover_SparseSolversFormat (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue) |
A routine for recovering a Hessian from a acyclic-coloring based compressed representation. | |
int | IndirectRecover_SparseSolversFormat_unmanaged (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue, unsigned int numOfNonZerosInHessianValue=0) |
Same as IndirectRecover_SparseSolversFormat(), except that the output is NOT managed by ColPack. | |
int | IndirectRecover_SparseSolversFormat_usermem (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, unsigned int **uip2_RowIndex, unsigned int **uip2_ColumnIndex, double **dp2_HessianValue, unsigned int numOfNonZerosInHessianValue) |
Same as IndirectRecover_SparseSolversFormat_unmanaged(), except that memory allocation for output vector(s) is done by user. | |
Private Member Functions | |
int | DirectRecover_CoordinateFormat_vectors (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, vector< unsigned int > &RowIndex, vector< unsigned int > &ColumnIndex, vector< double > &HessianValue) |
int | DirectRecover_CoordinateFormat_vectors_OMP (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, vector< unsigned int > &RowIndex, vector< unsigned int > &ColumnIndex, vector< double > &HessianValue) |
int | IndirectRecover_CoordinateFormat_vectors (GraphColoringInterface *g, double **dp2_CompressedMatrix, unsigned int **uip2_HessianSparsityPattern, vector< unsigned int > &RowIndex, vector< unsigned int > &ColumnIndex, vector< double > &HessianValue) |
class HessianRecovery in group5.
Definition at line 31 of file HessianRecovery.h.
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
A routine for recovering a Hessian from a star-coloring based compressed representation.
Precondition:
Return value: size of (*uip2_RowIndex) array
Return by recovery routine: three vectors in "Coordinate Format" (zero-based indexing) http://www.intel.com/software/products/mkl/docs/webhelp/appendices/mkl_appA_SMSF.html#mkl_appA_SMSF_5
The memory allocated for these 3 output vectors are managed by ColPack. The memory will be deallocated when this function is called again or when the Recovery ojbect is deallocated.
Definition at line 538 of file HessianRecovery.cpp.
References ColPack::GraphCore::GetVertexCount().
Referenced by main().
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat_OMP | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
Definition at line 524 of file HessianRecovery.cpp.
References ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat_unmanaged | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
Same as DirectRecover_CoordinateFormat(), except that the output is NOT managed by ColPack.
Notes:
Definition at line 498 of file HessianRecovery.cpp.
References _FALSE.
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat_unmanaged_OMP | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
Definition at line 459 of file HessianRecovery.cpp.
References _FALSE.
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat_usermem | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
Definition at line 412 of file HessianRecovery.cpp.
References _FALSE.
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat_usermem_serial | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
Same as DirectRecover_CoordinateFormat_unmanaged(), except that memory allocation for output vector(s) is done by user. (OpenMP enabled)
Notes:
Definition at line 436 of file HessianRecovery.cpp.
References _FALSE.
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat_vectors | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
vector< unsigned int > & | RowIndex, | ||
vector< unsigned int > & | ColumnIndex, | ||
vector< double > & | HessianValue | ||
) | [private] |
Definition at line 358 of file HessianRecovery.cpp.
References free_2DMatrix(), ColPack::GraphColoring::GetVertexColorCount(), ColPack::GraphColoring::GetVertexColors(), and ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::DirectRecover_CoordinateFormat_vectors_OMP | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
vector< unsigned int > & | RowIndex, | ||
vector< unsigned int > & | ColumnIndex, | ||
vector< double > & | HessianValue | ||
) | [private] |
!! Working
Definition at line 253 of file HessianRecovery.cpp.
References free_2DMatrix(), ColPack::GraphColoring::GetVertexColorCount(), ColPack::GraphColoring::GetVertexColors(), and ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::DirectRecover_RowCompressedFormat | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
double *** | dp3_HessianValue | ||
) |
A routine for recovering a Hessian from a star-coloring based compressed representation.
Parameter:
Precondition:
Postcondition:
Return value: size of (*dp3_HessianValue) array
About input parameters:
Row Compressed Format for dp3_HessianValue:
Algorithm: optimized version of the algorithm in Figure 2, pg 8, "Efficient Computation of Sparse Hessians using Coloring and Automatic Differentiation" paper. The complexity of this routine is O(|E|) versus O(|E|*average distance-1 neighbour) for DirectRecover1
Definition at line 106 of file HessianRecovery.cpp.
References ColPack::GraphCore::GetVertexCount().
Referenced by main().
int ColPack::HessianRecovery::DirectRecover_RowCompressedFormat_unmanaged | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
double *** | dp3_HessianValue | ||
) |
Same as DirectRecover_RowCompressedFormat(), except that the output is NOT managed by ColPack.
Notes:
Definition at line 86 of file HessianRecovery.cpp.
References _FALSE, and ColPack::GraphCore::GetVertexCount().
Referenced by main().
int ColPack::HessianRecovery::DirectRecover_RowCompressedFormat_usermem | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
double *** | dp3_HessianValue | ||
) |
Same as DirectRecover_RowCompressedFormat_unmanaged(), except that memory allocation for output vector(s) is done by user.
Notes:
Definition at line 28 of file HessianRecovery.cpp.
References _FALSE, free_2DMatrix(), ColPack::GraphColoring::GetVertexColorCount(), ColPack::GraphColoring::GetVertexColors(), and ColPack::GraphCore::GetVertexCount().
Referenced by main().
int ColPack::HessianRecovery::DirectRecover_SparseSolversFormat | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
A routine for recovering a Hessian from a star-coloring based compressed representation.
Precondition:
Return value: size of (*uip2_RowIndex) array
Return by recovery routine: three vectors in "Storage Formats for the Direct Sparse Solvers" (zero-based indexing) http://software.intel.com/sites/products/documentation/hpc/mkl/webhelp/appendices/mkl_appA_SMSF.html#mkl_appA_SMSF_1
The memory allocated for these 3 output vectors are managed by ColPack. The memory will be deallocated when this function is called again or when the Recovery ojbect is deallocated.
Definition at line 236 of file HessianRecovery.cpp.
References ColPack::GraphCore::GetVertexCount().
Referenced by main().
int ColPack::HessianRecovery::DirectRecover_SparseSolversFormat_unmanaged | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue, | ||
unsigned int | numOfNonZerosInHessianValue = 0 |
||
) |
Same as DirectRecover_SparseSolversFormat(), except that the output is NOT managed by ColPack.
About input parameters:
Notes:
Definition at line 205 of file HessianRecovery.cpp.
References _FALSE, ConvertRowCompressedFormat2SparseSolversFormat_StructureOnly(), and ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::DirectRecover_SparseSolversFormat_usermem | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue, | ||
unsigned int | numOfNonZerosInHessianValue | ||
) |
Same as DirectRecover_SparseSolversFormat_unmanaged(), except that memory allocation for output vector(s) is done by user.
About input parameters:
Notes:
Definition at line 120 of file HessianRecovery.cpp.
References _FALSE, free_2DMatrix(), ColPack::GraphColoring::GetVertexColorCount(), ColPack::GraphColoring::GetVertexColors(), and ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::IndirectRecover_CoordinateFormat | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
A routine for recovering a Hessian from a acyclic-coloring based compressed representation.
Precondition:
Return value: size of (*uip2_RowIndex) array
Return by recovery routine: three vectors in "Coordinate Format" (zero-based indexing) http://www.intel.com/software/products/mkl/docs/webhelp/appendices/mkl_appA_SMSF.html#mkl_appA_SMSF_5
The memory allocated for these 3 output vectors are managed by ColPack. The memory will be deallocated when this function is called again or when the Recovery ojbect is deallocated.
Definition at line 1707 of file HessianRecovery.cpp.
int ColPack::HessianRecovery::IndirectRecover_CoordinateFormat_unmanaged | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
Same as IndirectRecover_CoordinateFormat(), except that the output is NOT managed by ColPack.
Notes:
Definition at line 1322 of file HessianRecovery.cpp.
References _FALSE, ConvertCoordinateFormat2RowCompressedFormat(), ColPack::GraphColoring::GetVertexColorCount(), ColPack::GraphCore::GetVertexCount(), and WriteMatrixMarket_ADOLCInput().
int ColPack::HessianRecovery::IndirectRecover_CoordinateFormat_usermem | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
Same as IndirectRecover_CoordinateFormat_unmanaged(), except that memory allocation for output vector(s) is done by user.
Notes:
Definition at line 1683 of file HessianRecovery.cpp.
References _FALSE.
int ColPack::HessianRecovery::IndirectRecover_CoordinateFormat_vectors | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
vector< unsigned int > & | RowIndex, | ||
vector< unsigned int > & | ColumnIndex, | ||
vector< double > & | HessianValue | ||
) | [private] |
Definition at line 1369 of file HessianRecovery.cpp.
References _FALSE, _TRUE, _UNKNOWN, ColPack::DisjointSets::FindAndCompress(), ColPack::GraphCore::GetDisjointSets(), ColPack::GraphCore::GetEdges(), ColPack::GraphCore::GetMaximumVertexDegree(), ColPack::GraphColoring::GetVertexColors(), ColPack::GraphCore::GetVertexCount(), ColPack::GraphCore::GetVertexEdgeMap(), ColPack::GraphCore::GetVertices(), STEP_DOWN, and STEP_UP.
int ColPack::HessianRecovery::IndirectRecover_RowCompressedFormat | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
double *** | dp3_HessianValue | ||
) |
A routine for recovering a Hessian from a acyclic-coloring based compressed representation.
Parameter:
Precondition:
Postcondition:
Return value: size of (*dp3_HessianValue) array
About input parameters:
Row Compressed Format for dp3_HessianValue: see DirectRecover2()
Algorithm: created by Assefaw, 1st implemented by Arijit Tarafdar. This function is just a modification of Arijit's implementation
Definition at line 907 of file HessianRecovery.cpp.
References ColPack::GraphCore::GetVertexCount().
Referenced by main().
int ColPack::HessianRecovery::IndirectRecover_RowCompressedFormat_unmanaged | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
double *** | dp3_HessianValue | ||
) |
Same as IndirectRecover_RowCompressedFormat(), except that the output is NOT managed by ColPack.
Notes:
Definition at line 887 of file HessianRecovery.cpp.
References _FALSE, and ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::IndirectRecover_RowCompressedFormat_usermem | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
double *** | dp3_HessianValue | ||
) |
Same as IndirectRecover_RowCompressedFormat_unmanaged(), except that memory allocation for output vector(s) is done by user.
Notes:
Definition at line 552 of file HessianRecovery.cpp.
References _FALSE, _TRUE, _UNKNOWN, ColPack::DisjointSets::FindAndCompress(), ColPack::GraphCore::GetDisjointSets(), ColPack::GraphCore::GetEdges(), ColPack::GraphCore::GetMaximumVertexDegree(), ColPack::GraphColoring::GetVertexColors(), ColPack::GraphCore::GetVertexCount(), ColPack::GraphCore::GetVertexEdgeMap(), ColPack::GraphCore::GetVertices(), STEP_DOWN, and STEP_UP.
int ColPack::HessianRecovery::IndirectRecover_SparseSolversFormat | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue | ||
) |
A routine for recovering a Hessian from a acyclic-coloring based compressed representation.
Precondition:
Return value: size of (*uip2_RowIndex) array
Return by recovery routine: three vectors in "Storage Formats for the Direct Sparse Solvers" (zero-based indexing) http://software.intel.com/sites/products/documentation/hpc/mkl/webhelp/appendices/mkl_appA_SMSF.html#mkl_appA_SMSF_1
The memory allocated for these 3 output vectors are managed by ColPack. The memory will be deallocated when this function is called again or when the Recovery ojbect is deallocated.
Definition at line 1304 of file HessianRecovery.cpp.
References ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::IndirectRecover_SparseSolversFormat_unmanaged | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue, | ||
unsigned int | numOfNonZerosInHessianValue = 0 |
||
) |
Same as IndirectRecover_SparseSolversFormat(), except that the output is NOT managed by ColPack.
About input parameters:
Notes:
Definition at line 1273 of file HessianRecovery.cpp.
References _FALSE, ConvertRowCompressedFormat2SparseSolversFormat_StructureOnly(), and ColPack::GraphCore::GetVertexCount().
int ColPack::HessianRecovery::IndirectRecover_SparseSolversFormat_usermem | ( | GraphColoringInterface * | g, |
double ** | dp2_CompressedMatrix, | ||
unsigned int ** | uip2_HessianSparsityPattern, | ||
unsigned int ** | uip2_RowIndex, | ||
unsigned int ** | uip2_ColumnIndex, | ||
double ** | dp2_HessianValue, | ||
unsigned int | numOfNonZerosInHessianValue | ||
) |
Same as IndirectRecover_SparseSolversFormat_unmanaged(), except that memory allocation for output vector(s) is done by user.
About input parameters:
Notes:
Definition at line 920 of file HessianRecovery.cpp.
References _FALSE, _TRUE, _UNKNOWN, ColPack::DisjointSets::FindAndCompress(), ColPack::GraphCore::GetDisjointSets(), ColPack::GraphCore::GetEdges(), ColPack::GraphCore::GetMaximumVertexDegree(), ColPack::GraphColoring::GetVertexColors(), ColPack::GraphCore::GetVertexCount(), ColPack::GraphCore::GetVertexEdgeMap(), ColPack::GraphCore::GetVertices(), STEP_DOWN, and STEP_UP.