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

Method data

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

Source from the content-addressed store, hash-verified

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 };
662

Callers 4

enum_get_type_dataFunction · 0.45
NB_MODULEFunction · 0.45
check_roFunction · 0.45
NB_MODULEFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected