Skip to content

Commit d4f53eb

Browse files
committed
Support for eigen pre-3.4
1 parent 9d2132d commit d4f53eb

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

ouster_client/include/ouster/typedefs.h

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,23 @@
11
#pragma once
22
#include <Eigen/Core>
33

4+
#if !EIGEN_VERSION_AT_LEAST(3,4,0)
5+
namespace Eigen {
6+
template<typename Scalar, int Rows>
7+
using Vector = Matrix<Scalar, Rows, 1>;
8+
9+
template<typename Scalar>
10+
using Vector3 = Vector<Scalar, 3>;
11+
12+
template <typename Scalar>
13+
using VectorX = Vector<Scalar, Eigen::Dynamic>;
14+
15+
template <typename Scalar>
16+
using ArrayX = Array<Scalar, Eigen::Dynamic, 1>;
17+
18+
}
19+
#endif
20+
421
#include "ouster/visibility.h"
522

623
namespace ouster {

0 commit comments

Comments
 (0)