Comments (2)
The following is a partial fix:
diff --git a/SimTKcommon/BigMatrix/include/SimTKcommon/internal/BigMatrix.h b/SimTKcommon/BigMatrix/include/SimTKcommon/internal/BigMatrix.h
index 64fbbe4..943ca58 100644
--- a/SimTKcommon/BigMatrix/include/SimTKcommon/internal/BigMatrix.h
+++ b/SimTKcommon/BigMatrix/include/SimTKcommon/internal/BigMatrix.h
@@ -3632,6 +3632,11 @@ public:
--index;
return current;
}
+ VectorIterator operator+=(ptrdiff_t n) {
+ assert (index+n-1 < vector.size());
+ index += n;
+ return *this;
+ }
bool operator<(VectorIterator iter) const {
return (index < iter.index);
}
I'll make a pull request once I've tested it fully.
from simbody.
Thanks, Steve! A couple of thoughts:
- Should have a -= operator also to avoid future problems
- Since ptrdiff_t is signed the assert should probably be something like
assert(0 <= index+n && index+n <= vector.size());
from simbody.
Related Issues (20)
- Usage of SimTK::Vec for custom types. HOT 1
- Incoming PR - Improvement to ExponentialSpringForce HOT 4
- The OBJ file parser should ignore all kinds of whitespace for face (`f`) commands HOT 2
- TestBigMatrix fails on mips64el and ppc64el architectures HOT 8
- Rack Pinion Mobilizer HOT 3
- Problem when weighting integration accuracy
- TestCustomConstraints (Failed) on x86_64
- Setting output precision for String::String(const T& t) HOT 4
- "No such file or directory" HOT 6
- Visualizer crashes when drive letters don't match HOT 6
- Cannot compile in C++20 if a compilation unit uses `MultibodyGraphMaker.h`
- `getContiguousScalarData` has different behavior for `RowVector` and `RowVectorView` HOT 3
- Variable precision for String::String(const T& t) and Xml::setValueAs(const T& t) HOT 3
- Simbody Visualization not working on MacOS HOT 1
- Specifying XML output precision with an optional argument causes a bug for variables of type bool HOT 1
- TestXML fails on Windows 11, Visual Studio 2022 with a Release build. HOT 2
- Expose `SimbodyMatterSubsystemRep::multiplyByPVATranspose` to `SimbodyMatterSubsystem` HOT 2
- Visaulization HOT 1
- Simbody core aborted while using it with gazebo classic after loading a SDF. HOT 6
- Efficiently calculating a subset of a system's body and mobility forces HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simbody.