GitLab | UTCN

Skip to content
Snippets Groups Projects
Commit 4de9feba authored by jhavl's avatar jhavl
Browse files

add matrix defs

parent 09303231
No related branches found
No related tags found
No related merge requests found
/**
* \file linalg.h
* \author Jesse Haviland
*
*/
/* linalg.h */
#ifndef _LINALG_H_
#define _LINALG_H_
#include <Eigen/Dense>
#ifdef __cplusplus
extern "C"
{
#endif /* __cplusplus */
#define Matrix3dc Eigen::Matrix3d
#define Matrix3dr Eigen::Matrix<double, 3, 3, Eigen::RowMajor>
#define MapMatrix3dc Eigen::Map<Matrix3dc>
#define MapMatrix3dr Eigen::Map<Matrix3dr>
#define Matrix4dc Eigen::Matrix4d
#define Matrix4dr Eigen::Matrix<double, 4, 4, Eigen::RowMajor>
#define MapMatrix4dc Eigen::Map<Matrix4dc>
#define MapMatrix4dr Eigen::Map<Matrix4dr>
#define Vector3 Eigen::Vector3d
#define MapVector3 Eigen::Map<Vector3>
#define Vector4 Eigen::Vector4d
#define MapVector4 Eigen::Map<Vector4>
#define Vector6 Eigen::Vector<double, 6>
#define MapVector6 Eigen::Map<Vector6>
#ifdef __cplusplus
} /* extern "C" */
#endif /* __cplusplus */
#endif
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment