From eb35ff8df68690c945672cc56d24c1da7e13a919 Mon Sep 17 00:00:00 2001 From: Varun Agrawal Date: Thu, 15 May 2025 18:10:54 -0400 Subject: [PATCH] wrap rng in DiscreteConditional --- gtsam/linear/linear.i | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/gtsam/linear/linear.i b/gtsam/linear/linear.i index 01a28511c..6ccac0902 100644 --- a/gtsam/linear/linear.i +++ b/gtsam/linear/linear.i @@ -559,9 +559,12 @@ virtual class GaussianConditional : gtsam::JacobianFactor { gtsam::JacobianFactor* likelihood( const gtsam::VectorValues& frontalValues) const; gtsam::JacobianFactor* likelihood(gtsam::Vector frontal) const; - gtsam::VectorValues sample(const gtsam::VectorValues& parents) const; + + gtsam::VectorValues sample(std::mt19937_64@ rng) const; + gtsam::VectorValues sample(const gtsam::VectorValues& parents, std::mt19937_64@ rng) const; gtsam::VectorValues sample() const; - + gtsam::VectorValues sample(const gtsam::VectorValues& parents) const; + // Advanced Interface gtsam::VectorValues solveOtherRHS(const gtsam::VectorValues& parents, const gtsam::VectorValues& rhs) const;