mirror of
https://gitlab.com/libeigen/eigen.git
synced 2024-12-03 06:50:57 +08:00
int main() is a standard main() prototype, and makes for cleaner examples
This commit is contained in:
parent
67d79c6751
commit
a90575514a
@ -3,7 +3,7 @@
|
||||
|
||||
using Eigen::MatrixXd;
|
||||
|
||||
int main(int, char *[])
|
||||
int main()
|
||||
{
|
||||
MatrixXd m(2,2);
|
||||
m(0,0) = 3;
|
||||
|
@ -4,7 +4,7 @@
|
||||
using Eigen::MatrixXd;
|
||||
using Eigen::VectorXd;
|
||||
|
||||
int main(int, char *[])
|
||||
int main()
|
||||
{
|
||||
MatrixXd m(3,3);
|
||||
for (int row = 0; row < 3; ++row)
|
||||
|
@ -4,7 +4,7 @@
|
||||
using Eigen::Matrix3d;
|
||||
using Eigen::Vector3d;
|
||||
|
||||
int main(int, char *[])
|
||||
int main()
|
||||
{
|
||||
Matrix3d m;
|
||||
for (int row = 0; row < 3; ++row)
|
||||
|
@ -5,7 +5,7 @@
|
||||
using namespace std;
|
||||
using namespace Eigen;
|
||||
|
||||
int main(int, char *[])
|
||||
int main()
|
||||
{
|
||||
Matrix3f A;
|
||||
Vector3f b;
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
using namespace Eigen;
|
||||
|
||||
int main(int, char *[])
|
||||
int main()
|
||||
{
|
||||
for (int size=1; size<=4; ++size)
|
||||
{
|
||||
|
@ -3,7 +3,7 @@
|
||||
|
||||
using namespace Eigen;
|
||||
|
||||
int main(int, char *[])
|
||||
int main()
|
||||
{
|
||||
Matrix3f m3;
|
||||
m3 << 1, 2, 3, 4, 5, 6, 7, 8, 9;
|
||||
|
Loading…
Reference in New Issue
Block a user