TripletHelper Class Reference

#include <IpTripletHelper.hpp>

List of all members.

Public Member Functions

 DECLARE_STD_EXCEPTION (UNKNOWN_MATRIX_TYPE)
 DECLARE_STD_EXCEPTION (UNKNOWN_VECTOR_TYPE)

Static Public Member Functions

A set of recursive routines that help with the Triplet format.
static Index GetNumberEntries (const Matrix &matrix)
 find the total number of triplet entries of a Matrix
static void FillRowCol (Index n_entries, const Matrix &matrix, Index *iRow, Index *jCol, Index row_offset=0, Index col_offset=0)
 fill the irows, jcols structure for the triplet format from the matrix
static void FillValues (Index n_entries, const Matrix &matrix, Number *values)
 fill the values for the triplet format from the matrix
static void FillValuesFromVector (Index dim, const Vector &vector, Number *values)
 fill the values from the vector into a dense double* structure
static void PutValuesInVector (Index dim, const double *values, Vector &vector)
 put the values from the double* back into the vector


Member Function Documentation

Index GetNumberEntries ( const Matrix matrix  )  [static]

void FillRowCol ( Index  n_entries,
const Matrix matrix,
Index iRow,
Index jCol,
Index  row_offset = 0,
Index  col_offset = 0 
) [static]

fill the irows, jcols structure for the triplet format from the matrix

References DBG_ASSERT, diag, SimTK::sum(), and THROW_EXCEPTION.

Referenced by GradientScaling::DetermineScalingParametersImpl(), and StdAugSystemSolver::MultiSolve().

void FillValues ( Index  n_entries,
const Matrix matrix,
Number values 
) [static]

fill the values for the triplet format from the matrix

References DBG_ASSERT, diag, SimTK::sum(), and THROW_EXCEPTION.

Referenced by GradientScaling::DetermineScalingParametersImpl(), and StdAugSystemSolver::MultiSolve().

void FillValuesFromVector ( Index  dim,
const Vector vector,
Number values 
) [static]

fill the values from the vector into a dense double* structure

References DBG_ASSERT, Vector::Dim(), CompoundVector::GetComp(), fkinkryx::i, Ipopt::IpBlasDcopy(), CompoundVector::NComps(), and THROW_EXCEPTION.

Referenced by TSymLinearSolver::MultiSolve().

void PutValuesInVector ( Index  dim,
const double *  values,
Vector vector 
) [static]

DECLARE_STD_EXCEPTION ( UNKNOWN_MATRIX_TYPE   ) 

DECLARE_STD_EXCEPTION ( UNKNOWN_VECTOR_TYPE   ) 


The documentation for this class was generated from the following files:

Generated on Fri Sep 26 07:44:27 2008 for SimTKcore by  doxygen 1.5.6