Hello,

I need a matrix int matrix[x][y]; as you seen I don't know x and y and I opted for a vector of vector; problem: times I need to perform some operation on one "Line" of the matrix" eg. compute the min_element of the line and other times I need compute min on one column; I hoped to use STL algorithms as "min element"; I hope this will be clear!

Can anyone help me, please?

EDIT:

my actual situation is this:

PatternSet class contains a vector of Pattern*; Pattern class contains a vector of Value; Value class has a double as member.Code:vector<Pattern*> = _patternSet->begin();