MCPcopy Create free account
hub / github.com/ShiqiYu/CPP / Mat

Method Mat

week13/examples/mattemplate.cpp:12–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10 T * data;
11 public:
12 Mat(size_t rows, size_t cols): rows(rows), cols(cols)
13 {
14 data = new T[rows * cols]{};
15 }
16 ~Mat()
17 {
18 delete [] data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected