本文整理匯總了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);
}