Community Tip - Need to share some code when posting a question or reply? Make sure to use the "Insert code sample" menu option. Learn more! X
Hi, this method is not working for -ve values and floating values in 'D', Pse suggest
Eg: D=(0 1 -2 0)
Eg: D=(0 1.5 -2 0)
Hi,
Can you please provide an original "S" matrix and a Resulting matrix "Res" when you use a negative whole number in "D"? I imagine this means a rotation of "S" values downwards in that column? Can do this.
Can you please provide an original "S" matrix and a Resulting matrix "Res" when you use a floating value in "D"? Not sure what this means?
Cheers
Terry
terryhendicott - 'I imagine this means a rotation of "S" values downwards in that column?' - Yes
terryhendicott -'when you use a floating value in "D"? Not sure what this means?' - ok just for now, we will avoid/omit this requirement, let only focus on '-ve' values
terryhendicott -'Can you please provide an original "S" matrix and a Resulting matrix "Res"', - currently I can't, i'll work on the same shortly.
Thanks lot for response, i'll check the same.
Note that with a matrix of 4 rows, shifting 2 or -2 is the same.
Shifting a matrix over a non-integer amount of rows is not obvious. How would you define it?
Success!
Luc
OK, here's an implementation that takes an approach also for non-integer values of the 'number of elements to shift':
Works also in Express.
(Prime 4 file attached)
Success!
Luc