Posted on 16 Aug 2022, this text provides information on Bugs & Fixes related to General Tech. Please note that while accuracy is prioritized, the data presented might not be entirely correct or up-to-date. This information is offered for general knowledge and informational purposes only, and should not be considered as a substitute for 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
2 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