code: function copy_row(nnz,
                    offset,
                    A,
                    /*int* index, // const int*
                      double* value, // const double*
                    */
  
                    x) // x = sparseVector
  {
    for(var i=nnz-1; i>=0; --i) if(A.value[i + offset]){
      x.push_front(new SparseEntry(A.column_index[i + offset], A.value[i + offset]));
    }
    return true;
  }
docs: var proto = SparseVector.prototype