libeigen/eigen!2509 Closes #2868 Co-authored-by: Rasmus Munk Larsen <rmlarsen@gmail.com>
11 lines
358 B
C++
11 lines
358 B
C++
// SPDX-FileCopyrightText: The Eigen Authors
|
|
// SPDX-License-Identifier: MPL-2.0
|
|
|
|
ArrayXXf table(10, 4);
|
|
table.col(0) = ArrayXf::LinSpaced(10, 0, 90);
|
|
table.col(1) = EIGEN_PI / 180 * table.col(0);
|
|
table.col(2) = table.col(1).sin();
|
|
table.col(3) = table.col(1).cos();
|
|
std::cout << " Degrees Radians Sine Cosine\n";
|
|
std::cout << table << std::endl;
|