17 #ifndef AGX_DIRECTSOLVERDATA_H 18 #define AGX_DIRECTSOLVERDATA_H 31 #define to_permuted_matrix_index( lId ) matrix.getBlockPermutedStartRowIndex( lId ) 40 LogicalStructure() : m_riCounter( 0 ), m_riIndex( 0 ), m_ciIndex( 0 ), m_dimIndex( 0 ) {}
42 void resize(
size_t riSize,
size_t ciSize,
size_t dimSize )
44 m_ri.resize( riSize, UIntContainer::value_type(-1) );
45 m_ci.resize( ciSize, UIntContainer::value_type(-1) );
46 m_dim.resize( dimSize, UIntContainer::value_type(-1) );
56 m_ri[ m_riIndex ] = (UIntContainer::value_type)m_riCounter;
57 m_dim[ m_dimIndex ] = (UIntContainer::value_type)dim;
65 m_ci[ m_ciIndex ] = (UIntContainer::value_type)colIndex;
72 agxAssert( m_riIndex == m_ri.size() - 1 );
74 m_ri[ m_riIndex ] = (UIntContainer::value_type)m_riCounter;
77 unsigned int*
riPtr() {
return &( m_ri[0]); }
78 unsigned int*
ciPtr() {
return &( m_ci[0]); }
79 unsigned int*
dimPtr() {
return &(m_dim[0]); }
123 GroupsContainer m_buffers[ NUM_BUFFERS ];
140 agx::Solver::NlMcpConfig nlMcpConfig,
161 agx::Physics::StrongInteractionData& strongInteractions,
agx::ref_ptr< ContactGroups > ContactGroupsRef
agx::HashTable< agx::UInt, agx::UIntVector > StrongInteractionTable
void insertBlock(size_t colIndex)
StrongInteractionTable m_strongInteractionTable
#define AGXPHYSICS_EXPORT
#define AGX_DECLARE_POINTER_TYPES(type)
INlSolveDataH5 * m_nlSolveDataH5
Pointer to a entity instance of type Physics.SolveIsland.
Base class providing referencing counted objects.
Essentially a sparse array of bounds.
LogicalStructure m_logicalStructure
void resize(size_t riSize, size_t ciSize, size_t dimSize)
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
std::valarray< agx::Real > RealValarray
For this module, vectors are defined using valarray.
bool operator==(const LogicalStructure &rhs) const
Pointer to a entity instance of type Physics.InteractionGroup.
std::valarray< unsigned int > UIntContainer
StabilityReportRef m_stabilityReport
ContactGroupsRef m_contactGroups
Interface class for algorithm to solve general mixed complementarity problem.
Inheritance with partial specialization due to bug with ref_ptr containers.
agx::SparseMatrix holds a matrix representation which contains the data.