{"id":3093,"date":"2019-03-25T17:42:40","date_gmt":"2019-03-25T20:42:40","guid":{"rendered":"http:\/\/xexeu.elipse.com.br\/pt\/using-matrix-data-in-elipse-e3\/"},"modified":"2020-01-20T17:16:24","modified_gmt":"2020-01-20T20:16:24","slug":"using-matrix-data-in-elipse-e3","status":"publish","type":"post","link":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/","title":{"rendered":"Using matrix data in Elipse E3."},"content":{"rendered":"<div align=\"justify\">\n<p>This article illustrates how to work and perform operations with data grouped in matrices in Elipse E3.<\/p>\n<p>To operate with matrices, use <b>matriz.lib<\/b> library. This library was created in order to have aritmetic operations performed in a matrix. The library basically consists of an XObject called <b>XOArray <\/b>containing several properties. This XObject&#8217;s properties list is as follows:<\/p>\n<p><i><b>Lines<\/b><\/i>: Displays the number of matrix&#8217;s lines in the XObject.<\/p>\n<p><i><b>Columns<\/b><\/i>: Displays the number of matrix&#8217;s columns in the XObject.<\/p>\n<p><i><b>ArrayData<\/b><\/i>: Stores the whole matrix. It is saved and updated whenever the matrix is generated or edited. This property contains a script that attributes values automatically to <i>Lines <\/i>and <i>Columns <\/i>properties.<\/p>\n<p><b><i>SetLine1 <\/i>and <i>SetLine2<\/i><\/b>: Used for operations with a specific number of lines; for example, to return values from Line 1 to Line 2.<\/p>\n<p><b><i>SetColumn1 <\/i>and <i>SetColumn2<\/i><\/b>: Used for operations with a specific number of columns; for example, to return values from Column 1 to Column 2.<\/p>\n<p><i><b>Result<\/b><\/i>: Returns the operations return&#8217;s value in the XObject.<\/p>\n<p><i><b>NewValue<\/b><\/i>: Used for storing a new value that was used for setting a value in the matrix.<\/p>\n<p><i><b>ErrorMsg<\/b><\/i>: Returns error messages; for example, if a value outside the valid range is attributed to <i>SetLine1<\/i>, the property will return the &#8220;LINE1 number invalid&#8221; string.<\/p>\n<p><i><b>Operation<\/b><\/i>: All operations with matrices are performed in this property. The operation is selected from a list of numbers linked to the property, as follows:<\/p>\n<ul>\n<li><u><b>Sum from a specific area<\/b><\/u>: Sums a specific amount of fields. To do so, associate values to <i>SetLine1<\/i>, <i>SetLine2<\/i>, <i>SetColumn1<\/i>, <i>SetColumn2 <\/i>properties, which will represent the sum&#8217;s limits. To perform this operation, add <b>1<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Average from the whole area<\/b><\/u>: Calculates the average from a whole area in the matrix. Calcula a m\u00e9dia de toda a regi\u00e3o da matriz. To perform this operation, add <b>2<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Set<\/b><\/u>: Sets a value to a desired field. To do so, associate the desired line&#8217;s and column&#8217;s values to <i>SetLine1<\/i>, <i>SetColumn1 <\/i>and <i>NewValue <\/i>properties. To perform this operation, add <b>3<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Sum from the whole area<\/b><\/u>: Sums the whole matrix&#8217;s area. To perform this operation, add <b>4<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Search<\/b><\/u>: Searches a desired field&#8217;s value. To do so, associate the desired line&#8217;s and column&#8217;s values to <i>SetLine1 <\/i>and\u00a0 <i>SetColumn1 <\/i>properties. To perform this operation, add <b>5<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Sort out column in ascending order<\/b><\/u>: Sorts out the values on a column in ascending order. To do so, associate the column&#8217;s value to <i>SetColumn1 <\/i>property. To perform this operation, add <b>6<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Sort out column in descending order<\/b><\/u>: Sorts out the values on a column in descending order. To do so, associate the column&#8217;s value to <i>SetColumn1 <\/i>property. To perform this operation, add <b>7<\/b> to <i>Operation<\/i> property.<\/li>\n<li><b><u>Switch column<\/u>s<\/b>: Switches values between two columns. To do so, associate the columns&#8217; values to <i>SetColumn1 <\/i>and <i>SetColumn2 <\/i>properties. To perform this operation, add <b>8<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Switch lines<\/b><\/u>: Switches values between two lines. To do so, associate the lines&#8217; values to <i>SetLine1 <\/i>and <i>SetLine2 <\/i>properties. To perform this operation, add <b>9<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Sort out line in ascending order<\/b><\/u>: Sorts out the values on a line in ascending order. To do so, associate the line&#8217;s value to <i>SetLine1 <\/i>property. To perform this operation, add <b>10<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Sort out line in descending order<\/b><\/u>: Sorts out the values on a line in descending order. To do so, associate the line&#8217;s value to <i>SetLine1 <\/i>property. To perform this operation, add <b>11<\/b> to <i>Operation <\/i>property.<\/li>\n<li><u><b>Average from a specific area<\/b><\/u>: Calculates the area from a specific amount of fields. To do so, associate the average limit values to <i>SetLine1<\/i>, <i>SetLine2<\/i>, <i>SetColumn1<\/i>, <i>SetColumn2 <\/i>properties. These values stand for the average&#8217;s limits; for example, the sums of line 1 to line 2, and of column 1 to column 2. To perform this operation, add <b>12<\/b> to <i>Operation <\/i>property.<\/li>\n<\/ul>\n<p>This library contains an XControl called <b>XCArraySample<\/b>, which is used for performing the operations in the matrix&#8217;s screen. In this XControl, you can create a matrix on screen and perform the desired operations. The figure below illustrates the XControl&#8217;s interface:<\/p>\n<div align=\"center\"><img loading=\"lazy\" title=\"\" src=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4774\/Figura%201.jpg\" alt=\"\" width=\"216\" height=\"466\" align=\"Baseline\" border=\"0\" \/><\/div>\n<p>The <b>Create ArrayData<\/b> button is responsible for creating the matrix, record it in the XObject, and recreate the setpoint on screen with each value&#8217;s time. The uppermost display shows the value of <i>Result <\/i>property, that is, it returns the operations&#8217; results. The lowermost display shows the value of <i>ErrorMsg <\/i>property, that is, it returns the error messages. The other buttons just attribute the corresponding number to <i>Operation <\/i>variable and perform the operation on screen. All functionalities from <b>XOArray <\/b>(XObject) can be viewed from <b>XCArraySample <\/b>(XControl).<\/p>\n<p>Attached to this article is a demo application that demonstrates the library previously described.<\/p>\n<\/div>\n<h3>Attachments:<\/h3>\n<p><a href=\"\/wp-content\/uploads\/2019\/03\/4774-1.zip\">4774<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article illustrates how to work and perform operations with data grouped in matrices in Elipse E3. To operate with matrices, use matriz.lib library. This library was created in order&hellip;<\/p>\n","protected":false},"author":13,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0},"categories":[763],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v19.8 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Using matrix data in Elipse E3. - Elipse Knowledgebase<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Using matrix data in Elipse E3.\" \/>\n<meta property=\"og:description\" content=\"This article illustrates how to work and perform operations with data grouped in matrices in Elipse E3. To operate with matrices, use matriz.lib library. This library was created in order&hellip;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/\" \/>\n<meta property=\"og:site_name\" content=\"Elipse Knowledgebase\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/www.facebook.com\/elipsesoftware\" \/>\n<meta property=\"article:published_time\" content=\"2019-03-25T20:42:40+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-01-20T20:16:24+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4774\/Figura%201.jpg\" \/>\n<meta name=\"author\" content=\"Eduardo Grazziotin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Eduardo Grazziotin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/\"},\"author\":{\"name\":\"Eduardo Grazziotin\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/f9fc2442228f8cc06308387a6725ef03\"},\"headline\":\"Using matrix data in Elipse E3.\",\"datePublished\":\"2019-03-25T20:42:40+00:00\",\"dateModified\":\"2020-01-20T20:16:24+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/\"},\"wordCount\":771,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"articleSection\":[\"Scripts\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/\",\"url\":\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/\",\"name\":\"[:pt]Using matrix data in Elipse E3.[:] - Elipse Knowledgebase\",\"isPartOf\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#website\"},\"datePublished\":\"2019-03-25T20:42:40+00:00\",\"dateModified\":\"2020-01-20T20:16:24+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"In\u00edcio\",\"item\":\"https:\/\/kb.elipse.com.br\/en\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Using matrix data in Elipse E3.\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/kb.elipse.com.br\/#website\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"name\":\"Elipse Knowledgebase\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/kb.elipse.com.br\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/kb.elipse.com.br\/#organization\",\"name\":\"Elipse Software\",\"url\":\"https:\/\/kb.elipse.com.br\/\",\"sameAs\":[\"http:\/\/www.facebook.com\/elipsesoftware\"],\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"contentUrl\":\"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png\",\"width\":161,\"height\":58,\"caption\":\"Elipse Software\"},\"image\":{\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/f9fc2442228f8cc06308387a6725ef03\",\"name\":\"Eduardo Grazziotin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/47913ac4c8f427d44c6391bff49b275f?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/47913ac4c8f427d44c6391bff49b275f?s=96&d=mm&r=g\",\"caption\":\"Eduardo Grazziotin\"},\"url\":\"https:\/\/kb.elipse.com.br\/en\/author\/eduardo\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Using matrix data in Elipse E3. - Elipse Knowledgebase","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/","og_locale":"en_US","og_type":"article","og_title":"[:pt]Using matrix data in Elipse E3.[:] - Elipse Knowledgebase","og_description":"This article illustrates how to work and perform operations with data grouped in matrices in Elipse E3. To operate with matrices, use matriz.lib library. This library was created in order&hellip;","og_url":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/","og_site_name":"Elipse Knowledgebase","article_publisher":"http:\/\/www.facebook.com\/elipsesoftware","article_published_time":"2019-03-25T20:42:40+00:00","article_modified_time":"2020-01-20T20:16:24+00:00","og_image":[{"url":"http:\/\/kb.elipse.com.br\/pt-br\/images\/ID4774\/Figura%201.jpg"}],"author":"Eduardo Grazziotin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Eduardo Grazziotin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#article","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/"},"author":{"name":"Eduardo Grazziotin","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/f9fc2442228f8cc06308387a6725ef03"},"headline":"Using matrix data in Elipse E3.","datePublished":"2019-03-25T20:42:40+00:00","dateModified":"2020-01-20T20:16:24+00:00","mainEntityOfPage":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/"},"wordCount":771,"commentCount":0,"publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"articleSection":["Scripts"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/","url":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/","name":"[:pt]Using matrix data in Elipse E3.[:] - Elipse Knowledgebase","isPartOf":{"@id":"https:\/\/kb.elipse.com.br\/#website"},"datePublished":"2019-03-25T20:42:40+00:00","dateModified":"2020-01-20T20:16:24+00:00","breadcrumb":{"@id":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/kb.elipse.com.br\/en\/using-matrix-data-in-elipse-e3\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"In\u00edcio","item":"https:\/\/kb.elipse.com.br\/en\/"},{"@type":"ListItem","position":2,"name":"Using matrix data in Elipse E3."}]},{"@type":"WebSite","@id":"https:\/\/kb.elipse.com.br\/#website","url":"https:\/\/kb.elipse.com.br\/","name":"Elipse Knowledgebase","description":"","publisher":{"@id":"https:\/\/kb.elipse.com.br\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/kb.elipse.com.br\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/kb.elipse.com.br\/#organization","name":"Elipse Software","url":"https:\/\/kb.elipse.com.br\/","sameAs":["http:\/\/www.facebook.com\/elipsesoftware"],"logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/","url":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","contentUrl":"https:\/\/kb.elipse.com.br\/wp-content\/uploads\/2019\/05\/schererelipse-com-br\/logoElipse.png","width":161,"height":58,"caption":"Elipse Software"},"image":{"@id":"https:\/\/kb.elipse.com.br\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/f9fc2442228f8cc06308387a6725ef03","name":"Eduardo Grazziotin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/kb.elipse.com.br\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/47913ac4c8f427d44c6391bff49b275f?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/47913ac4c8f427d44c6391bff49b275f?s=96&d=mm&r=g","caption":"Eduardo Grazziotin"},"url":"https:\/\/kb.elipse.com.br\/en\/author\/eduardo\/"}]}},"_links":{"self":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3093"}],"collection":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/users\/13"}],"replies":[{"embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/comments?post=3093"}],"version-history":[{"count":2,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3093\/revisions"}],"predecessor-version":[{"id":4206,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/posts\/3093\/revisions\/4206"}],"wp:attachment":[{"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/media?parent=3093"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/categories?post=3093"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kb.elipse.com.br\/en\/wp-json\/wp\/v2\/tags?post=3093"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}