-
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.
Starting the implementation of Gauss Legendre quad
- Loading branch information
Showing
4 changed files
with
43 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#pragma once | ||
|
||
#include "solve/gauss_legendre.hpp" |
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,16 @@ | ||
#include "gauss_legendre.hpp" | ||
|
||
#include <cmath> | ||
#include <iostream> | ||
#include <Eigen/Dense> | ||
|
||
namespace Demeter { | ||
|
||
void GaussLegendre::compute_angles() { | ||
// to do | ||
} | ||
|
||
void GaussLegendre::compute_weights() { | ||
// to do | ||
} | ||
} // namespace Demeter |
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,24 @@ | ||
#pragma once | ||
|
||
|
||
#include <Eigen/Core> | ||
#include <Eigen/Dense> | ||
|
||
namespace Demeter { | ||
|
||
class GaussLegendre { | ||
public: | ||
|
||
GaussLegendre(const int& nphi, const int& nteta) | ||
: nphi_(nphi), nteta_(nteta) { | ||
} | ||
|
||
void compute_angles(); | ||
void compute_weights(); | ||
|
||
private: | ||
int nphi_; // nber of azimutal angles | ||
int nteta_; // nber of polar angles | ||
|
||
}; | ||
} // namespace Demeter |
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