Unnecessary casts
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/math/trunk@800111 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
57cbd07fd1
commit
30f5dcb3a9
|
@ -238,7 +238,7 @@ public class OpenMapRealVector implements SparseRealVector, Serializable {
|
|||
*/
|
||||
public OpenMapRealVector add(OpenMapRealVector v) throws IllegalArgumentException{
|
||||
checkVectorDimensions(v.getDimension());
|
||||
OpenMapRealVector res = (OpenMapRealVector)copy();
|
||||
OpenMapRealVector res = copy();
|
||||
Iterator iter = v.getEntries().iterator();
|
||||
while (iter.hasNext()) {
|
||||
iter.advance();
|
||||
|
@ -1137,7 +1137,7 @@ public class OpenMapRealVector implements SparseRealVector, Serializable {
|
|||
*/
|
||||
public OpenMapRealVector subtract(OpenMapRealVector v) throws IllegalArgumentException{
|
||||
checkVectorDimensions(v.getDimension());
|
||||
OpenMapRealVector res = (OpenMapRealVector)copy();
|
||||
OpenMapRealVector res = copy();
|
||||
Iterator iter = v.getEntries().iterator();
|
||||
while (iter.hasNext()) {
|
||||
iter.advance();
|
||||
|
|
Loading…
Reference in New Issue