How to calculate argmax on 2d matrix

Hi everyone!

I got a question: In the acquisition procedure for my GPS receiver I
have to do a find the maximum of a 2D matrix, and I wonder how this is
best solved in GNU Radio. I have two alternatives that I am
considering.

  1. Store N*M samples in a vector_sink and process the data with scipy.
  2. Create a custom block that calculated the maximum argument.

The first option seems easier initially, but I wonder if there are any
problems with this approach that I have not considered.

All comments are welcomed!

Trond D.