Skip to content

Instantly share code, notes, and snippets.

View adiwajshing's full-sized avatar

Adhiraj Singh adiwajshing

View GitHub Profile
@adiwajshing
adiwajshing / test.cpp
Created April 2, 2020 11:28
Benchmark NaiveConvolution
#include <iostream>
#include <armadillo>
#include <stdlib.h>
#include <omp.h>
#include <mlpack/methods/ann/convolution_rules/border_modes.hpp>
#include <mlpack/methods/ann/convolution_rules/naive_convolution.hpp>
using namespace std;
using namespace arma;
@adiwajshing
adiwajshing / lecture2.md
Last active June 13, 2020 14:30
Sasta ICP -- Lecture 2 -- Signs, Strings, Structures & Arrays

Recap

  1. To compile & run your c program, open terminal and type in:
    1. gcc -o myprogram file.c
    2. ./myprogram Or you can execute both commands in a single go by joining them with a ;. For example, gcc -o myprogram file.c; ./myprogram
  2. Some info on data types & printing data types here.
  3. Template for a C file:
    #include