internal override float[] get_Q(int i, int len)
{
var data = new float[1][];
int real_i = index[i];
if (cache.get_data(real_i, data, l) < l)
{
for (int j = 0; j < l; j++)
{
//UPGRADE_WARNING: Data types in Visual C# might be different. Verify the accuracy of narrowing conversions. 'ms-help://MS.VSCC.2003/commoner/redir/redirect.htm?keyword="jlca1042_3"'
data[0][j] = (float) kernel_function(real_i, j);
}
}
// reorder and copy
float[] buf = buffer[next_buffer];
next_buffer = 1 - next_buffer;
sbyte si = sign[i];
for (int j = 0; j < len; j++)
buf[j] = si*sign[j]*data[0][index[j]];
return buf;
}
}