Skip to content

Instantly share code, notes, and snippets.

Alex Minnaar alexminnaar

Block or report user

Report or block alexminnaar

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View expensive_branching.cpp
/* Naive (conditional) and optimized (branchless) absolute value */
#include <ctime>
#include <iostream>
#include <functional>
using namespace std;
int abs_naive(const int i) {
return i < 0 ? -i : i;
View LSA_From_Scratch.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
You can’t perform that action at this time.