本文整理了Java中org.apache.mahout.math.Matrix.getFlavor()
方法的一些代码示例,展示了Matrix.getFlavor()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Matrix.getFlavor()
方法的具体详情如下:
包路径:org.apache.mahout.math.Matrix
类名称:Matrix
方法名:getFlavor
[英]Get matrix structural flavor (operations performance hints). This is optional operation, may throw java.lang.UnsupportedOperationException.
[中]获取矩阵结构风格(操作性能提示)。这是可选操作,可能会抛出java。lang.UnsupportedOperationException。
代码示例来源:origin: apache/mahout
@Override
public MatrixFlavor getFlavor() {
return matrix.getFlavor();
}
}
代码示例来源:origin: apache/mahout
@Override
public boolean isDense() {
return m.getFlavor().isDense();
}
};
代码示例来源:origin: apache/mahout
@Override
public BackEnum getBacking() {
return m.getFlavor().getBacking();
}
代码示例来源:origin: apache/mahout
@Override
public TraversingStructureEnum getStructure() {
TraversingStructureEnum flavor = m.getFlavor().getStructure();
switch (flavor) {
case COLWISE:
return TraversingStructureEnum.ROWWISE;
case SPARSECOLWISE:
return TraversingStructureEnum.SPARSEROWWISE;
case ROWWISE:
return TraversingStructureEnum.COLWISE;
case SPARSEROWWISE:
return TraversingStructureEnum.SPARSECOLWISE;
default:
return flavor;
}
}
代码示例来源:origin: org.apache.mahout/mahout-math
@Override
public MatrixFlavor getFlavor() {
return matrix.getFlavor();
}
}
代码示例来源:origin: org.apache.mahout/mahout-math
@Override
public boolean isDense() {
return m.getFlavor().isDense();
}
};
代码示例来源:origin: org.apache.mahout/mahout-math
@Override
public BackEnum getBacking() {
return m.getFlavor().getBacking();
}
代码示例来源:origin: org.apache.mahout/mahout-math
@Override
public TraversingStructureEnum getStructure() {
TraversingStructureEnum flavor = m.getFlavor().getStructure();
switch (flavor) {
case COLWISE:
return TraversingStructureEnum.ROWWISE;
case SPARSECOLWISE:
return TraversingStructureEnum.SPARSEROWWISE;
case ROWWISE:
return TraversingStructureEnum.COLWISE;
case SPARSEROWWISE:
return TraversingStructureEnum.SPARSECOLWISE;
default:
return flavor;
}
}
内容来源于网络,如有侵权,请联系作者删除!