📅  最后修改于: 2022-03-11 14:44:48.600000             🧑  作者: Mango
typedef std::vector > Matrix;
Matrix matrix = { {0.1,1.1,.2},
{.4,.5,.6},
{.8,.9,.10}
};
// Just initilization:
int rows = 3;
int cols = 3;
Matrix m3(rows, std::vector(cols) );