mirror of
https://gitlab.com/libeigen/eigen.git
synced 2026-04-10 11:34:33 +08:00
get rid of using namespace Eigen in sample code
This commit is contained in:
committed by
Rasmus Munk Larsen
parent
e4c40b092a
commit
39a6aff16c
@@ -1,11 +1,11 @@
|
||||
#include <Eigen/Dense>
|
||||
#include <iostream>
|
||||
|
||||
using namespace Eigen;
|
||||
using Eigen::MatrixXf;
|
||||
|
||||
void copyUpperTriangularPart(MatrixXf& dst, const MatrixXf& src)
|
||||
{
|
||||
dst.triangularView<Upper>() = src.triangularView<Upper>();
|
||||
dst.triangularView<Eigen::Upper>() = src.triangularView<Eigen::Upper>();
|
||||
}
|
||||
|
||||
int main()
|
||||
|
||||
Reference in New Issue
Block a user