本文整理了Java中org.apache.mahout.math.Vector.isAddConstantTime()
方法的一些代码示例,展示了Vector.isAddConstantTime()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Vector.isAddConstantTime()
方法的具体详情如下:
包路径:org.apache.mahout.math.Vector
类名称:Vector
方法名:isAddConstantTime
[英]Return true iff adding a new (nonzero) element takes constant time for this vector.
[中]如果添加一个新的(非零)元素,则该向量需要恒定的时间。
代码示例来源:origin: apache/mahout
@Override
public boolean isAddConstantTime() {
return vector.isAddConstantTime();
}
}
代码示例来源:origin: apache/mahout
@Override
public boolean isAddConstantTime() {
return delegate.isAddConstantTime();
}
}
代码示例来源:origin: apache/mahout
@Override
public boolean isAddConstantTime() {
return vector.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isAddConstantTime() {
return delegate.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return x.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return !x.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return !x.isAddConstantTime() && !y.isDense();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return !f.isDensifying() && x.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return !x.isAddConstantTime() && !x.isDense();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return x.isAddConstantTime() && !y.isDense();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return x.isAddConstantTime() && !x.isDense();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return f.isLikeRightPlus() && y.isSequentialAccess() && !x.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isAddConstantTime() {
return (rowToColumn ? matrix.viewColumn(0) : matrix.viewRow(0)).isAddConstantTime();
}
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return !f.isDensifying() && !x.isAddConstantTime() && y.isSequentialAccess();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return !f.isDensifying() && x.isSequentialAccess() && y.isSequentialAccess() && !x.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return !f.isDensifying() && x.isSequentialAccess() && y.isSequentialAccess() && x.isAddConstantTime();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return x.isSequentialAccess() && y.isSequentialAccess() && x.isAddConstantTime()
&& !x.isDense() && !y.isDense();
}
代码示例来源:origin: apache/mahout
@Override
public boolean isValid(Vector x, Vector y, DoubleDoubleFunction f) {
return x.isSequentialAccess() && y.isSequentialAccess() && !x.isAddConstantTime() && !x.isDense() && !y.isDense();
}
代码示例来源:origin: apache/mahout
private static void createStubs(Vector v, Vector realV) {
expect(v.getLookupCost())
.andStubReturn(realV instanceof SequentialAccessSparseVector
? Math.round(Math.log(1000)) : realV.getLookupCost());
expect(v.getIteratorAdvanceCost())
.andStubReturn(realV.getIteratorAdvanceCost());
expect(v.isAddConstantTime())
.andStubReturn(realV.isAddConstantTime());
expect(v.isSequentialAccess())
.andStubReturn(realV.isSequentialAccess());
expect(v.isDense())
.andStubReturn(realV.isDense());
expect(v.getNumNondefaultElements())
.andStubReturn(realV.isDense() ? realV.size() : 1000);
expect(v.size())
.andStubReturn(realV.size());
}
代码示例来源:origin: apache/mahout
private static void createStubs(Vector v, Vector realV) {
expect(v.getLookupCost())
.andStubReturn(realV instanceof SequentialAccessSparseVector
? Math.round(Math.log(1000)) : realV.getLookupCost());
expect(v.getIteratorAdvanceCost())
.andStubReturn(realV.getIteratorAdvanceCost());
expect(v.isAddConstantTime())
.andStubReturn(realV.isAddConstantTime());
expect(v.isSequentialAccess())
.andStubReturn(realV.isSequentialAccess());
expect(v.isDense())
.andStubReturn(realV.isDense());
expect(v.getNumNondefaultElements())
.andStubReturn(realV.isDense() ? realV.size() : 1000);
expect(v.size())
.andStubReturn(realV.size());
}
内容来源于网络,如有侵权,请联系作者删除!