Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

i have no idea, what they mean with "singleton" there (it's probably just misleading),

but push_back() is quite easy to explain: you add 1 or more rows to the bottom an existing matrix. like:

1 1 1
1 1 1
  +
3 3 3
  =
1 1 1
1 1 1
3 3 3

it does the same as vconcat(), btw.

the restriction here is, that your newly added line(s) must have the same number of cols as the original Mat (easy to see in the example above i hope!)

i have no idea, what they mean with "singleton" there (it's probably just misleading),

but push_back() is quite easy to explain: you add 1 or more rows to the bottom of an existing matrix. like:

1 1 1
1 1 1
  +
3 3 3
  =
1 1 1
1 1 1
3 3 3

it does the same as vconcat(), btw.

the restriction here is, that your newly added line(s) must have the same number of cols as the original Mat (easy to see in the example above i hope!)