>If you imagine yourself in the position of someone who is a newcomer
>starting to use and learn about VPP. Perhaps someone with an
>engineering background who has an understanding of the "vector" concept
>from linear algebra courses and so on.

Speaking as someone who knows very little about the code, but I do know
that vectors in C++ are not the same as vectors in linear algebra. Linear
algebra vectors are more like a valarray in C++, although I understand that
the valarray is designed for high performance floating point, so there is
not a direct match to linear algebra vectors.

A vector in VPP's infrastructure is analogous to a vector in C++. I assume
the original VPP designer was more comfortable writing high performance
code in C rather than C++, so he wrote his own library in C.

Also, I think years ago I looked at the header file in VPP that defines
vectors, and for about 20 minutes I wondered why they were not like linear
algebra vectors. Luckily I had a C++ textbook nearby and opened it up and
said "oh, now I understand."

I hope that answers part of your concern, Elias, although like I say, I
have not studied much of the code, so I imagine there are more questions
you would like answers for.

Burt
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#16009): https://lists.fd.io/g/vpp-dev/message/16009
Mute This Topic: https://lists.fd.io/mt/72667316/21656
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to