+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
4.0.0
io.github.BeardedManZhao
diff --git a/src_code/src/main/java/zhao/algorithmMagic/operands/vector/SparkVector.scala b/src_code/src/main/java/zhao/algorithmMagic/operands/vector/SparkVector.scala
index 416767a..dc36864 100644
--- a/src_code/src/main/java/zhao/algorithmMagic/operands/vector/SparkVector.scala
+++ b/src_code/src/main/java/zhao/algorithmMagic/operands/vector/SparkVector.scala
@@ -107,6 +107,21 @@ final class SparkVector(sparkContext: SparkContext, vector: org.apache.spark.mll
else throw new OperatorOperationException("'DoubleVector1 add DoubleVector2' 时,两个'DoubleVector'的向量所包含的数量不同,DoubleVector1=[" + numberOfDimensions1 + "],DoubleVector2=[" + numberOfDimensions2 + "]\n" + "When 'DoubleVector1 add DoubleVector2', the two vectors of 'DoubleVector' contain different quantities, DoubleVector1=[" + numberOfDimensions1 + "], DoubleVector2=[" + numberOfDimensions2 + "]")
}
+ /**
+ *
+ * @return 将本对象中存储的向量序列数组拷贝到一个新数组并将新数组返回,这里返回的是一个新数组,支持修改等操作。
+ *
+ * Copy the vector sequence array stored in this object to a new array and return the new array. Here, a new array is returned, which supports modification and other operations.
+ */
+ override def copyToNewArray(): Array[Double] = vector.toArray
+
+ /**
+ * @return 向量中包含的维度数量
+ *
+ * the number of dimensions contained in the vector
+ */
+ override def getNumberOfDimensions: Int = size
+
/**
* 在两个操作数之间做差的方法,具体用法请参阅API说明。
*
diff --git a/src_code/src/main/resources/log4j2.xml b/src_code/src/main/resources/log4j2.xml
index f839453..f109e0a 100644
--- a/src_code/src/main/resources/log4j2.xml
+++ b/src_code/src/main/resources/log4j2.xml
@@ -15,7 +15,7 @@
-
+
@@ -25,7 +25,7 @@
-
+
@@ -34,8 +34,8 @@
-
-
+
+
\ No newline at end of file