simple-squiggle

A restricted subset of Squiggle
Log | Files | Refs | README

csMarked.js (297B)


      1 /**
      2  * Checks if the node at w[j] is marked
      3  *
      4  * @param {Array}   w               The array
      5  * @param {Number}  j               The array index
      6  *
      7  * Reference: http://faculty.cse.tamu.edu/davis/publications.html
      8  */
      9 export function csMarked(w, j) {
     10   // check node is marked
     11   return w[j] < 0;
     12 }