CEBL  2.1
Namespaces | Typedefs | Functions
cppR_utils.hpp File Reference
#include <fstream>
#include <algorithm>
#include <numeric>
#include <vector>
#include <iterator>
#include <boost/lexical_cast.hpp>
#include <cppR/cppR_includes.hpp>

Go to the source code of this file.

Namespaces

namespace  cppR

Typedefs

typedef boost::mt19937 base_generator_type

Functions

template<typename T >
ublas::vector< T > cppR::runif (int n)
template<typename T >
ublas::vector< T > cppR::rnorm (int n, double mean, double sd)
template<typename T >
std::vector< T > cppR::asStdVector (ublas::vector< T > vec)
template<typename T >
ublas::vector< T > cppR::asUblasVector (std::vector< T > vec)
template<typename T >
ublas::vector< T > cppR::sample (ublas::vector< T > vec)
template<typename T >
ublas::matrix< T > cppR::apply (const ublas::matrix< T > &m, T(*func)(T))
template<typename T , typename U >
ublas::matrix< T > cppR::apply (const ublas::matrix< T > &m, T(*func)(T, U), U arg2)
template<typename T >
ublas::vector< T > cppR::apply (const ublas::vector< T > &m, T(*func)(T))
template<typename T >
ublas::vector< T > cppR::rowApply (const ublas::matrix< T > &m, T(*func)(const ublas::vector< T > &))
template<typename T >
ublas::vector< T > cppR::columnApply (const ublas::matrix< T > &m, T(*func)(const ublas::vector< T > &))
template<typename T >
void cppR::printMatrix (const ublas::matrix< T > &m)
template<typename T >
void cppR::printVector (const ublas::vector< T > &v)
template<typename T >
void cppR::printVector (const std::vector< T > &v)
template<typename T >
void cppR::printMatrixDim (const ublas::matrix< T > &m)
template<typename T >
void cppR::writeTable (const ublas::matrix< T > &m, string filename)
template<typename T >
ublas::matrix< T > cppR::readTable (string filename)

Typedef Documentation

typedef boost::mt19937 base_generator_type

Definition at line 40 of file cppR_utils.hpp.