Try This ....
double GetWksRowInfo(uint nRow, uint iBgn, uint iEnd)
{
Worksheet WksSource=Project.ActiveLayer();
if(WksSource.IsValid()==true && nRow<WksSource.GetNumRows() && iBgn<iEnd && iEnd<WksSource.GetNumCols())
{
/*
nRow ... Row number to be analyzed (0 Offset)
iBgn ... Starting Column Number (0 Offset)
iEnd ... Ending Column Number (0 Offset)
*/
matrix mat;
if(mat.CopyFromWks(WksSource,0,-1,nRow,nRow )==true)
{
vector<double> vecRow;
if(mat.GetAsVector(vecRow)>0)
{
vector<double> vctSub;
if(vecRow.GetSubVector(vctSub,iBgn,iEnd)==0)
{
return (min(vctSub));
}
}
}
}
return (NANUM);
}