当前位置: 首页>>代码示例>>Java>>正文


Java ValueSet.newInstance方法代码示例

本文整理汇总了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));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:9,代码来源:SimpleMatrixValuePropagator.java

示例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));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:9,代码来源:SimpleMatrixValuePropagator.java

示例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;
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:16,代码来源:CellValue.java

示例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)
					);
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:13,代码来源:BasicMatrixValue.java

示例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));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:9,代码来源:BasicMatrixValuePropagator.java

示例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));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:9,代码来源:BasicMatrixValuePropagator.java

示例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));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:14,代码来源:AdvancedMatrixValuePropagator.java

示例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));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:15,代码来源:AdvancedMatrixValuePropagator.java

示例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)
					);
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:13,代码来源:AdvancedMatrixValue.java

示例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)));
}
 
开发者ID:sshrdp,项目名称:mclab,代码行数:10,代码来源:BasicMatrixValue.java

示例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
}
 
开发者ID:sshrdp,项目名称:mclab,代码行数:13,代码来源:AdvancedMatrixValue.java

示例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()));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:5,代码来源:SimpleMatrixValue.java

示例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?
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:5,代码来源:StructValue.java

示例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));
}
 
开发者ID:Sable,项目名称:mclab-core,代码行数:7,代码来源:ValueFactory.java

示例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()));
}
 
开发者ID:sshrdp,项目名称:mclab,代码行数:5,代码来源:SimpleMatrixValue.java


注:本文中的natlab.tame.valueanalysis.ValueSet.newInstance方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。