本文整理汇总了Java中natlab.tame.valueanalysis.components.shape.ShapeFactory类的典型用法代码示例。如果您正苦于以下问题:Java ShapeFactory类的具体用法?Java ShapeFactory怎么用?Java ShapeFactory使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
ShapeFactory类属于natlab.tame.valueanalysis.components.shape包,在下文中一共展示了ShapeFactory类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: BasicMatrixValue
import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
* Construct a BasicMatrixValue based on a Constant.
* Whenever we need to construct a BasicMatrixValue based on a Constant,
* we need to call corresponding factory method in BasicMatrixValueFactory,
* which is newMatrixValue.
* TODO, actually, we should rename newMatrixValue to newMatrixValueFromConstant.
*/
public BasicMatrixValue(String name, Constant constant) {
super(name, constant.getMatlabClass());
this.constant = constant;
this.shape = (new ShapeFactory())
.newShapeFromIntegers(constant.getShape());
//TODO, this line may cause infinite loop.
if (constant instanceof DoubleConstant) {
//System.out.println("Range analysis enabled");
this.rangeValue = (new RangeValueFactory())
.newRangeValueFromDouble(((DoubleConstant)constant).getValue());
}
this.complex = new isComplexInfoFactory()
.newisComplexInfoFromStr("REAL");
}
示例2: AdvancedMatrixValue
import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
* XU add this method to support initial input shape info. svcn
*
* @25th,Jul,2012
*
* @param aClass
* @param shapeInfo
* @param isComplex
*/
public AdvancedMatrixValue(String symbolic,
PrimitiveClassReference aClass,
String shapeInfo,
String isComplex) {
super(symbolic, aClass);
this.iscomplex = (new isComplexInfoFactory(
)).newisComplexInfoFromConst(isComplex);
this.shape = (new ShapeFactory())
.newShapeFromInputString(shapeInfo);
}
示例3: copyVertcatToOutput
import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
public void copyVertcatToOutput() {
Shape shape = new ShapeFactory().newShapeFromDimValues(this.getOutputVertcatExpr());
if (Debug) System.out.println("inside copy vertcat to output "+needForVertcat);
addToOutput(shape);
}
示例4: AggrValueFactory
import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
public AggrValueFactory(){
this.shapeFactory = new ShapeFactory();
this.isComplexFactory = new isComplexInfoFactory(); //added by Vineet
}
示例5: getShapeFactory
import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
* returns the shape factory
*/
public ShapeFactory getShapeFactory(){
return shapeFactory;
}
示例6: AggrValueFactory
import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
public AggrValueFactory(){
this.shapeFactory = new ShapeFactory<AggrValue<D>>(this);
}
示例7: getShapeFactory
import natlab.tame.valueanalysis.components.shape.ShapeFactory; //导入依赖的package包/类
/**
* returns the shape factory
*/
public ShapeFactory<AggrValue<D>> getShapeFactory(){
return shapeFactory;
}