-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added linear solver and update fitspectra widget layout
- Loading branch information
Arthur Glowacki
committed
Jul 9, 2024
1 parent
f8ca7b3
commit 09112e6
Showing
5 changed files
with
252 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/*----------------------------------------------------------------------------- | ||
* Copyright (c) 2024, UChicago Argonne, LLC | ||
* See LICENSE file. | ||
*---------------------------------------------------------------------------*/ | ||
|
||
#include <solver/LinearSolver.h> | ||
|
||
//--------------------------------------------------------------------------- | ||
|
||
LinearSolver::LinearSolver() : AbstractSolver() | ||
{ | ||
|
||
} | ||
|
||
//--------------------------------------------------------------------------- | ||
|
||
LinearSolver::~LinearSolver() | ||
{ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
QMap<QString, double> LinearSolver::getAllCoef() | ||
{ | ||
return _dict_min_coef; | ||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
QString LinearSolver::getLastErrorMessage() | ||
{ | ||
return "N/A"; | ||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
QMap<QString, double> LinearSolver::getMinCoef() | ||
{ | ||
return _dict_min_coef; | ||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
QMap<QString, double> LinearSolver::getOptions() | ||
{ | ||
return _dict_options; | ||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
gstar::ITransformer* LinearSolver::getTransformer() | ||
{ | ||
return _transformer; | ||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
void LinearSolver::setAllCoef(QMap<QString, double> vars) | ||
{ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
void LinearSolver::setCoordPoints(QList < QMap<QString,double> > vars) | ||
{ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
void LinearSolver::setMinCoef(QMap<QString, double> vars) | ||
{ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
void LinearSolver::setOptions(QMap<QString, double> vars) | ||
{ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
void LinearSolver::setTransformer(gstar::ITransformer* transformer) | ||
{ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------------------- | ||
|
||
bool LinearSolver::run() | ||
{ | ||
|
||
} | ||
|
||
//-------------------------------------------------------------------------- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,117 @@ | ||
/*----------------------------------------------------------------------------- | ||
* Copyright (c) 2024, UChicago Argonne, LLC | ||
* See LICENSE file. | ||
*---------------------------------------------------------------------------*/ | ||
|
||
#ifndef LinearSolver_H | ||
#define LinearSolver_H | ||
|
||
#include <solver/AbstractSolver.h> | ||
//--------------------------------------------------------------------------- | ||
|
||
/** | ||
* @brief Transformation Interface | ||
* | ||
*/ | ||
class LinearSolver : public AbstractSolver | ||
{ | ||
|
||
public: | ||
|
||
/** | ||
* Constructor. | ||
*/ | ||
LinearSolver(); | ||
|
||
/** | ||
* Destructor. | ||
*/ | ||
virtual ~LinearSolver(); | ||
|
||
/** | ||
* @brief getAllCoef | ||
* @return | ||
*/ | ||
virtual QMap<QString, double> getAllCoef(); | ||
|
||
/** | ||
* @brief getLastErrorMessage | ||
* @return | ||
*/ | ||
QString getLastErrorMessage(); | ||
|
||
/** | ||
* @brief getMinCoef | ||
* @return | ||
*/ | ||
virtual QMap<QString, double> getMinCoef(); | ||
|
||
/** | ||
* @brief getOptions | ||
* @return | ||
*/ | ||
virtual QMap<QString, double> getOptions(); | ||
|
||
/** | ||
* @brief getTransformer | ||
* @return | ||
*/ | ||
virtual gstar::ITransformer* getTransformer(); | ||
|
||
/** | ||
* @brief setAllCoef | ||
* @param vars | ||
*/ | ||
virtual void setAllCoef(QMap<QString, double> vars); | ||
|
||
/** | ||
* @brief setCoordPoints | ||
* @param vars | ||
*/ | ||
virtual void setCoordPoints(QList < QMap<QString,double> > vars); | ||
|
||
/** | ||
* @brief setMinCoef | ||
* @param vars | ||
*/ | ||
virtual void setMinCoef(QMap<QString, double> vars); | ||
|
||
/** | ||
* @brief setOptions | ||
* @param vars | ||
*/ | ||
virtual void setOptions(QMap<QString, double> vars); | ||
|
||
/** | ||
* @brief setTransformer | ||
* @param transformer | ||
*/ | ||
virtual void setTransformer(gstar::ITransformer* transformer); | ||
|
||
/** | ||
* @brief run | ||
* @return | ||
*/ | ||
virtual bool run(); | ||
|
||
protected: | ||
|
||
/** | ||
* m_dict_min_coef. | ||
*/ | ||
QMap<QString, double> _dict_min_coef; | ||
|
||
/** | ||
* m_dict_options. | ||
*/ | ||
QMap<QString, double> _dict_options; | ||
|
||
gstar::ITransformer *_transformer; | ||
|
||
}; | ||
|
||
//--------------------------------------------------------------------------- | ||
|
||
#endif //LinearSolver_H | ||
|
||
//--------------------------------------------------------------------------- |