39 namespace eigen_converter {
45 template <
class T,
int M,
int N,
int A>
48 Eigen::Matrix<T, M, N, Eigen::RowMajor> matrix_row_major = matrix;
49 return core::Tensor(matrix_row_major.data(), {matrix.rows(), matrix.cols()},
80 const std::vector<Eigen::Vector3d> &values,
93 const std::vector<Eigen::Vector3i> &values,
core::Tensor EigenVector3iVectorToTensor(const std::vector< Eigen::Vector3i > &values, core::Dtype dtype, const core::Device &device)
Definition: EigenConverter.cpp:118
Definition: PinholeCameraIntrinsic.cpp:35
core::Tensor EigenMatrixToTensor(const Eigen::Matrix< T, M, N, A > &matrix)
Definition: EigenConverter.h:46
core::Tensor EigenVector3dVectorToTensor(const std::vector< Eigen::Vector3d > &values, core::Dtype dtype, const core::Device &device)
Definition: EigenConverter.cpp:111
std::vector< Eigen::Vector3i > TensorToEigenVector3iVector(const core::Tensor &tensor)
Definition: EigenConverter.cpp:106
std::vector< Eigen::Vector3d > TensorToEigenVector3dVector(const core::Tensor &tensor)
Definition: EigenConverter.cpp:101