MCPcopy Create free account
hub / github.com/MIT-SPARK/Clio / getEmbedding

Method getEmbedding

clio/tests/src/utilities.cpp:21–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19}
20
21Eigen::MatrixXd TestEmbeddingGroup::getEmbedding(size_t index) {
22 Eigen::MatrixXd feature = Eigen::MatrixXd::Zero(10, 1);
23 feature(std::clamp<size_t>(index, 0, 10), 0) = 1.0;
24 return feature;
25}
26
27void declare_config(TestEmbeddingGroup::Config& config) {
28 using namespace config;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected