Skip to content

Commit

Permalink
Removing some defaults for templates
Browse files Browse the repository at this point in the history
  • Loading branch information
whaeck committed Jul 31, 2024
1 parent 602b5bf commit c2c3084
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/scion/math/ChebyshevApproximation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ namespace math {
* The integral function is defined so that the integral function for x = left
* equals 0.
*/
template < typename X, typename Y = X >
class ChebyshevApproximation :
template < typename X, typename Y >
class ChebyshevApproximation :
public OneDimensionalFunctionBase< ChebyshevApproximation< X, Y >, X, Y > {

/* type aliases */
Expand Down
2 changes: 1 addition & 1 deletion src/scion/math/ChebyshevSeries.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ namespace math {
* The derivative and primitive function is defined over the same domain as
* the original function.
*/
template < typename X, typename Y = X >
template < typename X, typename Y >
class ChebyshevSeries : public SeriesBase< ChebyshevSeries< X, Y >, X, Y > {

/* friend declarations */
Expand Down
2 changes: 1 addition & 1 deletion src/scion/math/InterpolationTable.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ namespace math {
* @class
* @brief Tabulated data with one or more interpolation types
*/
template < typename X, typename Y = X >
template < typename X, typename Y >
class InterpolationTable :
public OneDimensionalFunctionBase< InterpolationTable< X, Y >, X, Y > {

Expand Down
2 changes: 1 addition & 1 deletion src/scion/math/InterpolationTableFunction.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace math {
* @class
* @brief Tabulated data with one or more interpolation types
*/
template < typename X, typename F, typename Y = X, typename Z = X >
template < typename X, typename F, typename Y, typename Z >
class InterpolationTableFunction :
public TwoDimensionalFunctionBase< InterpolationTableFunction< X, F, Y, Z >, X, Y, Z > {

Expand Down
2 changes: 1 addition & 1 deletion src/scion/math/OneDimensionalFunctionBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace math {
* @class
* @brief Base class for one dimensional function objects modelling y = f(x)
*
* This base class provides the common interface for all one dimensional
* This base class provides the common interface for all one dimensional
* function objects. This includes domain testing and function evaluation.
*/
template < typename Derived, typename X, typename Y >
Expand Down
2 changes: 1 addition & 1 deletion src/scion/math/PolynomialSeries.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ namespace math {
* The derivative and primitive function is defined over the same domain as
* the original series.
*/
template < typename X, typename Y = X >
template < typename X, typename Y >
class PolynomialSeries : public SeriesBase< PolynomialSeries< X, Y >, X, Y > {

/* friend declarations */
Expand Down
2 changes: 1 addition & 1 deletion src/scion/math/SeriesBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ namespace math {
* This base class provides the common interface for series expansions such
* as the polynomial series, Legendre series and Chebyshev series.
*/
template < typename Derived, typename X, typename Y = X >
template < typename Derived, typename X, typename Y >
class SeriesBase : public OneDimensionalFunctionBase< Derived, X, Y > {

/* type aliases */
Expand Down

0 comments on commit c2c3084

Please sign in to comment.