krish240574 / lstmq

All lstm related projects in q/KDB+
7 stars 3 forks source link

What does command "shape" mean in polstm.q? #1

Closed liutongwei closed 6 years ago

liutongwei commented 6 years ago

Hi, I'm using KDB+ 3.5 and I find there is a command in line#89:

H:(shape H)#K;

It dose not work and report an error with "shape".

So I wonder whether the command shape can only be used in KDB+ with version above 4.0 or is there any code to calculate number of rows and columns of a table?

krish240574 commented 6 years ago

So sorry, I had defined shape as my own function, for 2d arrays with constant size - k)shape:{(#x),(#x[0])}

Will update the code, thank you for pointing that out, I usually have that in my pre-load file, inside q.q

Kumar

On Sat, Dec 16, 2017 at 12:34 PM, liutongwei notifications@github.com wrote:

Hi, I'm using KDB+ 3.5 and I find there is a command in line#89:

H:(shape H)#K;

It dose not work and report an error with "shape".

So I wonder whether the command shape can only be used in KDB+ with version above 4.0 or is there any code to calculate number of rows and columns of a table?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/krish240574/lstmq/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AEtZ9lihxZW2WZbrdkvDsrXPTT1ZLXB7ks5tA2tfgaJpZM4REQGe .

liutongwei commented 6 years ago

Thanks for your reply. It now works.

krish240574 commented 6 years ago

Most welcome. Thanks again.