simple-squiggle

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

csMarked.js (400B)


      1 "use strict";
      2 
      3 Object.defineProperty(exports, "__esModule", {
      4   value: true
      5 });
      6 exports.csMarked = csMarked;
      7 
      8 /**
      9  * Checks if the node at w[j] is marked
     10  *
     11  * @param {Array}   w               The array
     12  * @param {Number}  j               The array index
     13  *
     14  * Reference: http://faculty.cse.tamu.edu/davis/publications.html
     15  */
     16 function csMarked(w, j) {
     17   // check node is marked
     18   return w[j] < 0;
     19 }