Jump to content


- - - - -

multi-dimensional arrays


  • Please log in to reply
3 replies to this topic

#1 Mr. hamid reza

Mr. hamid reza

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 12 March 2019 - 06:35 PM

Hi

 

I need to define  Matrix inside a feature. Definition of the multi-dimensional array makes my algorithm to be easy for implementation.

I found some objects such as "doubleseries" that can be applied for uni-dimension arrays.

I also see that there is solution for making a combination of "objectlist"s, but it does not seem a proper way in my case.

Is there any suggestion for defining a simple multi-dimensional array?

 

thanks in advance

 

Best Regards

Hamidreza


  • 0

#2 Joerg Palluch

Joerg Palluch

    Moderator

  • Moderators
  • 472 posts
  • LocationBerlin, Germany

Posted 13 March 2019 - 07:53 AM

Hi Hamidreza,

 

So far, double series and object lists are the only way to do this. We are also having more easy-to-use arrays available in our next major version, you can try these out at some stage if you like. We also think this is an important functionality for CAESES users.

 

Do you have any idea how to work with these types to approach your task?

 

Cheers

Jörg


  • 0

#3 Mr. hamid reza

Mr. hamid reza

    Advanced Member

  • Members
  • PipPipPip
  • 45 posts

Posted 13 March 2019 - 10:35 AM

Hi Jörg

 

Thanks for reply, It is nice to hear that such applicable functionality will be added in future.

 

I know How to use the doublesries and objectlist. but as you know, for making a tow-dimensional arrays by "objectelist"s, we need to replace each row with an objectlist, then the number of them increases. Moreover,we need to use castto() command frequently for each access to a simple double variable inside the list. I am worry about the increase the run-time ,especially when a lot of iterations and objectlist are needed during the process. does it?

 

Best regards

Hamidreza


  • 0

#4 Joerg Palluch

Joerg Palluch

    Moderator

  • Moderators
  • 472 posts
  • LocationBerlin, Germany

Posted 13 March 2019 - 10:42 AM

Hi Hamidreza,

 

You are right, probably the run-time will not be ideal for larger arrays. And the castTo() commands are also not improving the code readability. 

 

However, it still takes us a few weeks until we can deliver a test version. 


  • 0