Check that the portfolio matrix respect the horizontal and vertical adding-up constraints
.validate_scan(m, which)
m
A square matrix
which
Rows or columns?
João Macalós