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

Method FloatMat

week13/examples/matclass.cpp:50–54  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

48 float * data;
49 public:
50 FloatMat(size_t rows, size_t cols):
51 rows(rows), cols(cols)
52 {
53 data = new float[rows * cols]{};
54 }
55 ~FloatMat()
56 {
57 delete [] data;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected