本文整理汇总了Java中natlab.tame.valueanalysis.ValueSet.newInstance方法的典型用法代码示例。如果您正苦于以下问题:Java ValueSet.newInstance方法的具体用法?Java ValueSet.newInstance怎么用?Java ValueSet.newInstance使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类natlab.tame.valueanalysis.ValueSet
的用法示例。
在下文中一共展示了ValueSet.newInstance方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: caseCellhorzcat
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public Res<AggrValue<SimpleMatrixValue>> caseCellhorzcat(Builtin builtin,
Args<AggrValue<SimpleMatrixValue>> elements) {
ValueSet<AggrValue<SimpleMatrixValue>> values = ValueSet.newInstance(elements);
Shape shape = factory.getShapeFactory().newShapeFromValues(
Args.newInstance(factory.newMatrixValue(null, 1),factory.newMatrixValue(null, elements.size())));
return Res.<AggrValue<SimpleMatrixValue>>newInstance(new CellValue<SimpleMatrixValue>(this.factory, shape, values));
}
示例2: caseCellvertcat
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public Res<AggrValue<SimpleMatrixValue>> caseCellvertcat(Builtin builtin,
Args<AggrValue<SimpleMatrixValue>> elements) {
ValueSet<AggrValue<SimpleMatrixValue>> values = ValueSet.newInstance(elements);
Shape shape = factory.getShapeFactory().newShapeFromValues(
Args.newInstance(factory.newMatrixValue(null, elements.size()),factory.newMatrixValue(null, 1)));
return Res.<AggrValue<SimpleMatrixValue>>newInstance(new CellValue<SimpleMatrixValue>(this.factory, shape, values));
}
示例3: toSingleValues
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
/**
* returns a cell value where all values are merged into one
* returns this if this cell value arleady satisfies that condition.
*/
public CellValue<D> toSingleValues(){
if (!usesMap) return this;
CellValue<D> result = new CellValue<D>(factory);
result.usesMap = false;
ValueSet<AggrValue<D>> values = ValueSet.newInstance();
for (int i : cellMap.keySet()){
values = values.merge(result.cellMap.get(i));
}
result.values = values;
return result;
}
示例4: arraySubsref
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public ValueSet<AggrValue<BasicMatrixValue>> arraySubsref(
Args<AggrValue<BasicMatrixValue>> indizes) {
return ValueSet.<AggrValue<BasicMatrixValue>> newInstance(
factory.newMatrixValueFromClassShapeRange(
getSymbolic()
, getMatlabClass()
, shapePropagator.arraySubsref(shape, indizes)
, null
, complex)
);
}
示例5: caseCellhorzcat
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public Res<AggrValue<BasicMatrixValue>> caseCellhorzcat(Builtin builtin,
Args<AggrValue<BasicMatrixValue>> elements) {
ValueSet<AggrValue<BasicMatrixValue>> values = ValueSet.newInstance(elements);
Shape shape = factory.getShapeFactory().newShapeFromValues(
Args.newInstance(factory.newMatrixValue(null, 1),factory.newMatrixValue(null, elements.size())));
return Res.<AggrValue<BasicMatrixValue>>newInstance(new CellValue<BasicMatrixValue>(factory, shape, values));
}
示例6: caseCellvertcat
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public Res<AggrValue<BasicMatrixValue>> caseCellvertcat(Builtin builtin,
Args<AggrValue<BasicMatrixValue>> elements) {
ValueSet<AggrValue<BasicMatrixValue>> values = ValueSet.newInstance(elements);
Shape shape = factory.getShapeFactory().newShapeFromValues(
Args.newInstance(factory.newMatrixValue(null, elements.size()),factory.newMatrixValue(null, 1)));
return Res.<AggrValue<BasicMatrixValue>>newInstance(new CellValue<BasicMatrixValue>(factory, shape, values));
}
示例7: caseCellhorzcat
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public Res<AggrValue<AdvancedMatrixValue>> caseCellhorzcat(Builtin builtin,
Args<AggrValue<AdvancedMatrixValue>> elements) {
ValueSet<AggrValue<AdvancedMatrixValue>> values = ValueSet
.newInstance(elements);
Shape shape = factory.getShapeFactory()
.newShapeFromValues(
Args.newInstance(factory.newMatrixValue(null, 1),
factory.newMatrixValue(null, elements.size())));
return Res
.<AggrValue<AdvancedMatrixValue>> newInstance(new CellValue<AdvancedMatrixValue>(
this.factory, shape, values));
}
示例8: caseCellvertcat
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public Res<AggrValue<AdvancedMatrixValue>> caseCellvertcat(Builtin builtin,
Args<AggrValue<AdvancedMatrixValue>> elements) {
ValueSet<AggrValue<AdvancedMatrixValue>> values = ValueSet
.newInstance(elements);
Shape shape = factory.getShapeFactory()
.newShapeFromValues(
Args.newInstance(
factory.newMatrixValue(null, elements.size()),
factory.newMatrixValue(null, 1)));
return Res
.<AggrValue<AdvancedMatrixValue>> newInstance(new CellValue<AdvancedMatrixValue>(
this.factory, shape, values));
}
示例9: arraySubsref
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public ValueSet<AggrValue<AdvancedMatrixValue>> arraySubsref(
Args<AggrValue<AdvancedMatrixValue>> indizes) {
return ValueSet.<AggrValue<AdvancedMatrixValue>> newInstance(
factory.newMatrixValueFromClassShapeRange(
getSymbolic()
, getMatlabClass()
, shapePropagator.arraySubsref(shape, indizes)
, null
, iscomplex)
);
}
示例10: arraySubsref
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public ValueSet<AggrValue<BasicMatrixValue>> arraySubsref(
Args<AggrValue<BasicMatrixValue>> indizes) {
return ValueSet
.<AggrValue<BasicMatrixValue>> newInstance(new BasicMatrixValue(
this.getMatlabClass(), shapePropagator.arraySubsref(
this.getShape(), indizes)));
}
示例11: arraySubsref
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public ValueSet<AggrValue<AdvancedMatrixValue>> arraySubsref(
Args<AggrValue<AdvancedMatrixValue>> indizes) {
if(null == indizes)
{System.out.println("indizes is null");}
return ValueSet
.<AggrValue<AdvancedMatrixValue>> newInstance(new AdvancedMatrixValue(
this.getMatlabClass(), shapePropagator.arraySubsref(
this.getShape(), indizes), this.iscomplex));
// TODO
//ADD A ISCOMPLEX ANALYSIS TO ISCOMPLEXINFOPROPOGATOR
}
示例12: arraySubsref
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public ValueSet<AggrValue<SimpleMatrixValue>> arraySubsref(Args<AggrValue<SimpleMatrixValue>> indizes) {
return ValueSet.<AggrValue<SimpleMatrixValue>>newInstance(new SimpleMatrixValue(null, this.getMatlabClass()));
}
示例13: arraySubsref
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public ValueSet<AggrValue<D>> arraySubsref(Args<AggrValue<D>> indizes) {
return ValueSet.<AggrValue<D>>newInstance(this); //TODO - error?
}
示例14: newValueSet
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
/**
* creates a value set with one constant primitive value
*/
public ValueSet<V> newValueSet(String symbolic, Constant constant){
return ValueSet.newInstance(newMatrixValue(symbolic, constant));
}
示例15: arraySubsref
import natlab.tame.valueanalysis.ValueSet; //导入方法依赖的package包/类
@Override
public ValueSet<AggrValue<SimpleMatrixValue>> arraySubsref(Args<AggrValue<SimpleMatrixValue>> indizes) {
return ValueSet.<AggrValue<SimpleMatrixValue>>newInstance(new SimpleMatrixValue(this.getMatlabClass()));
}