Package cern.colt.matrix

Examples of cern.colt.matrix.DoubleFactory2D.sample()


    System.out.print("\n@");

    System.out.print("x");
    double val = 0.5;
    function.A=null; function.B=null; function.C=null; function.D=null; // --> help gc before allocating new mem
    DoubleMatrix2D A = factory.sample(size,size,val,density);
    DoubleMatrix2D B = factory.sample(size,size,val,density);
    function.setParameters(A,B);
    A = null; B = null; // help gc
    float secs = BenchmarkKernel.run(minSeconds,function);
    double ops = function.operations();
View Full Code Here


    System.out.print("x");
    double val = 0.5;
    function.A=null; function.B=null; function.C=null; function.D=null; // --> help gc before allocating new mem
    DoubleMatrix2D A = factory.sample(size,size,val,density);
    DoubleMatrix2D B = factory.sample(size,size,val,density);
    function.setParameters(A,B);
    A = null; B = null; // help gc
    float secs = BenchmarkKernel.run(minSeconds,function);
    double ops = function.operations();
    float opsPerSec = (float) (ops / secs);
View Full Code Here

        //if (true) {
        //if (!((k==1 && density >= 0.1 && size >=100) || (size>5000 && (k==0 || density>1.0E-4) ))) {
        if (!((k>0 && density >= 0.1 && size >=500) )) {
          double val = 0.5;
          function.A=null; function.B=null; function.C=null; function.D=null; // --> help gc before allocating new mem
          DoubleMatrix2D A = factory.sample(size,size,val,density);
          DoubleMatrix2D B = factory.sample(size,size,val,density);
          function.setParameters(A,B);
          A = null; B = null; // help gc
          double ops = function.operations();
          double secs = BenchmarkKernel.run(minSeconds,function);
View Full Code Here

        //if (!((k==1 && density >= 0.1 && size >=100) || (size>5000 && (k==0 || density>1.0E-4) ))) {
        if (!((k>0 && density >= 0.1 && size >=500) )) {
          double val = 0.5;
          function.A=null; function.B=null; function.C=null; function.D=null; // --> help gc before allocating new mem
          DoubleMatrix2D A = factory.sample(size,size,val,density);
          DoubleMatrix2D B = factory.sample(size,size,val,density);
          function.setParameters(A,B);
          A = null; B = null; // help gc
          double ops = function.operations();
          double secs = BenchmarkKernel.run(minSeconds,function);
          opsPerSec = (float) (ops / secs);
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.