Updated documentation

This commit is contained in:
hbristow
2013-09-18 18:52:23 +10:00
parent 1dd017e9d0
commit d84ab09ab7
5 changed files with 32 additions and 16 deletions

View File

@@ -379,10 +379,10 @@ public:
*
* e.g.
* {
* MxArray A<double>(5, 5); // allocates memory
* MxArray B<double>(5, 5); // ditto
* plhs[0] = A; // not allowed!!
* plhs[0] = A.releaseOwnership(); // makes explicit that ownership is being released
* MxArray A = MxArray::Matrix<double>(5, 5); // allocates memory
* MxArray B = MxArray::Matrix<double>(5, 5); // ditto
* plhs[0] = A; // not allowed!!
* plhs[0] = A.releaseOwnership(); // makes explicit that ownership is being released
* } // end of scope. B is released, A isn't
*
*/