RcppNormalize_Data

C++ Function Reference

1 Signature

M BigDataStatMeth::RcppNormalize_Data(M X, bool bc, bool bs, bool bRowMajor)

2 Parameters

  • X (M)
  • bc (bool)
  • bs (bool)
  • bRowMajor (bool)

3 Returns

Type: typename M

4 Call Graph

Function dependencies

5 Source Code

File: inst/include/hdf5Algebra/matrixNormalization.hppLines 237-248

inline M RcppNormalize_Data ( M  X, bool bc, bool bs, bool bRowMajor )
    {
        static_assert(std::is_same<M, Eigen::MatrixXd >::value || 
                      std::is_same<M, Eigen::Map< Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>> >::value || 
                      std::is_same<M, Eigen::Map< Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::ColMajor>> >::value,
                      "Error - type not allowed");
        
        
        X = RcppNormalizeColwise(X, bc, bs );
        
        return(X); // Return data as initial type
    };

6 Usage Example

#include "BigDataStatMeth.hpp"

// Example usage
auto result = RcppNormalize_Data(...);