Return-Path: X-Original-To: apmail-flink-issues-archive@minotaur.apache.org Delivered-To: apmail-flink-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 9AF1E17FD3 for ; Wed, 29 Apr 2015 10:22:55 +0000 (UTC) Received: (qmail 3448 invoked by uid 500); 29 Apr 2015 10:10:23 -0000 Delivered-To: apmail-flink-issues-archive@flink.apache.org Received: (qmail 3408 invoked by uid 500); 29 Apr 2015 10:10:23 -0000 Mailing-List: contact issues-help@flink.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@flink.apache.org Delivered-To: mailing list issues@flink.apache.org Received: (qmail 3349 invoked by uid 99); 29 Apr 2015 10:10:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 10:10:23 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: message received from 54.164.171.186 which is an MX secondary for issues@flink.apache.org) Received: from [54.164.171.186] (HELO mx1-us-east.apache.org) (54.164.171.186) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 10:10:19 +0000 Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with SMTP id 3B9C243CDC for ; Wed, 29 Apr 2015 10:09:37 +0000 (UTC) Received: (qmail 98903 invoked by uid 99); 29 Apr 2015 08:33:06 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 29 Apr 2015 08:33:06 +0000 Date: Wed, 29 Apr 2015 08:33:06 +0000 (UTC) From: "ASF GitHub Bot (JIRA)" To: issues@flink.incubator.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (FLINK-1937) Cannot create SparseVector with only one non-zero element. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/FLINK-1937?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14518960#comment-14518960 ] ASF GitHub Bot commented on FLINK-1937: --------------------------------------- Github user tillrohrmann commented on the pull request: https://github.com/apache/flink/pull/636#issuecomment-97351925 Thanks for reviewing @chiwanpark. I'll merge it then. > Cannot create SparseVector with only one non-zero element. > ---------------------------------------------------------- > > Key: FLINK-1937 > URL: https://issues.apache.org/jira/browse/FLINK-1937 > Project: Flink > Issue Type: Bug > Components: Machine Learning Library > Reporter: Chiwan Park > Assignee: Till Rohrmann > Labels: ML > > I tried creating SparseVector with only one non-zero element. But I couldn't create it. Following code causes the problem. > {code} > val vec2 = SparseVector.fromCOO(3, (1, 1)) > {code} > I got a compile error following: > {code:none} > Error:(60, 29) overloaded method value fromCOO with alternatives: > (size: Int,entries: Iterable[(Int, Double)])org.apache.flink.ml.math.SparseVector > (size: Int,entries: (Int, Double)*)org.apache.flink.ml.math.SparseVector > cannot be applied to (Int, (Int, Int)) > val vec2 = SparseVector.fromCOO(3, (1, 1)) > ^ > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)