search for: row_num

Displaying 4 results from an estimated 4 matches for "row_num".

2020 Sep 11
4
Garbage collection of seemingly PROTECTed pairlist
...2_int_vec(int first, int second) { SEXP out = PROTECT(Rf_allocVector(INTSXP, 2)); int *out_int = INTEGER(out); out_int[0] = first; out_int[1] = second; UNPROTECT(1); return out;} SEXP C_fullocate(SEXP int_mat) { int nr = Rf_nrows(int_mat), *int_mat_int = INTEGER(int_mat); int last, row_num; // row_num will be 1-indexed SEXP prlst0cdr = PROTECT(C_int_mat_nth_row_nrnc(int_mat_int, nr, 2, 1)); SEXP prlst = PROTECT(Rf_list1(prlst0cdr)); SEXP prlst_tail = prlst; last = INTEGER(prlst0cdr)[1]; row_num = 2; while (row_num <= nr) { Rprintf("row_num: %i\n", row_nu...
2020 Sep 12
0
Garbage collection of seemingly PROTECTed pairlist
...t = PROTECT(Rf_allocVector(INTSXP, 2)); > int *out_int = INTEGER(out); > out_int[0] = first; > out_int[1] = second; > UNPROTECT(1); > return out;} > > SEXP C_fullocate(SEXP int_mat) { > int nr = Rf_nrows(int_mat), *int_mat_int = INTEGER(int_mat); > int last, row_num; // row_num will be 1-indexed > SEXP prlst0cdr = PROTECT(C_int_mat_nth_row_nrnc(int_mat_int, nr, 2, 1)); > SEXP prlst = PROTECT(Rf_list1(prlst0cdr)); > SEXP prlst_tail = prlst; > last = INTEGER(prlst0cdr)[1]; > row_num = 2; > while (row_num <= nr) { > Rprint...
2009 Jul 30
1
[PATCH server] fixes to the multiple vm/nets component
...work_config_net select').bind('click', function(e){ + current_network_selectbox_value = e.target.value; }); - // show / hide ip address column - toggle_ip_address_column(); - } - - - - // remove a network config row - function remove_network_config_row(row_num){ - // if trying to remove the first row or a nonexistant one, fail to do so - if(row_num < 2 || row_num > vm_network_config_last_row) - return; - - // get selected network, add it to other selectboxes - network_id = $('#vm_network_config_network_select_'...
2009 Jun 30
0
[PATCH server] permit many-to-many vms / networks relationship
...etwork_config_last_row){ + // add row + add_network_config_row(); + } + }); + }); + + // show / hide ip address column + toggle_ip_address_column(); + } + + + + // remove a network config row + function remove_network_config_row(row_num){ + // if trying to remove the first row or a nonexistant one, fail to do so + if(row_num < 2 || row_num > vm_network_config_last_row) + return; + + // get selected network, add it to other selectboxes + network_id = $('#vm_network_config_network_select_'...