libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
18 lines
403 B
C++
18 lines
403 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
#include <iostream>
|
|
#include <Eigen/Dense>
|
|
|
|
using Eigen::Matrix3d;
|
|
using Eigen::Vector3d;
|
|
|
|
int main() {
|
|
Matrix3d m = Matrix3d::Random();
|
|
m = (m + Matrix3d::Constant(1.2)) * 50;
|
|
std::cout << "m =" << std::endl << m << std::endl;
|
|
Vector3d v(1, 2, 3);
|
|
|
|
std::cout << "m * v =" << std::endl << m * v << std::endl;
|
|
}
|