debug.println(4, "svmObj : alphas = "+Arrays.toString(alp));
// debug.println(4, "svmObj : b="+svm.getB());
//parallelized
final double[] resLine = new double[kmatrix.length];
ThreadedMatrixOperator objFactory = new ThreadedMatrixOperator()
{
@Override
public void doLines(double[][] matrix, int from , int to) {
for(int index = from ; index < to ; index++)
{
resLine[index] = 0;
if(abs(alp[index]) > 0)
{
double al1 = abs(alp[index]) * l.get(index).label;
for(int j = 0 ; j < matrix[index].length ; j++)
{
if(abs(alp[j]) > 0)
resLine[index] += al1 * abs(alp[j]) * l.get(j).label * matrix[index][j];
}
}
}
}
};
objFactory.getMatrix(kmatrix);
double obj1 = 0;
for(double d : resLine)
obj1 += d;
double obj2 = 0;