
You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
There is, read the article .
The article copies a multidimensional array, but you need a one-dimensional one!
I don't understand why you can't just help, show an example - that's what the article discussion is for - sad.
In general, I decided that only through a vector it is possible - to pass an array there, and then screw it to a matrix, but so far I have not even got to the point of how to bend it (from a vector it is possible to make a matrix with a specified number of columns, as if transforming it?), and not the fact that it is possible, so I got a crash.
I am attaching the code of course
Alexei, everything works for me. Here is your script, slightly tweaked:
Log:
Alexei, everything works for me. Here is your script, slightly tweaked:
Log:
Thank you. Yes, I know that the /n in the print causes the crash, but I don't know what the ":" means.
Thanks for the matrix transfer - I read it this morning, but I haven't tried it. But it turns out still a lot of memory will be consumed - let's say we collected data in a one-dimensional array, then we need to put it into a vector, then into a matrix - already 3 repeated entities, which is not good. Why can't we immediately transfer a one-dimensional array into a matrix?
I can't understand:
1. How to transfer a matrix into an array
2. How to read a specific value in the matrix and how to write it with the indication of row and column
I have read the article more than once - maybe I don't understand the wording in it, but here is the fact - there are questions.
Thank you. Yes, I know that /n in the print causes the crash, but I don't know what ":" means.
Thanks for the matrix transfer - I read it this morning, but I haven't tried it. But it turns out still a lot of memory will be consumed - let's say we collected data in a one-dimensional array, then we need to put it into a vector, then into a matrix - already 3 repeated entities, which is not good. Why can't we immediately transfer a one-dimensional array into a matrix?
I don't know, I guess the Developer knows better.... Why can't you immediately collect data into a matrix, bypassing the chain "array-vector-matrix" ? ))
I don't know, perhaps the Developer knows better.... Why can't you just collect data into a matrix, bypassing the "array-vector-matrix" chain ? ))
So far I don't understand how to fill the matrix directly by cells and how to read from it.
In general, I read data from bin file into array - it is a sample - I wanted to work with it as with a matrix, I think there was an opportunity in the beginning to read a matrix from the file, but now I do not see such an opportunity in the instructions.
So far I don't understand how to cell-by-cell fill the matrix directly and how to read from it.
See the example about matrix multiplication in OpenCL