Giter Club home page Giter Club logo

laffinjulia's People

Contributors

xorjane avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

fullstackdevil

laffinjulia's Issues

Add type stability explanations?

I may need to add an explanation of type stability in week 1. Otherwise, students may run into issues with mutating functions that try to update, for example Vectors of Ints to Vectors of Floats during an axpy operation.

Treating scalars as scalars

... rather than as matrices with single elements. This issue is related to #2.

Consider the index-free implementation of dot using FLAME. In the Matlab/Python implementation of FLAME, slicing and dicing results in chi_1 and psi_1 being represented as matrices. This is consistent with alpha being represented as a matrix, rather than a number, given the update

alpha += chi_1 + psi_1

I've chosen to represent alpha as a Number (consistent with my choice in this version to represent rank 1 objects as Vectors). For consistency, should I represent chi_1 and psi_1 as Numbers as well? I need to check if slicing and dicing ever results in chi_1 and psi_2 having multiple elements (I think this can happen but I haven't tested that case). If so, I may want to treat alpha as a matrix.

Remove `using` statements

Currently I specify using .laff and using .flame, in addition to specifying the origin of functions from either module, e.g. as laff.copy!. This is redundant. I'd prefer to keep the namespace specifications and drop the using statements.

How to treat rank 1 objects

The version of LAFF in Matlab conflates rank 1 with rank 2 objects: vectors are consistently represented matrices with a single row or column. In my initial prototype of a translation to Julia, I'm representing rank 1 objects with Vectors instead. This seems more faithful to the way things are done in Julia, but may cause undesirable inconsistencies with the current offering of LAFF.

Higher fidelity to Matlab or Python materials

Two previous versions of the course exist: one in Matlab (current) and one in Python (2014). Translating to Julia from Python within Jupyter notebooks is more straightforward, and so that's how I've begun. However, as there are some inconsistencies between the Matlab and Python versions, this approach creates inconsistencies between my translation and the current version of the course. For example, some functions written as mutating functions in Python are non-mutating in the Matlab versions (for example, axpy in week 1). In the future I will likely want to resolve inconsistencies between the Matlab and Julia translations.

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.