Commit 682c1129 authored by Davis King's avatar Davis King

Made copying to matlab a little bit faster.

parent 0af81bb5
...@@ -939,12 +939,13 @@ namespace mex_binding ...@@ -939,12 +939,13 @@ namespace mex_binding
} }
const_temp_matrix<T> m(item);
for (long c = 0; c < item.nc(); ++c) for (long c = 0; c < m.nc(); ++c)
{ {
for ( long r= 0; r < item.nr(); ++r) for ( long r = 0; r < m.nr(); ++r)
{ {
*mat++ = item(r,c); *mat++ = m(r,c);
} }
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment