You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<b>Value:</b><divclass="fragment"><divclass="line"><spanclass="keywordflow">do</span> { \</div><divclass="line"> typedef ::drake::assert::ConditionTraits< \</div><divclass="line"> typename std::remove_cv_t<decltype(condition)>> \</div><divclass="line"> Trait; \</div><divclass="line"> static_assert(Trait::is_valid, <spanclass="stringliteral">"Condition should be bool-convertible."</span>); \</div><divclass="line"> static_assert( \</div><divclass="line"> !std::is_pointer_v<decltype(condition)>, \</div><divclass="line"><spanclass="stringliteral">"When using DRAKE_THROW_UNLESS on a raw pointer, always write out "</span> \</div><divclass="line"><spanclass="stringliteral">"DRAKE_THROW_UNLESS(foo != nullptr), do not write DRAKE_THROW_UNLESS"</span> \</div><divclass="line"><spanclass="stringliteral">"(foo) and rely on implicit pointer-to-bool conversion."</span>); \</div><divclass="line"> if (!<aclass="code" href="namespacedrake_1_1symbolic.html#a71af97c3ebea42d1b33aa8a41b975d0e">Trait::Evaluate</a>(condition)) { \</div><divclass="line"> ::drake::internal::Throw(#condition, __func__, __FILE__, __LINE__); \</div><divclass="line"> } \</div><divclass="line"> } <spanclass="keywordflow">while</span> (0)</div><divclass="ttc" id="namespacedrake_1_1symbolic_html_a71af97c3ebea42d1b33aa8a41b975d0e"><divclass="ttname"><ahref="namespacedrake_1_1symbolic.html#a71af97c3ebea42d1b33aa8a41b975d0e">drake::symbolic::Evaluate</a></div><divclass="ttdeci">std::enable_if_t< std::is_same_v< typename Derived::Scalar, Expression >, MatrixLikewise< double, Derived > > Evaluate(const Eigen::MatrixBase< Derived > &m, const Environment &env=Environment{}, RandomGenerator *random_generator=nullptr)</div><divclass="ttdoc">Evaluates a symbolic matrix m using env and random_generator.</div><divclass="ttdef"><b>Definition:</b> expression.h:1590</div></div>
213
+
<b>Value:</b><divclass="fragment"><divclass="line"><spanclass="keywordflow">do</span> { \</div><divclass="line"> typedef ::drake::assert::ConditionTraits< \</div><divclass="line"> typename std::remove_cv_t<decltype(condition)>> \</div><divclass="line"> Trait; \</div><divclass="line"> static_assert(Trait::is_valid, <spanclass="stringliteral">"Condition should be bool-convertible."</span>); \</div><divclass="line"> static_assert( \</div><divclass="line"> !std::is_pointer_v<decltype(condition)>, \</div><divclass="line"><spanclass="stringliteral">"When using DRAKE_THROW_UNLESS on a raw pointer, always write out "</span> \</div><divclass="line"><spanclass="stringliteral">"DRAKE_THROW_UNLESS(foo != nullptr), do not write DRAKE_THROW_UNLESS"</span> \</div><divclass="line"><spanclass="stringliteral">"(foo) and rely on implicit pointer-to-bool conversion."</span>); \</div><divclass="line"> if (!<aclass="code" href="namespacedrake_1_1symbolic.html#a71af97c3ebea42d1b33aa8a41b975d0e">Trait::Evaluate</a>(condition)) { \</div><divclass="line"> ::drake::internal::Throw(#condition, __func__, __FILE__, __LINE__); \</div><divclass="line"> } \</div><divclass="line"> } <spanclass="keywordflow">while</span> (0)</div><divclass="ttc" id="namespacedrake_1_1symbolic_html_a71af97c3ebea42d1b33aa8a41b975d0e"><divclass="ttname"><ahref="namespacedrake_1_1symbolic.html#a71af97c3ebea42d1b33aa8a41b975d0e">drake::symbolic::Evaluate</a></div><divclass="ttdeci">std::enable_if_t< std::is_same_v< typename Derived::Scalar, Expression >, MatrixLikewise< double, Derived > > Evaluate(const Eigen::MatrixBase< Derived > &m, const Environment &env=Environment{}, RandomGenerator *random_generator=nullptr)</div><divclass="ttdoc">Evaluates a symbolic matrix m using env and random_generator.</div><divclass="ttdef"><b>Definition:</b> expression.h:1592</div></div>
214
214
</div><!-- fragment -->
215
215
<p>Evaluates <code>condition</code> and iff the value is false will throw an exception with a message showing at least the condition text, function name, file, and line. </p>
216
216
<p>The condition must not be a pointer, where we'd implicitly rely on its nullness. Instead, always write out "!= nullptr" to be precise.</p>
<trclass="memdesc:aeb7f8e1a86b4c2744af4add35ac27a4e"><tdclass="mdescLeft"> </td><tdclass="mdescRight">Given a random access container (like std::vector, std::array, or C array), returns an Eigen::Map view into that container. <ahref="namespacedrake.html#aeb7f8e1a86b4c2744af4add35ac27a4e">More...</a><br/></td></tr>
<trclass="memdesc:acd67fb791be292c340610dbcbd9b5b8f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A portable alias for Eigen::placeholders::all. <ahref="namespacedrake.html#acd67fb791be292c340610dbcbd9b5b8f">More...</a><br/></td></tr>
<trclass="memdesc:acd67fb791be292c340610dbcbd9b5b8f"><tdclass="mdescLeft"> </td><tdclass="mdescRight">A portable alias for Eigen::placeholders::all. <ahref="#acd67fb791be292c340610dbcbd9b5b8f">More...</a><br/></td></tr>
<trclass="memdesc:aa39127b52b1d34b56cf3e6801cf31045"><tdclass="mdescLeft"> </td><tdclass="mdescRight">The name of the environment variable that provides the first place where FindResource attempts to look. <ahref="#aa39127b52b1d34b56cf3e6801cf31045">More...</a><br/></td></tr>
0 commit comments