📜  创建矩阵 cpp - C++ 代码示例

📅  最后修改于: 2022-03-11 14:44:50.266000             🧑  作者: Mango

代码示例1
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) );