MCPcopy Create free account
hub / github.com/pybind/pybind11 / Sequence

Method Sequence

tests/test_sequences_and_iterators.cpp:174–179  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

172 class Sequence {
173 public:
174 explicit Sequence(size_t size) : m_size(size) {
175 print_created(this, "of size", m_size);
176 // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)
177 m_data = new float[size];
178 memset(m_data, 0, sizeof(float) * size);
179 }
180 explicit Sequence(const std::vector<float> &value) : m_size(value.size()) {
181 print_created(this, "of size", m_size, "from std::vector");
182 // NOLINTNEXTLINE(cppcoreguidelines-prefer-member-initializer)

Callers 2

test_sequenceFunction · 0.80

Calls 4

print_createdFunction · 0.85
print_copy_createdFunction · 0.85
print_move_createdFunction · 0.85
sizeMethod · 0.45

Tested by

no test coverage detected