![MQL5 - Language of trade strategies built-in the MetaTrader 5 client terminal](https://c.mql5.com/i/registerlandings/logo-2.png)
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
Hello Forum.
There are these shiny new matrix and vector types that are basically classes just without the C in front. But then why can't I create an array of a matrizes to call the layers and weights of a neural net by index? Turns out you can:
This version works and when you run it in debugger it prints a few test numbers as it is supposed to. But you can't watch the values in the observation because it will just show "invalid array access". also when you type "arr[0]." there autocomplete shows no methods. Yet they work.
But if you wrap the matrix or vector type into a class you can use it as an array and observe it in debugger which makes vector and matrix operations so much easier to check.
This above code works AND I can have it show everything in observation.
Now when I type
arr[0]._mat.
MetaEditor should proceed to show the matrix type methods available. It doesn't. Yet they still work here.
What it shows:
What it should show: