Skip to content

Instantly share code, notes, and snippets.

View ViralBShah's full-sized avatar

Viral B. Shah ViralBShah

View GitHub Profile
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
#ifdef OPENLIBM
#include "openlibm.h"
#else
#include <math.h>
#endif
{
"metadata": {
"language": "Julia",
"name": "Voter data analysis with Julia's DataFrames"
},
"nbformat": 3,
"nbformat_minor": 0,
"worksheets": [
{
"cells": [
*(r1::RemoteRef,r2::RemoteRef)=@spawnat r2.where fetch(r1)*fetch(r2)
function prefix8(y,*)
if length(y)!=8; error("length 8 only"); end
for i in [2,4,6,8]; y[i]=y[i-1]*y[i]; end
for i in [ 4, 8]; y[i]=y[i-2]*y[i]; end
for i in [ 8]; y[i]=y[i-4]*y[i]; end
for i in [ 6 ]; y[i]=y[i-2]*y[i]; end
for i in [ 3,5,7 ]; y[i]=y[i-1]*y[i]; end
y
@ViralBShah
ViralBShah / LSF.jl
Created November 7, 2016 16:10 — forked from kourzanov/LSF.jl
LSF module for Julia
module LSF
immutable LSFManager <: ClusterManager
machines::Dict
function LSFManager(; machines=[])
mhist = Dict()
for m in machines
cnt = get(mhist, m, 0)
mhist[m] = cnt + 1
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
#ifndef LAPACK_STUB_H
#define LAPACK_STUB_H
#include <stdlib.h>
#define min(a,b) (((a) < (b)) ? (a) : (b))
/** LAPACK Fortran subroutine DGETRF. */
0
4gh
AStupidBear
AbhinavPraveen
AlexS12
Alexander-Barth
Algocircle
AnderGray
AndreyKolev
AntonioLoureiro
0
2HgO
4gh
ANL-CEEESA
AP6YC
AStupidBear
ATISLabs
AbhinavPraveen
AdarshKumar712
_
_ _ _(_)_ | Documentation: https://docs.julialang.org
(_) | (_) (_) |
_ _ _| |_ __ _ | Type "?" for help, "]?" for Pkg help.
| | | | | | |/ _` | |
| | |_| | | | (_| | | Version 1.6.0-rc3 (2021-03-16)
_/ |\__'_|_|_|\__'_| | Official https://julialang.org/ release
|__/ |
(@v1.6) pkg> add Plots
%%MatrixMarket matrix coordinate complex general
484 484 1884
1 1 -0.5000000000000002 0.0
4 1 0.0 -1.0
24 1 0.5000000000000002 0.0
67 1 0.0 1.0
2 2 -0.2500000000000001 0.9
68 2 0.0 1.0
3 3 -1.0500000000000003 -1.2
6 3 0.0 -1.4142135623730951