Giter VIP home page Giter VIP logo

gilbert's Introduction

gilbert

Distributed Linear Algebra on Sparse Matrices

% load network dataset
numVertices = 50000000;
N = load("hdfs://datasets/largenetwork.csv", numVertices, numVertices);

% create the adjacency matrix 
A = spones(N);

% outdegree per vertex
d = sum(A, 2);

% create the column-stochastic transition matrix
T = (diag(1 ./ d) * A)';

% initialize the ranks
r_0 = ones(numVertices, 1) / numVertices;

% compute PageRank
e = ones(numVertices, 1);

ranks = fixpoint(r_0, @(r) (.85 * T * r + .15 * e));

% save result
write(ranks, "hdfs://results/pageranks.csv");

gilbert's People

Contributors

tillrohrmann avatar gilbert-lang avatar asubmissions avatar

Stargazers

Xiong Jun Wu(熊君武) avatar  avatar Robert Metzger avatar  avatar

Watchers

Robert Metzger avatar  avatar  avatar

gilbert's Issues

Better error support of typer

Typer should give better contextual information in the case of an error. E.g. line numbers and printing the region where the error occurred.

Documentation of Typer and Parser

The Typer and Parser classes are extremely hard to read. They need extensive comments and references to used algorithms/comments.

Immutable variables

Explicit support for immutable variables to support the functional programming paradigm.

Type annotations

Introduction of type annotations to resolve typing problems. Possible approaches:

  1. Matlab comment
  2. New keyword in Matlab, but this makes it difficult to let the program run in the native Matlab environment

Comments and self-explaining variable names

The following classes partially have very cryptic variable and method names. That makes the code extremely hard to read.

org.gilbertlang.language.definition.BuiltinSymbols
org.gilbertlang.language.definition.ConvenienceMethods
org.gilbertlang.language.definition.Types
org.gilbertlang.language.definition.Values
org.gilbertlang.language.definition.Lexer
org.gilbertlang.language.definition.Parser

The variables and methods should be renamed to make the code easier to read.

Fixpoint operator

Integration of a fixpoint operator as a replacement for side effect free while loops.

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.