diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntDoubleMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntDoubleMatrix.java index bfde0e6..94da9d1 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntDoubleMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntDoubleMatrix.java @@ -106,7 +106,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompIntDoubleMatrix res; if (op.isInplace()) { @@ -135,7 +135,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompIntDoubleMatrix res; if (op.isInplace()) { @@ -162,7 +162,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -194,7 +194,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntFloatMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntFloatMatrix.java index c0d6790..ffceafe 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntFloatMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntFloatMatrix.java @@ -106,7 +106,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompIntFloatMatrix res; if (op.isInplace()) { @@ -135,7 +135,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompIntFloatMatrix res; if (op.isInplace()) { @@ -162,7 +162,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -194,7 +194,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntIntMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntIntMatrix.java index cbf89c5..267a3a6 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntIntMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntIntMatrix.java @@ -106,7 +106,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompIntIntMatrix res; if (op.isInplace()) { @@ -135,7 +135,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompIntIntMatrix res; if (op.isInplace()) { @@ -162,7 +162,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -193,7 +193,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntLongMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntLongMatrix.java index 3fcec1f..cef9e1c 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntLongMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompIntLongMatrix.java @@ -106,7 +106,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompIntLongMatrix res; if (op.isInplace()) { @@ -135,7 +135,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompIntLongMatrix res; if (op.isInplace()) { @@ -162,7 +162,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -193,7 +193,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongDoubleMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongDoubleMatrix.java index b90fcc6..a4e5bbf 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongDoubleMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongDoubleMatrix.java @@ -107,7 +107,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompLongDoubleMatrix res; if (op.isInplace()) { @@ -136,7 +136,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompLongDoubleMatrix res; if (op.isInplace()) { @@ -163,7 +163,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -194,7 +194,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongFloatMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongFloatMatrix.java index a8475ec..cc082dd 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongFloatMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongFloatMatrix.java @@ -107,7 +107,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompLongFloatMatrix res; if (op.isInplace()) { @@ -136,7 +136,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompLongFloatMatrix res; if (op.isInplace()) { @@ -163,7 +163,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -195,7 +195,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongIntMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongIntMatrix.java index 280bbc0..d6dd0cc 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongIntMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongIntMatrix.java @@ -107,7 +107,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompLongIntMatrix res; if (op.isInplace()) { @@ -136,7 +136,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompLongIntMatrix res; if (op.isInplace()) { @@ -163,7 +163,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -194,7 +194,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongLongMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongLongMatrix.java index addaa05..9ab7321 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongLongMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBCompLongLongMatrix.java @@ -107,7 +107,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBCompLongLongMatrix res; if (op.isInplace()) { @@ -136,7 +136,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBCompLongLongMatrix res; if (op.isInplace()) { @@ -163,7 +163,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -195,7 +195,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntDoubleMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntDoubleMatrix.java index 896e2c6..a461bb3 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntDoubleMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntDoubleMatrix.java @@ -96,7 +96,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBIntDoubleMatrix res; if (op.isInplace()) { @@ -125,7 +125,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBIntDoubleMatrix res; if (op.isInplace()) { @@ -152,7 +152,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -183,7 +183,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntFloatMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntFloatMatrix.java index d6530c2..ed2ffc9 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntFloatMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntFloatMatrix.java @@ -96,7 +96,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBIntFloatMatrix res; if (op.isInplace()) { @@ -125,7 +125,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBIntFloatMatrix res; if (op.isInplace()) { @@ -152,7 +152,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -183,7 +183,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntIntMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntIntMatrix.java index d5d77be..33a7e86 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntIntMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntIntMatrix.java @@ -96,7 +96,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBIntIntMatrix res; if (op.isInplace()) { @@ -125,7 +125,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBIntIntMatrix res; if (op.isInplace()) { @@ -152,7 +152,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -183,7 +183,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntLongMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntLongMatrix.java index 2fc5f24..1bc923f 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntLongMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBIntLongMatrix.java @@ -96,7 +96,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBIntLongMatrix res; if (op.isInplace()) { @@ -125,7 +125,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBIntLongMatrix res; if (op.isInplace()) { @@ -152,7 +152,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -183,7 +183,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongDoubleMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongDoubleMatrix.java index 1146c62..ba651b9 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongDoubleMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongDoubleMatrix.java @@ -97,7 +97,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBLongDoubleMatrix res; if (op.isInplace()) { @@ -126,7 +126,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBLongDoubleMatrix res; if (op.isInplace()) { @@ -153,7 +153,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -184,7 +184,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongFloatMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongFloatMatrix.java index 4c830b8..28cd576 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongFloatMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongFloatMatrix.java @@ -97,7 +97,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBLongFloatMatrix res; if (op.isInplace()) { @@ -126,7 +126,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBLongFloatMatrix res; if (op.isInplace()) { @@ -153,7 +153,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -184,7 +184,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongIntMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongIntMatrix.java index 0191655..c00b88c 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongIntMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongIntMatrix.java @@ -97,7 +97,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBLongIntMatrix res; if (op.isInplace()) { @@ -126,7 +126,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBLongIntMatrix res; if (op.isInplace()) { @@ -153,7 +153,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -184,7 +184,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongLongMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongLongMatrix.java index 81a43e8..4759e4c 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongLongMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RBLongLongMatrix.java @@ -97,7 +97,7 @@ public Vector dot(Vector other) { } @Override - public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { + public RowBasedMatrix calculate(int rowId, Vector other, Binary op) { assert other != null; RBLongLongMatrix res; if (op.isInplace()) { @@ -126,7 +126,7 @@ public RowBasedMatrix calulate(int rowId, Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Vector other, Binary op) { + public RowBasedMatrix calculate(Vector other, Binary op) { assert other != null; RBLongLongMatrix res; if (op.isInplace()) { @@ -153,7 +153,7 @@ public RowBasedMatrix calulate(Vector other, Binary op) { } @Override - public RowBasedMatrix calulate(Matrix other, Binary op) { + public RowBasedMatrix calculate(Matrix other, Binary op) { assert other instanceof RowBasedMatrix; if (op.isInplace()) { @@ -184,7 +184,7 @@ public RowBasedMatrix calulate(Matrix other, Binary op) { } @Override - public RowBasedMatrix calulate(Unary op) { + public RowBasedMatrix calculate(Unary op) { if (op.isInplace()) { for (Vector vec : rows) { UnaryExecutor.apply(vec, op); diff --git a/src/main/java/com/tencent/angel/ml/math2/matrix/RowBasedMatrix.java b/src/main/java/com/tencent/angel/ml/math2/matrix/RowBasedMatrix.java index 79b290c..91ee895 100644 --- a/src/main/java/com/tencent/angel/ml/math2/matrix/RowBasedMatrix.java +++ b/src/main/java/com/tencent/angel/ml/math2/matrix/RowBasedMatrix.java @@ -51,13 +51,13 @@ public RowBasedMatrix(int matrixId, int clock, long cols, Vec[] rows) { this.cols = cols; } - public abstract RowBasedMatrix calulate(int rowId, Vector other, Binary op); + public abstract RowBasedMatrix calculate(int rowId, Vector other, Binary op); - public abstract RowBasedMatrix calulate(Vector other, Binary op); + public abstract RowBasedMatrix calculate(Vector other, Binary op); - public abstract RowBasedMatrix calulate(Matrix other, Binary op); + public abstract RowBasedMatrix calculate(Matrix other, Binary op); - public abstract RowBasedMatrix calulate(Unary op); + public abstract RowBasedMatrix calculate(Unary op); @Override public Vec getRow(int idx) { @@ -149,192 +149,192 @@ public Vector transDot(Vector other) { @Override public Matrix iadd(int rowId, Vector other) { - return calulate(rowId, other, new Add(true)); + return calculate(rowId, other, new Add(true)); } @Override public Matrix add(int rowId, Vector other) { - return calulate(rowId, other, new Add(false)); + return calculate(rowId, other, new Add(false)); } @Override public Matrix isub(int rowId, Vector other) { - return calulate(rowId, other, new Sub(true)); + return calculate(rowId, other, new Sub(true)); } @Override public Matrix sub(int rowId, Vector other) { - return calulate(rowId, other, new Sub(false)); + return calculate(rowId, other, new Sub(false)); } @Override public Matrix imul(int rowId, Vector other) { - return calulate(rowId, other, new Mul(true)); + return calculate(rowId, other, new Mul(true)); } @Override public Matrix mul(int rowId, Vector other) { - return calulate(rowId, other, new Mul(false)); + return calculate(rowId, other, new Mul(false)); } @Override public Matrix idiv(int rowId, Vector other) { - return calulate(rowId, other, new Div(true)); + return calculate(rowId, other, new Div(true)); } @Override public Matrix div(int rowId, Vector other) { - return calulate(rowId, other, new Div(false)); + return calculate(rowId, other, new Div(false)); } @Override public Matrix iaxpy(int rowId, Vector other, double aplha) { - return calulate(rowId, other, new Axpy(true, aplha)); + return calculate(rowId, other, new Axpy(true, aplha)); } @Override public Matrix axpy(int rowId, Vector other, double aplha) { - return calulate(rowId, other, new Axpy(false, aplha)); + return calculate(rowId, other, new Axpy(false, aplha)); } @Override public Matrix iadd(Vector other) { - return calulate(other, new Add(true)); + return calculate(other, new Add(true)); } @Override public Matrix add(Vector other) { - return calulate(other, new Add(false)); + return calculate(other, new Add(false)); } @Override public Matrix isub(Vector other) { - return calulate(other, new Sub(true)); + return calculate(other, new Sub(true)); } @Override public Matrix sub(Vector other) { - return calulate(other, new Sub(false)); + return calculate(other, new Sub(false)); } @Override public Matrix imul(Vector other) { - return calulate(other, new Mul(true)); + return calculate(other, new Mul(true)); } @Override public Matrix mul(Vector other) { - return calulate(other, new Mul(false)); + return calculate(other, new Mul(false)); } @Override public Matrix idiv(Vector other) { - return calulate(other, new Div(true)); + return calculate(other, new Div(true)); } @Override public Matrix div(Vector other) { - return calulate(other, new Div(false)); + return calculate(other, new Div(false)); } @Override public Matrix iaxpy(Vector other, double aplha) { - return calulate(other, new Axpy(true, aplha)); + return calculate(other, new Axpy(true, aplha)); } @Override public Matrix axpy(Vector other, double aplha) { - return calulate(other, new Axpy(false, aplha)); + return calculate(other, new Axpy(false, aplha)); } @Override public Matrix iadd(Matrix other) { - return calulate(other, new Add(true)); + return calculate(other, new Add(true)); } @Override public Matrix add(Matrix other) { - return calulate(other, new Add(false)); + return calculate(other, new Add(false)); } @Override public Matrix isub(Matrix other) { - return calulate(other, new Sub(true)); + return calculate(other, new Sub(true)); } @Override public Matrix sub(Matrix other) { - return calulate(other, new Sub(false)); + return calculate(other, new Sub(false)); } @Override public Matrix imul(Matrix other) { - return calulate(other, new Mul(true)); + return calculate(other, new Mul(true)); } @Override public Matrix mul(Matrix other) { - return calulate(other, new Mul(false)); + return calculate(other, new Mul(false)); } @Override public Matrix idiv(Matrix other) { - return calulate(other, new Div(true)); + return calculate(other, new Div(true)); } @Override public Matrix div(Matrix other) { - return calulate(other, new Div(false)); + return calculate(other, new Div(false)); } @Override public Matrix iaxpy(Matrix other, double aplha) { - return calulate(other, new Axpy(true, aplha)); + return calculate(other, new Axpy(true, aplha)); } @Override public Matrix axpy(Matrix other, double aplha) { - return calulate(other, new Axpy(false, aplha)); + return calculate(other, new Axpy(false, aplha)); } @Override public Matrix iadd(double x) { - return calulate(new SAdd(true, x)); + return calculate(new SAdd(true, x)); } @Override public Matrix add(double x) { - return calulate(new SAdd(false, x)); + return calculate(new SAdd(false, x)); } @Override public Matrix isub(double x) { - return calulate(new SSub(true, x)); + return calculate(new SSub(true, x)); } @Override public Matrix sub(double x) { - return calulate(new SSub(false, x)); + return calculate(new SSub(false, x)); } @Override public Matrix imul(double x) { - return calulate(new SMul(true, x)); + return calculate(new SMul(true, x)); } @Override public Matrix mul(double x) { - return calulate(new SMul(false, x)); + return calculate(new SMul(false, x)); } @Override public Matrix idiv(double x) { - return calulate(new SDiv(true, x)); + return calculate(new SDiv(true, x)); } @Override public Matrix div(double x) { - return calulate(new SDiv(false, x)); + return calculate(new SDiv(false, x)); } @Override diff --git a/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/BinaryMatrixExecutor.java b/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/BinaryMatrixExecutor.java index 40b1d1e..421456b 100644 --- a/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/BinaryMatrixExecutor.java +++ b/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/BinaryMatrixExecutor.java @@ -64,7 +64,7 @@ public static Matrix apply(Matrix mat, Vector v, int idx, boolean onCol, Binary return apply((BlasFloatMatrix) mat, (IntDummyVector) v, idx, onCol, op); } else if (mat instanceof RowBasedMatrix) { assert !onCol; - return ((RowBasedMatrix) mat).calulate(idx, v, op); + return ((RowBasedMatrix) mat).calculate(idx, v, op); } else { throw new MathException("The operation is not supported!"); } @@ -1661,7 +1661,7 @@ public static Matrix apply(Matrix mat, Vector v, boolean onCol, Binary op) { return apply((BlasFloatMatrix) mat, (IntDummyVector) v, onCol, op); } else if (mat instanceof RowBasedMatrix) { assert !onCol; - return ((RowBasedMatrix) mat).calulate(v, op); + return ((RowBasedMatrix) mat).calculate(v, op); } else { throw new MathException("The operation is not supported!"); } @@ -3611,7 +3611,7 @@ public static Matrix apply(Matrix mat1, boolean trans1, Matrix mat2, boolean tra } else if (mat1 instanceof BlasFloatMatrix && mat2 instanceof BlasFloatMatrix) { return apply((BlasFloatMatrix) mat1, trans1, (BlasFloatMatrix) mat2, trans2, op); } else if (mat1 instanceof RowBasedMatrix) { - return ((RowBasedMatrix) mat1).calulate(mat2, op); + return ((RowBasedMatrix) mat1).calculate(mat2, op); } else { throw new MathException("The operation is not supported!"); } diff --git a/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/UnaryMatrixExecutor.java b/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/UnaryMatrixExecutor.java index f975a8f..66bfe75 100644 --- a/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/UnaryMatrixExecutor.java +++ b/src/main/java/com/tencent/angel/ml/math2/ufuncs/executor/matrix/UnaryMatrixExecutor.java @@ -33,7 +33,7 @@ public static Matrix apply(Matrix mat, Unary op) { } else if (mat instanceof BlasFloatMatrix) { return apply((BlasFloatMatrix) mat, op); } else if (mat instanceof RowBasedMatrix) { - return ((RowBasedMatrix) mat).calulate(op); + return ((RowBasedMatrix) mat).calculate(op); } else { throw new MathException("The operation is not supported!"); }