Great news about vectors and matrices #264
Replies: 6 comments 6 replies
-
Wow, really nice. Feels to me that vector/matrix support is the next 'big thing' for Calcpad! Keep up the great work! |
Beta Was this translation helpful? Give feedback.
-
The next important step achieved is to access elements of vectors by index to read and write values. In the example bellow, the last 5 elements are assigned to be the squares of the first 5 in a loop: The "dot" operator I also suggest that a "for" loop should be introduced:
Otherwise, there is too much writing for indexing in a loop. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.
-
Hello friends! :) The work on vectors runs as a high speed train that cannot be stopped. ;) Just added a lot of new special functions only for vectors: initialization with zero, number or range, resizing, slicing, joining, sorting, lookup, norm, dot/cross product, etc. Existing aggregate functions, like min, max, sum, average, product, mean, etc. can also work on vectors by just passing the vector, instead of a list of values. The same applies for interpolation: line and spline. |
Beta Was this translation helpful? Give feedback.
-
Hi! I added two more types of loop blocks:
and
Although you can do the same with #repeat and some #ifs where needed, they have shorter and clearer syntax.#while even allows some hidden expressions to be added on the same line, divided by comments, to update counters, etc. Isn't it better to substitute the index values instead of displaying the index variable names like above: I think it will be clearer what we are exactly doing. |
Beta Was this translation helpful? Give feedback.
-
Vector and matrix calculations seems to require quite a lot of work to implement. We are not some big company with large resources. Actually, Proektsoft is just me - one man army from a small but beautiful country. :) If you use and love Calcpad and want to have them sooner, please consider donating the project on GitHub: https://github.com/sponsors/Proektsoftbg Many thanks to all community members that already sponsor Calcpad or support us in other ways. With your contribution, Calcpad got to be such a wonderful software. But we can do even better than this together. |
Beta Was this translation helpful? Give feedback.
-
Hello, mates!
We have some good news from the kitchen today.
Recently, we are working hard on vectors and matrices. I am eager to have them sooner and we got some partial success. Now, we can create vectors, perform some operations on them, save and display the results. To make difference from regular (scalar) variables, the program adds some little nice arrows over the names. Large vectors are processed in parallel to take full advantage from the modern hardware.
However, there is still a lot of work to do. If you use and like Calcpad, please consider ❤️ sponsoring the development on GitHub and help us to get it ready for you faster:
https://github.com/sponsors/Proektsoftbg
Beta Was this translation helpful? Give feedback.
All reactions