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

Method MyArray

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

Source from the content-addressed store, hash-verified

655 double* d;
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; }

Callers 1

test54_docs_exampleFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected