Liste des Groupes | Revenir à cl forth |
minforth <minforth@gmx.net> writes:Sure, slow hand is not just for guitar players.Am 19.07.2025 um 12:18 schrieb Anton Ertl:Everyone who does dot-products.
>One way to deal with all that would be to have a long-vector stack and>
have something like my vector wordset
<https://github.com/AntonErtl/vectors>, where the sum of a vector
would be a word that is implemented in some lower-level way (e.g.,
assembly language); the sum of a vector is actually a planned, but not
yet existing feature of this wordset.
>
Not wanting to sound negative, but who in practice adds up long
vectors, apart from testing compilers and fp-arithmetic?
Dot products, on the other hand, are fundamental for many linearIf I add a vector-sum word
algebra algorithms, eg. matrix multiplication and AI.
df+red ( dfv -- r )
\ r is the sum of the elements of dfv
to the vector wordset, then the dot-product is:
: dot-product ( dfv1 dfv2 -- r )
df*v df+red ;
Concerning matrix multiplication, while you can use the dot-productThere are tons of algorithms depending on various matrix properties.
for it, there are many other ways to do it, and some are more
efficient (although, admittedly, I have not used pairwise addition for
these ways).
Les messages affichés proviennent d'usenet.