Examples of ThreadedMatrixOperator


Examples of fr.lip6.jkernelmachines.threading.ThreadedMatrixOperator

        continue;
     

      final double[][] m = k.getKernelMatrix(l);
      // specific factory
      ThreadedMatrixOperator tmo = new ThreadedMatrixOperator(){
       
        @Override
        public void doLines(double[][] matrix , int from , int to) {
          for(int index = from ; index < to ; index++)
          {
            for(int j = 0 ; j < matrix[index].length ; j++)
            {
              matrix[index][j] += m[index][j] * w;
            }
          }
        };
       
      };
     
      matrix = tmo.getMatrix(matrix);
    }
   
   
    return matrix;
  }
View Full Code Here

Examples of fr.lip6.jkernelmachines.threading.ThreadedMatrixOperator

        continue;
     

      final double[][] m = k.getKernelMatrix(l);
      // specific factory
      ThreadedMatrixOperator tmo = new ThreadedMatrixOperator(){
       
        @Override
        public void doLines(double[][] matrix , int from , int to) {
         
          for(int index = from ; index < to ; index++)
          {
            for(int i = 0 ; i < m[index].length ; i++)
            {
              matrix[index][i] *= Math.pow(m[index][i], w);
            }
          }
        };
       
      };
     
      matrix = tmo.getMatrix(matrix);
    }
   
    return matrix;
  }
View Full Code Here

Examples of fr.lip6.jkernelmachines.threading.ThreadedMatrixOperator

        continue;
     
      k.setGamma(w);
      final double[][] m = k.getKernelMatrix(l);
      // specific factory
      ThreadedMatrixOperator tmo = new ThreadedMatrixOperator(){
       
        @Override
        public void doLines(double[][] matrix , int from , int to) {
         
          for(int index = from ; index < to ; index++)
          {
            for(int i = 0 ; i < m[index].length ; i++)
            {
              matrix[index][i] *= m[index][i];
            }
          }
        };
       
      };
     
      matrix = tmo.getMatrix(matrix);
    }
   
    return matrix;
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.