Skip to content

Commit

Permalink
Remove the asserts as they have already been checked in Eigen
Browse files Browse the repository at this point in the history
  • Loading branch information
ProfFan committed Dec 2, 2024
1 parent 557d7d5 commit bbdeaa4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions gtsam/base/Vector.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
* @author Frank Dellaert
* @author Alex Hagiopol
* @author Varun Agrawal
* @author Fan Jiang
*/

// \callgraph
Expand Down Expand Up @@ -193,14 +194,12 @@ GTSAM_EXPORT Vector ediv_(const Vector &a, const Vector &b);
*/
template<class V1, class V2>
inline double dot(const V1 &a, const V2& b) {
assert (b.size()==a.size());
return a.dot(b);
}

/** compatibility version for ublas' inner_prod() */
template<class V1, class V2>
inline double inner_prod(const V1 &a, const V2& b) {
assert (b.size()==a.size());
return a.dot(b);
}

Expand Down

0 comments on commit bbdeaa4

Please sign in to comment.