本文整理汇总了Java中org.ojalgo.function.aggregator.AggregatorFunction.get方法的典型用法代码示例。如果您正苦于以下问题:Java AggregatorFunction.get方法的具体用法?Java AggregatorFunction.get怎么用?Java AggregatorFunction.get使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.ojalgo.function.aggregator.AggregatorFunction
的用法示例。
在下文中一共展示了AggregatorFunction.get方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: getDeterminant
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public N getDeterminant() {
final AggregatorFunction<N> tmpAggrFunc = this.aggregator().product();
this.getInPlace().visitDiagonal(0, 0, tmpAggrFunc);
if (myPivot.signum() == -1) {
return tmpAggrFunc.toScalar().negate().get();
} else {
return tmpAggrFunc.get();
}
}
示例2: getTrace
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public final ComplexNumber getTrace() {
final AggregatorFunction<ComplexNumber> tmpVisitor = ComplexAggregator.getSet().sum();
this.getEigenvalues().visitAll(tmpVisitor);
return tmpVisitor.get();
}
示例3: getDeterminant
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public N getDeterminant() {
final AggregatorFunction<N> tmpAggrFunc = this.aggregator().product();
this.getInPlace().visitDiagonal(0, 0, tmpAggrFunc);
return tmpAggrFunc.get();
}
示例4: getDeterminant
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public Double getDeterminant() {
final AggregatorFunction<Double> tmpAggrFunc = PrimitiveAggregator.getSet().product();
this.getR().visitDiagonal(0, 0, tmpAggrFunc);
return tmpAggrFunc.get();
}
示例5: getDeterminant
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public N getDeterminant() {
final AggregatorFunction<N> tmpAggrFunc = this.aggregator().product2();
this.getInPlace().visitDiagonal(0, 0, tmpAggrFunc);
return tmpAggrFunc.get();
}
示例6: getTrace
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public ComplexNumber getTrace() {
final AggregatorFunction<ComplexNumber> tmpVisitor = ComplexAggregator.getSet().sum();
this.getEigenvalues().visitAll(tmpVisitor);
return tmpVisitor.get();
}
示例7: aggregateAll
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public BigDecimal aggregateAll(final Aggregator aggregator) {
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
final AggregatorFunction<BigDecimal> tmpMainAggr = aggregator.getFunction(BigAggregator.getSet());
if (tmpColDim > AggregateAll.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int aFirst, final int aLimit) {
final AggregatorFunction<BigDecimal> tmpPartAggr = aggregator.getFunction(BigAggregator.getSet());
BigDenseStore.this.visit(tmpRowDim * aFirst, tmpRowDim * aLimit, 1, tmpPartAggr);
synchronized (tmpMainAggr) {
tmpMainAggr.merge(tmpPartAggr.get());
}
}
};
tmpConquerer.invoke(0, tmpColDim, AggregateAll.THRESHOLD);
} else {
BigDenseStore.this.visit(0, this.size(), 1, tmpMainAggr);
}
return tmpMainAggr.get();
}
示例8: aggregateAll
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public N aggregateAll(final Aggregator aggregator) {
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
final AggregatorFunction<N> tmpMainAggr = aggregator.getFunction(myFactory.aggregator());
if (tmpColDim > AggregateAll.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int aFirst, final int aLimit) {
final AggregatorFunction<N> tmpPartAggr = aggregator.getFunction(myFactory.aggregator());
GenericDenseStore.this.visit(tmpRowDim * aFirst, tmpRowDim * aLimit, 1, tmpPartAggr);
synchronized (tmpMainAggr) {
tmpMainAggr.merge(tmpPartAggr.get());
}
}
};
tmpConquerer.invoke(0, tmpColDim, AggregateAll.THRESHOLD);
} else {
GenericDenseStore.this.visit(0, this.size(), 1, tmpMainAggr);
}
return tmpMainAggr.get();
}
示例9: aggregateAll
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
default N aggregateAll(final Aggregator aggregator) {
final AggregatorFunction<N> tmpVisitor = this.physical().aggregator().get(aggregator);
this.visitAll(tmpVisitor);
return tmpVisitor.get();
}
示例10: aggregateColumn
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
default N aggregateColumn(final long row, final long col, final Aggregator aggregator) {
final AggregatorFunction<N> tmpVisitor = this.physical().aggregator().get(aggregator);
this.visitColumn(row, col, tmpVisitor);
return tmpVisitor.get();
}
示例11: aggregateDiagonal
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
default N aggregateDiagonal(final long row, final long col, final Aggregator aggregator) {
final AggregatorFunction<N> tmpVisitor = this.physical().aggregator().get(aggregator);
this.visitDiagonal(row, col, tmpVisitor);
return tmpVisitor.get();
}
示例12: aggregateRange
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
default N aggregateRange(final long first, final long limit, final Aggregator aggregator) {
final AggregatorFunction<N> tmpVisitor = this.physical().aggregator().get(aggregator);
this.visitRange(first, limit, tmpVisitor);
return tmpVisitor.get();
}
示例13: aggregateRow
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
default N aggregateRow(final long row, final long col, final Aggregator aggregator) {
final AggregatorFunction<N> tmpVisitor = this.physical().aggregator().get(aggregator);
this.visitRow(row, col, tmpVisitor);
return tmpVisitor.get();
}
示例14: aggregateAll
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public ComplexNumber aggregateAll(final Aggregator aggregator) {
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
final AggregatorFunction<ComplexNumber> tmpMainAggr = aggregator.getFunction(ComplexAggregator.getSet());
if (tmpColDim > AggregateAll.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int aFirst, final int aLimit) {
final AggregatorFunction<ComplexNumber> tmpPartAggr = aggregator.getFunction(ComplexAggregator.getSet());
ComplexDenseStore.this.visit(tmpRowDim * aFirst, tmpRowDim * aLimit, 1, tmpPartAggr);
synchronized (tmpMainAggr) {
tmpMainAggr.merge(tmpPartAggr.get());
}
}
};
tmpConquerer.invoke(0, tmpColDim, AggregateAll.THRESHOLD);
} else {
ComplexDenseStore.this.visit(0, this.size(), 1, tmpMainAggr);
}
return tmpMainAggr.get();
}
示例15: aggregateAll
import org.ojalgo.function.aggregator.AggregatorFunction; //导入方法依赖的package包/类
public Double aggregateAll(final Aggregator aggregator) {
final int tmpRowDim = myRowDim;
final int tmpColDim = myColDim;
final AggregatorFunction<Double> tmpMainAggr = aggregator.getFunction(PrimitiveAggregator.getSet());
if (tmpColDim > AggregateAll.THRESHOLD) {
final DivideAndConquer tmpConquerer = new DivideAndConquer() {
@Override
public void conquer(final int first, final int limit) {
final AggregatorFunction<Double> tmpPartAggr = aggregator.getFunction(PrimitiveAggregator.getSet());
PrimitiveDenseStore.this.visit(tmpRowDim * first, tmpRowDim * limit, 1, tmpPartAggr);
synchronized (tmpMainAggr) {
tmpMainAggr.merge(tmpPartAggr.get());
}
}
};
tmpConquerer.invoke(0, tmpColDim, AggregateAll.THRESHOLD);
} else {
PrimitiveDenseStore.this.visit(0, this.size(), 1, tmpMainAggr);
}
return tmpMainAggr.get();
}