User submissions are the sole responsibility of contributors, with TuteeHUB disclaiming liability for accuracy, copyrights, or consequences of use; content is for informational purposes only and not professional advice.
I am newish to C++. I am trying to solve a system of equations in C++. These equations contain variables that I store in the class Rectangle. For the solver, I need to define the system of equations as a functor structure. What I need is to pass the variables stored in an class Problem object to the overload operator in struct, where the equations are described. And for the moment I am not able.
#ifndef TESTSTRUCT_FUNCTOR_H
#define TESTSTRUCT_FUNCTOR_H
//templatetemplate<typename_Scalar,int NX =Eigen::Dynamic,int NY =Eigen::Dynamic>structFunctor//: public Time{typedef_ScalarScalar;enum{InputsAtCompileTime= NX,ValuesAtCompileTime= NY
};typedefEigen::Matrix<Scalar,InputsAtCompileTime,1
No matter what stage you're at in your education or career, TuteeHUB will help you reach the next level that
you're aiming for. Simply,Choose a subject/topic and get started in self-paced practice
sessions to improve your knowledge and scores.
manpreet
Best Answer
3 years ago
I am newish to C++. I am trying to solve a system of equations in C++. These equations contain variables that I store in the class Rectangle. For the solver, I need to define the system of equations as a functor structure. What I need is to pass the variables stored in an class Problem object to the overload operator in struct, where the equations are described. And for the moment I am not able.
This is the definition of my functor:
main.cpp
This is the functor Functor.h