mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
Clang-format tests, examples, libraries, benchmarks, etc.
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
3252ecc7a4
commit
46e9cdb7fe
@@ -1,12 +1,10 @@
|
||||
#include <iostream>
|
||||
#include <Eigen/Dense>
|
||||
|
||||
int main()
|
||||
{
|
||||
int main() {
|
||||
Eigen::Matrix2d a;
|
||||
a << 1, 2,
|
||||
3, 4;
|
||||
Eigen::Vector3d v(1,2,3);
|
||||
a << 1, 2, 3, 4;
|
||||
Eigen::Vector3d v(1, 2, 3);
|
||||
std::cout << "a * 2.5 =\n" << a * 2.5 << std::endl;
|
||||
std::cout << "0.1 * v =\n" << 0.1 * v << std::endl;
|
||||
std::cout << "Doing v *= 2;" << std::endl;
|
||||
|
||||
Reference in New Issue
Block a user