new return struct
Project: http://git-wip-us.apache.org/repos/asf/incubator-spark/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-spark/commit/d2d5e5e0 Tree: http://git-wip-us.apache.org/repos/asf/incubator-spark/tree/d2d5e5e0 Diff: http://git-wip-us.apache.org/repos/asf/incubator-spark/diff/d2d5e5e0 Branch: refs/heads/master Commit: d2d5e5e062e8aab5c3f019fbf97ad5e673a3f75f Parents: 7f631dd Author: Reza Zadeh <riz...@gmail.com> Authored: Sat Jan 4 00:15:04 2014 -0800 Committer: Reza Zadeh <riz...@gmail.com> Committed: Sat Jan 4 00:15:04 2014 -0800 ---------------------------------------------------------------------- .../spark/mllib/linalg/SVDecomposedMatrix.scala | 33 ++++++++++++++++++++ 1 file changed, 33 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/incubator-spark/blob/d2d5e5e0/mllib/src/main/scala/org/apache/spark/mllib/linalg/SVDecomposedMatrix.scala ---------------------------------------------------------------------- diff --git a/mllib/src/main/scala/org/apache/spark/mllib/linalg/SVDecomposedMatrix.scala b/mllib/src/main/scala/org/apache/spark/mllib/linalg/SVDecomposedMatrix.scala new file mode 100644 index 0000000..c3ec428 --- /dev/null +++ b/mllib/src/main/scala/org/apache/spark/mllib/linalg/SVDecomposedMatrix.scala @@ -0,0 +1,33 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * contributor license agreements. See the NOTICE file distributed with + * this work for additional information regarding copyright ownership. + * The ASF licenses this file to You under the Apache License, Version 2.0 + * (the "License"); you may not use this file except in compliance with + * the License. You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +package org.apache.spark.mllib.linalg + +import org.apache.spark.rdd.RDD + +import org.apache.spark.linalg.MatrixEntry + +/** + * Class that represents the SV decomposition of a matrix + * + * @param U such that A = USV^T + * @param S such that A = USV^T + * @param V such that A = USV^T + */ +case class SVDecomposedMatrix(val U: RDD[MatrixEntry], + val S: RDD[MatrixEntry], + val V: RDD[MatrixEntry])
