-
Notifications
You must be signed in to change notification settings - Fork 1
Parsec Headers and Hardware #12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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,61 @@ | ||
|
||
// Copyright (c) 2017-2024 King Abdullah University of Science and Technology, | ||
// All rights reserved. | ||
// ExaGeoStat is a software package, provided by King Abdullah University of Science and Technology (KAUST). | ||
|
||
/** | ||
* @file DataAnalyzer.hpp | ||
* @brief Contains the definition of the DataAnalyzer class. | ||
* @version 1.1.0 | ||
* @author Mahmoud ElKarargy | ||
* @author Sameh Abdulah | ||
mahmoudElkarargyBS marked this conversation as resolved.
Show resolved
Hide resolved
|
||
* @date 2024-10-15 | ||
**/ | ||
|
||
#ifndef EXAGEOSTATCPP_DATAANALYZER_HPP | ||
#define EXAGEOSTATCPP_DATAANALYZER_HPP | ||
|
||
#include <configurations/Configurations.hpp> | ||
#include <data-units/ExaGeoStatData.hpp> | ||
|
||
namespace exageostat::analyzer{ | ||
/** | ||
* @brief Class represents the data analyzer for the Climate Emulator. | ||
* @tparam T Data Type: float or double | ||
*/ | ||
template<typename T> | ||
class DataAnalyzer { | ||
|
||
public: | ||
/** | ||
* @brief Default constructor. | ||
*/ | ||
DataAnalyzer(); | ||
|
||
/** | ||
* @brief Default destructor. | ||
*/ | ||
~DataAnalyzer(); | ||
|
||
/** | ||
* @brief Analyzes the given matrix data. | ||
* @param[in] aConfigurations Reference to Configurations object containing needed parameters. | ||
* @param[in, out] aData Reference to an ExaGeoStatData object that contains matrix to be analyzed. | ||
* @return void | ||
* | ||
*/ | ||
static void AnalyzeMatrix(configurations::Configurations &aConfigurations, std::unique_ptr<ExaGeoStatData<T>> &aData); | ||
|
||
/** | ||
* @brief Compares betweent two matrices by getting the difference. | ||
* @param[in] aConfigurations Reference to Configurations object containing needed parameters. | ||
* @param[in, out] aData Reference to an ExaGeoStatData object that contains matrix to be analyzed. | ||
* @return the calculated MSE. | ||
* | ||
*/ | ||
static double CompareMatDifference(configurations::Configurations &aConfigurations, std::unique_ptr<ExaGeoStatData<T>> &aData); | ||
}; | ||
|
||
}//namespace exageostat | ||
|
||
#endif // EXAGEOSTATCPP_DATAANALYZER_HPP |
This file contains hidden or 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,52 @@ | ||
|
||
// Copyright (c) 2017-2024 King Abdullah University of Science and Technology, | ||
// All rights reserved. | ||
// ExaGeoStat is a software package, provided by King Abdullah University of Science and Technology (KAUST). | ||
|
||
/** | ||
* @file DataTransformer.hpp | ||
* @brief Contains the definition of the DataTransformer class. | ||
* @version 1.1.0 | ||
* @author Mahmoud ElKarargy | ||
* @author Sameh Abdulah | ||
* @date 2024-10-15 | ||
**/ | ||
|
||
#ifndef EXAGEOSTATCPP_DATATRANSFORMER_HPP | ||
#define EXAGEOSTATCPP_DATATRANSFORMER_HPP | ||
|
||
#include <configurations/Configurations.hpp> | ||
#include <data-units/ExaGeoStatData.hpp> | ||
|
||
namespace exageostat::transformer{ | ||
|
||
/** | ||
* @brief Class represents the data transformer for the Climate Emulator. | ||
* @tparam T Data Type: float or double | ||
*/ | ||
template<typename T> | ||
class DataTransformer { | ||
|
||
/** | ||
* @brief Performs the forward spherical harmonics transform (SHT). | ||
* @param[in] aConfigurations Configurations object containing relevant settings. | ||
* @param[in,out] aData Descriptor Data object to be populated with descriptors and data. | ||
*/ | ||
static void ForwardSHT(configurations::Configurations &aConfigurations, std::unique_ptr<ExaGeoStatData<T>> &aData); | ||
|
||
/** | ||
* @brief Reshapes data during the forward phase of the simulation. | ||
* @param[in] aConfigurations Configurations object containing relevant settings. | ||
* @param[in,out] aData Descriptor Data object to be populated with descriptors and data. | ||
*/ | ||
static void ForwardReshape(configurations::Configurations &aConfigurations, std::unique_ptr<ExaGeoStatData<T>> &aData); | ||
|
||
/** | ||
* @brief Performs the inverse spherical harmonics transform (SHT). | ||
* @param[in] aConfigurations Configurations object containing relevant settings. | ||
* @param[in,out] aData Descriptor Data object to be populated with descriptors and data. | ||
*/ | ||
static void InverseSHT(configurations::Configurations &aConfigurations, std::unique_ptr<ExaGeoStatData<T>> &aData); | ||
}; | ||
} | ||
#endif // EXAGEOSTATCPP_DATATRANSFORMER_HPP |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.