📅  最后修改于: 2022-03-11 14:44:50.266000             🧑  作者: Mango
typedef std::vector > Matrix;
//with initialization
Matrix matrix1 = { {0.1,1.1,.2},
{.4,.5,.6},
{.8,.9,.10}
};
//just initiation (3x3)
Matrix matrix2(3, std::vector(3) );