本文整理汇总了Java中org.ojalgo.ProgrammingError.throwIfNotEqualDimensions方法的典型用法代码示例。如果您正苦于以下问题:Java ProgrammingError.throwIfNotEqualDimensions方法的具体用法?Java ProgrammingError.throwIfNotEqualDimensions怎么用?Java ProgrammingError.throwIfNotEqualDimensions使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.ojalgo.ProgrammingError
的用法示例。
在下文中一共展示了ProgrammingError.throwIfNotEqualDimensions方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: add
import org.ojalgo.ProgrammingError; //导入方法依赖的package包/类
public I add(final BasicMatrix addend) {
ProgrammingError.throwIfNotEqualDimensions(myStore, addend);
final PhysicalStore<N> retVal = myStore.physical().copy(addend);
retVal.modifyMatching(myStore, myStore.physical().function().add());
return this.getFactory().instantiate(retVal);
}
示例2: divideElements
import org.ojalgo.ProgrammingError; //导入方法依赖的package包/类
public I divideElements(final Access2D<?> divisor) {
ProgrammingError.throwIfNotEqualDimensions(myStore, divisor);
final PhysicalStore<N> retVal = myStore.physical().copy(divisor);
retVal.modifyMatching(myStore, myStore.physical().function().divide());
return this.getFactory().instantiate(retVal);
}
示例3: multiplyElements
import org.ojalgo.ProgrammingError; //导入方法依赖的package包/类
public I multiplyElements(final Access2D<?> multiplicand) {
ProgrammingError.throwIfNotEqualDimensions(myStore, multiplicand);
final PhysicalStore<N> retVal = myStore.physical().copy(multiplicand);
retVal.modifyMatching(myStore, myStore.physical().function().multiply());
return this.getFactory().instantiate(retVal);
}
示例4: subtract
import org.ojalgo.ProgrammingError; //导入方法依赖的package包/类
public I subtract(final BasicMatrix subtrahend) {
ProgrammingError.throwIfNotEqualDimensions(myStore, subtrahend);
final PhysicalStore<N> retVal = myStore.physical().copy(subtrahend);
retVal.modifyMatching(myStore, myStore.physical().function().subtract());
return this.getFactory().instantiate(retVal);
}