Function that returns a pointer

A function that takes as input a matrix and a vector and returns a pointer as output.