search for: input_row

Displaying 3 results from an estimated 3 matches for "input_row".

Did you mean: input_rows
2007 Apr 08
0
locate nearest value in lookup table
...ence for each color component d <- cbind( abs(soil$X - c$X[i]), abs(soil$Y - c$Y[i]), abs(soil$Z - c$Z[i]) ) # find the difference vector # 3D distance formula b <- sqrt( sqrt( d[,1]^2 + d[,2]^2) + d[,3]^2) # get the smallest difference vector i.closest <- head( soil[order(b), ], 1) res$input_row[i] <- i res$H[i] <- as.vector(unlist(i.closest[1])) res$V[i] <- as.vector(unlist(i.closest[2])) res$C[i] <- as.vector(unlist(i.closest[3])) res$diff_vect[i] <- min(b) } # summarize the conversions paste(res$input_row, res$H, res$V, res$C) Does this approach even make sense? th...
2017 Oct 11
2
[PATCH] Support for Channel Mapping 253.
...#39;ll want something like: (opus_int16)((unsigned)demixing_matrix[2*i+1] << 8) (though you might want to check it too) 2) In mapping_matrix_multiply_short(), I would recommend something along these lines (untested) to improve accuracy: opus_int32 tmp = 0; for (col = 0; col < input_rows; col++) { tmp += (matrix_data[MATRIX_INDEX(matrix->rows, row, col)] * input[MATRIX_INDEX(input_rows, col, i)]) >> 8; } output[MATRIX_INDEX(output_rows, row, i)] = (tmp+64)>>7; 3) Looking at your get_*() function to compute offsets, I th...
2017 Oct 10
2
[PATCH] Support for Channel Mapping 253.
Hi Drew, On 10/10/17 02:29 PM, Drew Allen wrote: > 2) Someone on this list might know better than I do on that one, but for > the new _ctl_va_list() calls, I believe the convention is for va_start() > and va_end() to appear in the caller rather than in in the va_list() > function itself. > > *My understanding is that it's impossible to pass ellipsis to another >