returning a matrix from a function

Can we return a matrix from a function?
You can, as far as I know, return whatever you want from a function.
can you give me the syntax..
What is your matrix? (multidimensional dynamic array, vector of vectors...)
The same as any other type

1
2
3
4
5
6
// pseudo code
some-return-type-here some-function-name-here( some-parameters-here ) {
   some-return-type-here a-variable-of-the-right-type;
   // do stuff
   return a-variable-of-the-right-type;
}
Topic archived. No new replies allowed.