// C++, MFC
You could also try to implement the following class :) :
typedef CArray<double> CRowData;
typedef CArray<CRowData> CDblMtx;
class CDblMatrix : private CDblMtx
{
CSize m_sizeDimensions;
public:
CDblMatrix(int iRows, int iCols);
virtual ~CDblMatrix();
void SetSize(const CSize& cNewSize);
const CSize& GetSize() const;
void SetAt(int iRow, int iCol, const double& dVal);
const double& GetAt(int iRow, int iCol) const;
};