Subject:
|
Re: Multi dimentional Arrays
|
Newsgroups:
|
lugnet.robotics.handyboard
|
Date:
|
Tue, 29 Sep 1998 17:16:34 GMT
|
Original-From:
|
Rick Moll <rickmoll@mvp=stopspam=.net>
|
Viewed:
|
1707 times
|
| |
 | |
Javaid Iqbal wrote:
> Hi All,
> I am trying to write a code for fuzzy logic and using Matrix havig a size
> of 10X10, but it gives an error (stack overflow). When i reduce the size
> of matrix to 6X6 it works perfectly.I am using IC 3.0.
> Can I use a matrix having a size greator than 6x6, if there is a way, can
> anybody help me out.
> Thanks in advance.
I don't know how big the IC stack is, but I suspect you are overflowing it
because you're allocating the array on the stack. If it's an array of
floating point the 10x10 array will be at least 400 bytes, and most likely
larger.
Try allocating the array as a static. That is, declare it outside of the
function.
Later,
Rick
|
|
Message is in Reply To:
 | | Multi dimentional Arrays
|
| Hi All, I am trying to write a code for fuzzy logic and using Matrix havig a size of 10X10, but it gives an error (stack overflow). When i reduce the size of matrix to 6X6 it works perfectly.I am using IC 3.0. Can I use a matrix having a size (...) (27 years ago, 29-Sep-98, to lugnet.robotics.handyboard)
|
3 Messages in This Thread:   
  
- Entire Thread on One Page:
- Nested:
All | Brief | Compact | Dots
Linear:
All | Brief | Compact
|
|
|
|