LAVA Forums Buy cool LAVA gear Forums RSS Feed

Welcome Guest ( Log In | Register )

> Related links

Check out our XNodes Code Repository Files and visit our LabVIEW Wiki XNodes Portal


Tags
(This content has not been tagged yet)
 
Reply to this topic Start new topic
> Coding challenge - XNode Array operations
Tomi Maila
post May 23 2007, 06:31 PM
Post #1


Drawing Tool - LVOOP example application
*****

Premium Member
Posts: 1184
Joined: 29-January 06
From: Helsinki
Member No.: 4014
Using LabVIEW Since:2004
LV:8.5.1 ,8.2.1 ,7.1.1
Finland Nothing Selected Nothing Selected My Blog


Hi all,

Do you want to learn the secrets of XNodes? What would be a better way than playing around yourself? I challenge everybody to code multi-dimensional array operations that accept any kind of array of any rank and datatype as input.

I was thinking of following two operations but you can also surprise me with some nice ideas.
  1. Array size Xnode that always returns array size as 1d I32 array. Each element of the output array is a dimensionality of each dimension. If the input is a scalar that is not an array, an empty 1d I32 array is returned.
  2. Multidimensional transpose array. The transpose array takes any array or scalar as first input. Second input is wanted dimension order of dimensions as I32 array. The transpose array returns a transposed array. It either makes it in-place or creates only one buffer copy and places elements to that buffer copy in-place. Too long dimension order inputs are allowed and trucated to the length of the array. The dimension order input may be shorter than the rank of an array in which case the rest of the dimensions will be assumed to be in order from lowest to highest. For example if the dimension order input is {0,2} for a 4 dimensional array the order of dimensions should be {0,2,1,3}. An error-in and error-out are required to return an error when the dimension order input is invalid i.e. contains dimensions that are non-existent for input array.
As an award I'll help the winner(s) to transform the library a commercial quality OpenG libraries under BSD license (if the rest of OpenG community has no objections). If the quality of the XNodes is not high enough, then there will be no winenr.

*Read, I'd do these by myself but I'm too busy so I try to leverage the power of LAVA*

--------------------
Tomi Maila



Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ad
post May 23 2007, 06:31 PM
Post #















Tags
(This content has not been tagged yet)
Go to the top of the page
Quote Post
Michael_Aivaliot...
post May 23 2007, 06:41 PM
Post #2


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2402
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


QUOTE (Tomi Maila @ May 23 2007, 11:31 AM) *
*Read, I'd do these by myself but I'm too busy so I try to leverage the power of LAVA*
Thank you Tomi for supporting LAVA with this challenge.

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Darren
post May 23 2007, 07:00 PM
Post #3


Very Active
***

NI
Posts: 219
Joined: 14-March 06
From: Austin, TX
Member No.: 4441
Using LabVIEW Since:1999
LV:8.6 ,8.5 ,8.0
us_texas United States Nothing Selected


QUOTE (Tomi Maila @ May 23 2007, 01:31 PM) *
Array size Xnode that always returns array size as 1d I32 array. Each element of the output array is a dimensionality of each dimension. If the input is a scalar that is not an array, an empty 1d I32 array is returned.

The feature I've been wanting that would be well-suited for one of these mythical "XNodes" would be a growable Array Size function, that returns 'n' scalar "dimension size" outputs, where 'n' is the number of dimensions of the array. I would much prefer this to the current method of dropping an Array Size and an Index Array.

-D


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Gavin Burnell
post May 23 2007, 09:16 PM
Post #4


Very Active
***

Premium Member
Posts: 121
Joined: 21-January 06
From: Leeds, UK
Member No.: 3951
Using LabVIEW Since:1994
LV:8.5.1 ,8.6 ,8.2.1
United Kingdom uk_yorkshire Nothing Selected


QUOTE (Darren @ May 23 2007, 08:00 PM) *
The feature I've been wanting that would be well-suited for one of these mythical "XNodes" would be a growable Array Size function, that returns 'n' scalar "dimension size" outputs, where 'n' is the number of dimensions of the array. I would much prefer this to the current method of dropping an Array Size and an Index Array.

-D


The feature that I have already implemented as an XNode returns takes an n-dimension array and a scalar x and returns the (x+1)'th dimension of the array or -1 if x<0 or x>n-1. Fairly elementary stuff, but I got tired of wiring array-dimension and then index array together. It hadn't occurred to me to make it growable - but then so far I've kept my XNodes nice and simple and just made non-resizable ones :-).

--------------------
Gavin Burnell
Lecturer and EPSRC Advanced Research Fellow
School Physics and Astronomy
University of Leeds, UK.


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Ton
post May 24 2007, 06:07 AM
Post #5


CCT It
*****

Premium Member
Posts: 1393
Joined: 13-June 05
From: Woerden, Netherlands
Member No.: 2399
Using LabVIEW Since:2001
LV:8.5.1 ,6.1 ,8.2.1
Netherlands hol_utrecht Nothing Selected My Blog My Gallery


Yesterday I discussed with a colleague of mine the need of an array XControl.
Currently editing an array is very cumbersome, for instance a cluster with several elements in an array is not editable with just the keyboard...
But AFAIK has the XControl no polymorphic abilities sad.gif

Ton

--------------------
Certified LabVIEW Developer
Shouldn't you be programming a Code Repository solution?


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post
Michael_Aivaliot...
post Jul 13 2007, 10:49 PM
Post #6


Confucius say: Crowded elevator always smell different to midget
Group Icon
*****

Admin
Posts: 2402
Joined: 13-October 02
From: Planet Earth
Member No.: 2
Using LabVIEW Since:1994
LV:8.5 ,8.2.1 ,7.1.1
Greece Canada United States My Blog My Gallery


A new addition from GB

--------------------


Tags
(This content has not been tagged yet)
Go to the top of the page
+Quote Post

Reply to this topicStart new topic

 




Time is now: 8th January 2009 - 09:56 PM