HP-71B Dynamic array allocation
|
02-27-2024, 12:08 AM
Post: #9
|
|||
|
|||
RE: HP-71B Dynamic array allocation
Hi,
rprosperi Wrote:So it's likely you are simply expanding the matrices in a way that does not 'remove' any elements, i.e. never decreasing any matrix dimension. Not exactly. You can decrease any matrix dimension as long as the new total number of elements is equal or bigger than the number of elements before redimensioning. For instance, assuming OPTION BASE 1, if you redimension a 10x10 array to 20x5 (thus decreasing one dimension from 10 to 5) you won't lose any elements, as the total number of elements (10x10 = 100 = 20x5) remains the same. In short, decreasing the total number of elements is what will lose you some elements, not decreasing a dimension per se. Regards< V. All My Articles & other Materials here: Valentin Albillo's HP Collection |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 5 Guest(s)