-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updates to installation process, nested headers, etc.
- Loading branch information
1 parent
d8c81c0
commit 6232b29
Showing
23 changed files
with
2,050 additions
and
1,994 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,30 @@ | ||
/** | ||
* @file | ||
* | ||
* @brief openMTPK ARITHMETIC MODULE | ||
* | ||
* @details This file serves as the core Arithmetic module housing the | ||
* basic operations and operations based on/using arithmetic. | ||
*/ | ||
#ifndef LINALG_HPP | ||
#define LINALG_HPP | ||
|
||
|
||
/** | ||
* @brief \b Arithmetic \b Basics | ||
* @details Basics of Arithmetic | ||
*/ | ||
#define ARITHMETIC_BASICS | ||
#include "arithmetic/arith_base.hpp" | ||
/*****************************************************************************/ | ||
|
||
/** | ||
* @brief \b Arithmetic \b Operations | ||
* @details Encompasses Arithmetic related operations | ||
*/ | ||
#define ARITHMETIC_OPERATIONS | ||
#include "arithmetic/arith_ops.hpp" | ||
/*****************************************************************************/ | ||
|
||
#endif | ||
|
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,48 @@ | ||
/** | ||
* @file | ||
* @author Akiel Aries | ||
* | ||
* Definitions for basic arithmetic operations | ||
*/ | ||
|
||
#ifndef ARITH_OPS_HPP | ||
#define ARITH_OPS_HPP | ||
#include <vector> | ||
#include <iostream> | ||
#include <stdio.h> | ||
#include <algorithm> | ||
|
||
|
||
namespace mtpk { | ||
|
||
/** | ||
* @brief Arithmetic Basics Class based on Arithmetic operations | ||
*/ | ||
class Basics { | ||
|
||
public: | ||
/** | ||
* @brief Find greatest power of 2 itegers | ||
* | ||
* @param[in] n : integer 1 | ||
* @param[in] p : integer 2 | ||
* | ||
* @return result : (int) | ||
*/ | ||
int greatest_power(int n, int p); | ||
|
||
/** | ||
* @brief Find Greatest Common Divisor of 2 integers | ||
* | ||
* @param[in] x : integer 1 | ||
* @param[in] y : integer 2 | ||
* | ||
* @return result : (int) | ||
*/ | ||
int op_gcd(int x, int y); | ||
}; | ||
|
||
} // namespace | ||
|
||
#endif | ||
|
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
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
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
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
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