
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
You need to rest and re-read all your questions in this discussion tomorrow.
Your advice helped, thank you.
But, now I'm still struggling with questions:
1. I need to divide a matrix by a vector - this is a typical task for calculating percentages, when there is a total of each row/column and I need to know the percentage of each cell - very demanded.
I get an error
If you make a matrix from a vector, essentially duplicating columns to restore the size of the matrix over which the calculation is performed, this approach consumes a lot of memory unnecessarily. Pulling vectors out of a matrix in cycles is resource-consuming and seems not rational.
2. Sometimes the divisor is zero, and then we get "-nan(ind)". - but this is not very convenient for further work, maybe there is a possibility to get zero or other forced value in this case, or not to carry out calculation in this cell - by choice?
Your advice helped, thank you.
But now I'm still wondering:
1. I need to divide a matrix by a vector - this is a typical task for calculating percentages, when there is a total sum of each row/column and I need to know the percentage of each cell - very demanded.
I get an error
You have a desire to break everything. Go further yourself, I won't help you any more - it hurts to look at the examples
You have a desire to break everything. You can take it from here, I won't help you any further, it hurts to see examples of this.
I guess the syntax doesn't go)))))
You have a desire to break everything. You can take it from here, I won't help you any further, it hurts to see examples of this.
So do it more reliably :)))))))
The example is wrong, I need to divide each column of the matrix by the corresponding value in the row of the vector. That is, the vector should represent a column, not a row. I understand that then I need to transpose the matrix..... I thought it was possible without a loop.
And, I am of course very interested in the answer to the second question. Not even an answer, but rather adding a possibility to put a zero in the final matrix when dividing by zero.
The man has already broken the catbuster, soon there will be nothing left of the matrices )
By throwing in false information, you strengthen the statement of a respected person on this resource, apparently trying to attach to his authority and make me in a bad light,
Do you have a personal grudge?
By throwing in false information, you amplify the statement of a respected person on this resource, apparently trying to attach yourself to his authority and make me look bad,
Do you have a personal grudge?
I don't think humour has been banned yet.
I don't think they've banned humour yet.
It's probably funny. I can even surmise the real premise of the statement. However, few people will understand what we are talking about, if they are not regulars of the MoD thread.
Do you understand the new syntax of matrices, and am I the only one who is so bad at thinking?
Maybe it's funny. I can even surmise the real premise of the statement. However, few people will understand what it is about unless they are regulars in the MoD thread.
Do you understand the new syntax of matrices, and am I the only one who is so bad at thinking?
I haven't read it, it's implemented differently everywhere, you just have to look at the peculiarities.
I think everything is clear, I use dataframes in python myself, it has its own specifics.
Please clarify how to copy a column from one matrix to another!
I don't understand the example through copy to vector.
Here is a piece of my code
I get an error