AGX Dynamics 2.42.3.1
Loading...
Searching...
No Matches
GenericConstraintComplianceMatrix.h
Go to the documentation of this file.
1/*
2Copyright 2007-2025. Algoryx Simulation AB.
3
4All AGX source code, intellectual property, documentation, sample code,
5tutorials, scene files and technical white papers, are copyrighted, proprietary
6and confidential material of Algoryx Simulation AB. You may not download, read,
7store, distribute, publish, copy or otherwise disseminate, use or expose this
8material unless having a written signed agreement with Algoryx Simulation AB, or having been
9advised so by Algoryx Simulation AB for a time limited evaluation, or having purchased a
10valid commercial license from Algoryx Simulation AB.
11
12Algoryx Simulation AB disclaims all responsibilities for loss or damage caused
13from using this software, unless otherwise stated in written agreements with
14Algoryx Simulation AB.
15*/
16
17#pragma once
18
19#include <agx/Constraint.h>
22
23namespace agx
24{
34 {
35 public:
42
48 Real get( UInt32 row, UInt32 col ) const;
49
55 void set( UInt32 row, UInt32 col, Real value );
56
60 UInt32 size() const;
61
67 void reset( UInt32 size );
68
73
78
79 protected:
84
85 private:
89 UInt32 calculateIndex( UInt32 row, UInt32 col ) const;
90
94 UInt32 arraySize() const;
95
96 private:
97 RealVector m_data;
99 UInt32 m_maxSize;
100 Bool m_isStaticSize;
101 UInt32Vector m_diagonalUpdates;
102 };
103
105}
#define AGXPHYSICS_EXPORT
#define m_size
Definition: agx/Vector.h:429
Compliance matrix data containing the lower triangle (including the diagonal) of the compliance matri...
const UInt32Vector & getDiagonalUpdates() const
void reset(UInt32 size)
Reset this matrix to zero and resize.
virtual ~GenericConstraintComplianceMatrix()
Reference counted object, protected destructor.
GenericConstraintComplianceMatrix(UInt32 maxSize, Bool isStaticSize)
Construct given maximum size, i.e., when all elementary constraint rows are active and enabled,...
Real get(UInt32 row, UInt32 col) const
void set(UInt32 row, UInt32 col, Real value)
Assign value to given row and column in the matrix.
Base class providing referencing counted objects.
Definition: Referenced.h:120
Smart pointer for handling referenced counted objects.
Definition: ref_ptr.h:30
The agx namespace contains the dynamics/math part of the AGX Dynamics API.
uint32_t UInt32
Definition: Integer.h:32
bool Bool
Definition: Integer.h:40
double Real
Definition: Real.h:41