Giter VIP home page Giter VIP logo

dcpp's Introduction

dcpp

Introduction

dcpp is an R package that I've created to help me learn cpp. dcpp stands for Dren C++.

Overview

I am learning C++ and have found the motivation to do so through using R. R has built in capabilities to call C++ code from R. In order to grow as a programmer and data scientist, I believe it is important to learn a real programming language. I love R and want to be an even more powerful user.

C++ Code

You will find C++ code in src as well as inst. Code in inst can be run by finding a given folder and running ./a.out in your terminal. Code in src will show up in R when building the R package.

R Code

Similar R code is located in the R folder. Each R function correlates with a given C++ function. When the package is loaded, fibR associates with dcpp_fib. sumR is associated with dcpp_sum, etc.

Benchmarks

A folder called benchmarks.R is in the home directory and it has the different functions set up for speed tests. You can compare the performance of the functions there.

Compiling a C++ application on Mac

#g++ -std=gnu++11 application.cpp

dcpp's People

Contributors

fdrennan avatar

Watchers

 avatar

Forkers

sharmanatasha

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.