mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Initialize matrix in bicgstab test
This commit is contained in:
@@ -52,7 +52,7 @@ void test_2856() {
|
||||
|
||||
// https://gitlab.com/libeigen/eigen/-/issues/2899
|
||||
void test_2899() {
|
||||
Eigen::MatrixXd A(4, 4);
|
||||
Eigen::MatrixXd A = Eigen::MatrixXd::Zero(4, 4);
|
||||
A(0, 0) = 1;
|
||||
A(1, 0) = -1.0 / 6;
|
||||
A(1, 1) = 2.0 / 3;
|
||||
@@ -64,7 +64,7 @@ void test_2899() {
|
||||
A(3, 1) = -1.0 / 3;
|
||||
A(3, 2) = -1.0 / 3;
|
||||
A(3, 3) = 2.0 / 3;
|
||||
Eigen::VectorXd b(4);
|
||||
Eigen::VectorXd b = Eigen::VectorXd::Zero(4);
|
||||
b(0) = 0;
|
||||
b(1) = 1;
|
||||
b(2) = 1;
|
||||
|
||||
Reference in New Issue
Block a user