MCPcopy Create free account
hub / github.com/davisking/dlib / saveobj

Method saveobj

dlib/matlab/example_mex_class.cpp:51–55  ·  view source on GitHub ↗

saveobj() and load_obj() are special functions. If you provide these then you will be able to save() and load() your objects using MATLAB's built in object serialization.

Source from the content-addressed store, hash-verified

49 // be able to save() and load() your objects using MATLAB's built in object
50 // serialization.
51 void saveobj(matrix_colmajor& state)
52 {
53 // save this object's state to state.
54 state = xx;
55 }
56 void load_obj(const matrix_colmajor& state)
57 {
58 xx = state;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected