C++ REST Eigen-binder module#
-
namespace eigen#
Namespace exposing functionalities of interest from the Eigen library for the API Eigen Example project.
Functions
-
Eigen::MatrixXd multiply_matrices(const Eigen::MatrixXd &a, const Eigen::MatrixXd &b)#
Wrapper method to Matrix multiplication carried out by Eigen operators.
- Parameters:
a – The first matrix.
b – The second matrix.
- Returns:
Eigen::MatrixXd
-
Eigen::MatrixXd add_matrices(const Eigen::MatrixXd &a, const Eigen::MatrixXd &b)#
Wrapper method to Matrix addition carried out by Eigen operators.
- Parameters:
a – The first matrix.
b – The second matrix.
- Returns:
Eigen::MatrixXd
-
double multiply_vectors(const Eigen::VectorXd &v, const Eigen::VectorXd &w)#
Wrapper method to Vector multiplication (dot product) carried out by Eigen operators.
- Parameters:
v – The first vector.
w – The second vector.
- Returns:
double
-
Eigen::VectorXd add_vectors(const Eigen::VectorXd &v, const Eigen::VectorXd &w)#
Wrapper method to Vector addition carried out by Eigen operators.
- Parameters:
v – The first vector.
w – The second vector.
- Returns:
Eigen::VectorXd
-
Eigen::VectorXd read_vector(const std::string &input)#
Method in charge of parsing the JSON list to a vector.
- Parameters:
input – the JSON list.
- Returns:
Eigen::VectorXd
-
Eigen::MatrixXd read_matrix(const std::string &input)#
Method in charge of parsing the JSON list of lists to a matrix.
- Parameters:
input – the JSON list of lists.
- Returns:
Eigen::MatrixXd
-
std::string write_vector(const Eigen::VectorXd &input)#
Method in charge of writing a JSON list from the Eigen::VectorXd object given.
- Parameters:
input – the Eigen::VectorXd.
- Returns:
std::string - representing the Vector as a JSON list.
-
std::string write_matrix(const Eigen::MatrixXd &input)#
Method in charge of writing a JSON list from the Eigen::MatrixXd object given.
- Parameters:
input – the Eigen::MatrixXd.
- Returns:
std::string - representing the Matrix as a JSON list.
-
Eigen::MatrixXd multiply_matrices(const Eigen::MatrixXd &a, const Eigen::MatrixXd &b)#