Examples of make()


Examples of ca.nengo.model.impl.NodeFactory.make()

    NEFNode[] nodes = new NEFNode[n];

    NodeFactory nodeFactory=myEnsembleFactory.getNodeFactory();

    for (int i = 0; i < n; i++) {
      Node node = nodeFactory.make("node" + i);
      if ( !(node instanceof NEFNode) ) {
        throw new StructuralException("Nodes must be NEFNodes");
      }
      nodes[i] = (NEFNode) node;
View Full Code Here

Examples of ca.nengo.model.nef.NEFEnsembleFactory.make()

                }
                ef.setEncoderFactory(vectorGen);
            }

            if (radius==null) {
                NEFEnsemble ensemble = ef.make(name, numOfNeurons, dimensions);
                return ensemble;
            } else {
                float[] radii=new float[dimensions];
                for (int i=0; i<dimensions; i++) {
                    radii[i]=radius.floatValue();
View Full Code Here

Examples of ca.nengo.model.nef.impl.NEFEnsembleFactoryImpl.make()

                }
                ef.setEncoderFactory(vectorGen);
            }

            if (radius==null) {
                NEFEnsemble ensemble = ef.make(name, numOfNeurons, dimensions);
                return ensemble;
            } else {
                float[] radii=new float[dimensions];
                for (int i=0; i<dimensions; i++) {
                    radii[i]=radius.floatValue();
View Full Code Here

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

 
double value = 2;
double omega = 1.25;
final double alpha = omega * 0.25;
final double beta = 1-omega;
A = factory.make(size,size,value);

cern.colt.function.Double9Function function = new cern.colt.function.Double9Function() {
  public final double apply(double a00, double a01, double a02, double a10, double a11, double a12, double a20, double a21, double a22) {
    return alpha*a11 + beta*(a01+a10+a12+a21);
  }
 
View Full Code Here

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

//A.zSum4Neighbors(A,alpha,beta,runs);
timer.stop().display();
//System.out.println("A="+A);
A=null;

double[][] B =  factory.make(size,size,value).toArray();
timer.reset().start();

System.out.println("benchmarking stencil scimark...");
for (int i=0; i<runs; i++) {
//  jnt.scimark2.SOR.execute(omega, B, runs);
View Full Code Here

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

  factory = Factory2D.dense;
else
  factory = Factory2D.sparse;
 
double value = 0.5;
A = factory.make(size,size,value);
Property.generateNonSingular(A);
cern.colt.Timer timer = new cern.colt.Timer().start();

System.out.println(A);
System.out.println(Algebra.ZERO.inverse(A));
View Full Code Here

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

  factory = Factory2D.dense;
else
  factory = Factory2D.sparse;
 
double value = 0.5;
A = factory.make(size,size,value);
Property.generateNonSingular(A);
cern.colt.Timer timer = new cern.colt.Timer().start();

DoubleMatrix2DComparator fun = new DoubleMatrix2DComparator() {
  public int compare(DoubleMatrix2D a, DoubleMatrix2D b) {
View Full Code Here

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

    { 1, 2, 3, 4, 5, 6},
    { 2, 3, 4, 5, 6, 7}
  };
  DoubleFactory2D f = DoubleFactory2D.dense;
  DoubleMatrix1D vector = new DenseDoubleMatrix1D(data);
  DoubleMatrix2D matrix = f.make(arrMatrix);
  DoubleMatrix1D res = vector.like(matrix.rows());
 
  matrix.zMult(vector,res);

  System.out.println(res);
View Full Code Here

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

  { 2, 4, 6 },
  { 3, 6, 9 },
  { 4, -8, -10 }
};
DoubleFactory2D factory = DoubleFactory2D.dense;
DoubleMatrix2D A = factory.make(values);
System.out.println("\n\nmatrix="+A);
System.out.println("\ncovar1="+covariance(A));
//System.out.println(correlation(covariance(A)));
//System.out.println(distance(A,EUCLID));
View Full Code Here

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

  {-1.13415420.20388430}
};

System.out.println("\n\ninitializing...");
DoubleFactory2D factory = DoubleFactory2D.dense;
DoubleMatrix2D A = factory.make(values).viewDice();

System.out.println("\nA="+A.viewDice());
System.out.println("\ndist="+distance(A,norm).viewDice());
}
/**
 
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.