MCPcopy Create free account
hub / github.com/wjakob/nanobind / ~MyArray

Method ~MyArray

tests/test_ndarray.cpp:658–658  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

656 public:
657 MyArray() { d = new double[5] { 0.0, 1.0, 2.0, 3.0, 4.0 }; }
658 ~MyArray() { delete[] d; }
659 double* data() const { return d; }
660 void mutate() { for (int i = 0; i < 5; ++i) d[i] += 0.5; }
661 };

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected