Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id C59AE200C59 for ; Mon, 17 Apr 2017 17:41:06 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id C42B0160BAB; Mon, 17 Apr 2017 15:41:06 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E3FB2160B9C for ; Mon, 17 Apr 2017 17:41:05 +0200 (CEST) Received: (qmail 95886 invoked by uid 500); 17 Apr 2017 15:41:04 -0000 Mailing-List: contact dev-help@systemml.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@systemml.incubator.apache.org Delivered-To: mailing list dev@systemml.incubator.apache.org Received: (qmail 95868 invoked by uid 99); 17 Apr 2017 15:41:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Apr 2017 15:41:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id BE9CBD12E4 for ; Mon, 17 Apr 2017 15:41:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.335 X-Spam-Level: *** X-Spam-Status: No, score=3.335 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, FORGED_HOTMAIL_RCVD2=1.187, FREEMAIL_ENVFROM_END_DIGIT=0.25, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=hotmail.com Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oSsJzlAyESzG for ; Mon, 17 Apr 2017 15:41:01 +0000 (UTC) Received: from APC01-HK2-obe.outbound.protection.outlook.com (mail-oln040092255084.outbound.protection.outlook.com [40.92.255.84]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with ESMTPS id 653095F576 for ; Mon, 17 Apr 2017 15:41:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hotmail.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=49T1eb6/3xxiVm7vVvsWPoZ4ERcFHg8F94Fa5ZdbVh0=; b=pkg0Ei/IDTJn7SNBRMBxeh6C21vsv3cqxqGE1798mZf8c4E+SFoNHw1g70Sl38MfT8CBY+8sNoFtUHEfwDaRPCBedH+4/DHXoLARgzv7A6ftdDufABxAOQxGPqnS/q5YDsH7RPNAHD0K2yD8FUdtPpQ4gOmPCU92CBS0HCBV3hmsXFSY32BPHtZA3cHiE2zjdUYpbfl5fUD/vM7VyneBkrev0Z6LI3vR5zwbIotcajiqaCFoSr6QpHY6+f/v1mc7z+fKg47Gk2Y9xPXX3NdVmbYp9106TbE2oYwLexjx4mp9/YekSJEd4zWaIz8U9SA1kgoUd8fsIjerZ/ixLFi+vw== Received: from HK2APC01FT026.eop-APC01.prod.protection.outlook.com (10.152.248.56) by HK2APC01HT136.eop-APC01.prod.protection.outlook.com (10.152.249.177) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.1019.14; Mon, 17 Apr 2017 15:40:52 +0000 Received: from PN1PR01MB0717.INDPRD01.PROD.OUTLOOK.COM (10.152.248.52) by HK2APC01FT026.mail.protection.outlook.com (10.152.248.174) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256_P256) id 15.1.1019.14 via Frontend Transport; Mon, 17 Apr 2017 15:40:52 +0000 Received: from PN1PR01MB0717.INDPRD01.PROD.OUTLOOK.COM ([10.174.145.142]) by PN1PR01MB0717.INDPRD01.PROD.OUTLOOK.COM ([10.174.145.142]) with mapi id 15.01.1034.012; Mon, 17 Apr 2017 15:40:51 +0000 From: arijit chakraborty To: "dev@systemml.incubator.apache.org" Subject: Re: SystemML query Thread-Topic: SystemML query Thread-Index: AQHStHCXsBQsVOM3BkmcM+K+X0/K9KHDjnKAgAFT8OaAACC0gIAB5gilgALKsvE= Date: Mon, 17 Apr 2017 15:40:51 +0000 Message-ID: References: ,, In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: systemml.incubator.apache.org; dkim=none (message not signed) header.d=none;systemml.incubator.apache.org; dmarc=none action=none header.from=hotmail.com; x-incomingtopheadermarker: OriginalChecksum:DD9196BB101CC86BC659FAC91D9AC0978C4B7F24ADA4F96982F07B785D97FA0E;UpperCasedChecksum:646555DE0BB7FE08948C27149A702CB3ED03FAC035ACDD2DC502ADE4D1725DE5;SizeAsReceived:8223;Count:42 x-ms-exchange-messagesentrepresentingtype: 1 x-tmn: [4pSmFry39dAJXsSh2LiW9OmCHiDPtmK9] x-microsoft-exchange-diagnostics: 1;HK2APC01HT136;5:TJOhYYOjNEIpBuof/Gfmc0uShi12WB2Rz2k++0wtBSw+qeHNCfFTSiMpkvehSMlUIy2B6IWZwY2wU57/Vjdg8jufPliUOjXkRB+kcMvqeDnyw1jgSk7TOb5dOP5+enwQTpytgBhNc/coTJd8BBQvLA==;24:p+prWcpAKypLVj7vIQ5kfTYwYrtAaMANXRoGIU7BtB52/Fct/esh/5JWgBOSX3Ki/TwpCamL4Fzh5OE762EMZ+x9BPGCAUGgrfQI91WAIHE=;7:w6s6nZzi/YxcEGuMOtO/uzCsRNvTTf5EoeARxmVsdVWois5yqbo0KfkUDzoojgYxl0LbuxI+z20lgubO80VR5yXzEJP58JfqVcT0uofOs0O0OyVaz4xRplrzdTrrXoBpn+1+hNlSum4HpY2dLA9462CKKGWp2uHx7lZEnUcj7sryp4ZivRw9HzNXm9jpGQvf4VRZgUkPHyZVUvn+IUs5RuhiT11EEZ7AcVQQIgrwN/CmY8m+oZWfXDHE5AsehRvLn2X/TI9NsZAyvJSGMS7HcDBzAPWDr20KdAxDnNjMODgwyfcd+1aGKzYbpaPJQ76S x-incomingheadercount: 42 x-eopattributedmessage: 0 x-forefront-antispam-report: EFV:NLI;SFV:NSPM;SFS:(7070007)(98901004);DIR:OUT;SFP:1901;SCL:1;SRVR:HK2APC01HT136;H:PN1PR01MB0717.INDPRD01.PROD.OUTLOOK.COM;FPR:;SPF:None;LANG:en; x-ms-office365-filtering-correlation-id: e34b4679-e606-4492-760e-08d485a820e6 x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(201702061074)(5061506573)(5061507331)(1603103135)(2017031320274)(2017031324274)(2017031323274)(2017031322274)(1601125374)(1603101448)(1701031045);SRVR:HK2APC01HT136; x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(444000031);SRVR:HK2APC01HT136;BCL:0;PCL:0;RULEID:;SRVR:HK2APC01HT136; x-forefront-prvs: 02801ACE41 spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: multipart/alternative; boundary="_000_PN1PR01MB071793A30DE50E3AEB58CF6BA3060PN1PR01MB0717INDP_" MIME-Version: 1.0 X-OriginatorOrg: hotmail.com X-MS-Exchange-CrossTenant-originalarrivaltime: 17 Apr 2017 15:40:51.8606 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Internet X-MS-Exchange-CrossTenant-id: 84df9e7f-e9f6-40af-b435-aaaaaaaaaaaa X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2APC01HT136 archived-at: Mon, 17 Apr 2017 15:41:07 -0000 --_000_PN1PR01MB071793A30DE50E3AEB58CF6BA3060PN1PR01MB0717INDP_ Content-Type: text/plain; charset="Windows-1252" Content-Transfer-Encoding: quoted-printable Hi, I've an issue regarding finding and removing the duplicate in a column/ row= of a matrix. I'm tried this method: duplicate_matrix =3D matrix("1 2 3 3 3 4 5 6", rows =3D 8, cols =3D 1) dup_ind =3D matrix(1,rows =3D nrow(duplicate_matrix),cols =3D 1) a =3D nrow(dup_ind) b =3D nrow(duplicate_matrix) #Clumsy Unique. Can we chec= k with the systemml guy? for(i in 2:nrow(duplicate_matrix)){ if(as.scalar(duplicate_matrix[i,]) =3D=3D as.scalar(duplicate_matrix[i-= 1,]) ){ dup_ind[i,] =3D 0 } } My question is, is there any better way of doing it? In systemML, we don't = have method to find/remove/ count duplicate values. Thank you! Arijit ________________________________ From: Niketan Pansare Sent: Friday, April 14, 2017 9:14 PM To: arijit chakraborty Cc: Matthias Boehm1; Berthold Reinwald Subject: Re: SystemML query Thanks Arijit. I appreciate your feedback. I will convey your concerns to o= ther committers and urge them to be active on stackoverflow too. If you hav= e already posted questions on stackoverflow, please send me the links and I= will do my best to answer them :) On Apr 14, 2017, at 6:50 AM, arijit chakraborty > wrote: Thanks a lot Niketan! I didn=92t expect you to reply my question. Actually = I was not sure if I can post question in that forum. And hardly people repl= y on systemML in stackoverflow. But from now on I=92ll surely post my questions there. I=92ve few more ques= tions. Thanks a lot again! Regards, Arijit Sent from Mail for Window= s 10 From: Niketan Pansare Sent: Thursday, April 13, 2017 11:01 PM To: arijit chakraborty Subject: Re: SystemML query Hi Arijit, I am happy to help, however I would recommend to post question (along with = answer) on our mailing list dev@systemml.incubator.apache.org as your question may help others as well :) X =3D matrix(1, rows =3D 1, cols =3D 100) J =3D matrix("10 20 25 26 28 31 50 67 79", rows=3D1, cols=3D9) J =3D t(J) # Make J a column vector I =3D matrix(1, rows=3Dnrow(J), cols=3D1) V =3D matrix(10, rows=3Dnrow(J), cols=3D1) output =3D table(I, J, V) Thanks, Niketan Pansare IBM Almaden Research Center E-mail: npansar At us.ibm.com http://researcher.watson.ibm.com/researcher/view.php?person=3Dus-npansar arijit chakraborty ---04/13/2017 09:20:38 AM---Hi Niketan, Hop= e you are keeping well! From: arijit chakraborty > To: Niketan Pansare/Almaden/IBM@IBMUS Date: 04/13/2017 09:20 AM Subject: SystemML query Hi Niketan, Hope you are keeping well! I got stuck in a systemML coding problem and don't know where to approach. = So mailing you. I know this is not fair, and will not repeat in future. My question is the following: I've a matrix of 1 row and 100 columns, matrix(1, rows =3D 1, cols =3D 100)= . I've another column matrix of form matrix("10 20 25 26 28 31 50 67 79", r= ows =3D 1, cols =3D 9). I want to add some value say 10, to 100 column matr= ix using the values of second matrix position indicator. Rest of the column= s' values remain the same How to do it here? Thanks a lot! Regards, Arijit --_000_PN1PR01MB071793A30DE50E3AEB58CF6BA3060PN1PR01MB0717INDP_--