20#ifndef KO_REMOVE_NAN_HPP
21#define KO_REMOVE_NAN_HPP
52template <REM_NAN MA_t>
53using MAT = std::integral_constant<REM_NAN, MA_t>;
62template<
typename T,REM_NAN MA_t>
77 void row_removal(Eigen::Block<Eigen::Matrix<T,-1,-1>,1>& row,
MAT<REM_NAN::MR>);
81 void row_removal(Eigen::Block<Eigen::Matrix<T,-1,-1>,1>& row,
MAT<REM_NAN::ZR>);
90 template<
typename STOR_OBJ>
93 m_data{std::forward<STOR_OBJ>(
data)}
115 inline void remove_nan(){
for(
auto row : m_data.rowwise()){ row_removal(row);} };
void remove_nan()
Function to remove the row (dummy NaNs)
Definition removing_nan.hpp:115
void row_removal(Eigen::Block< Eigen::Matrix< T,-1,-1 >, 1 > &row)
Substituting non-dummy NaNs. Tag-dispacther.
Definition removing_nan.hpp:110
removing_nan(STOR_OBJ &&data)
Constructor taking the matrix from which NaNs have to be removed.
Definition removing_nan.hpp:91
KO_Traits::StoringMatrix data() const
Getter for the data matrix.
Definition removing_nan.hpp:103
Contains methods to check and wrap R-inputs into PPCKO-coherent ones.
std::integral_constant< REM_NAN, MA_t > MAT
Definition removing_nan.hpp:53
Implementation of dummy NaNs removal.
Implementation of non-dummy NaNs removal.
Eigen::MatrixXd StoringMatrix
Matrix data structure.
Definition traits_ko.hpp:49
Contains customized types and enumerator for customized template parameters, exploited in the algorit...