break math.vectors docs into subsections

db4
Joe Groff 2009-09-30 13:21:25 -05:00
parent a2771aa166
commit e0f3b72c65
1 changed files with 40 additions and 32 deletions

View File

@ -1,10 +1,21 @@
USING: help.markup help.syntax math math.functions sequences ; USING: help.markup help.syntax math math.functions sequences ;
IN: math.vectors IN: math.vectors
ARTICLE: "math-vectors" "Vector arithmetic" ARTICLE: "math-vectors-arithmetic" "Vector arithmetic"
"Any Factor sequence can be used to represent a mathematical vector, however for best performance, the sequences defined by the " { $vocab-link "specialized-arrays" } " and " { $vocab-link "math.vectors.simd" } " vocabularies should be used." "Vector/vector binary operations:"
$nl { $subsection v+ }
"Acting on vectors by a scalar:" { $subsection v- }
{ $subsection v+- }
{ $subsection v* }
{ $subsection v/ }
"Vector unary operations:"
{ $subsection vneg }
{ $subsection vabs }
{ $subsection vsqrt }
{ $subsection vfloor }
{ $subsection vceiling }
{ $subsection vtruncate }
"Vector/scalar and scalar/vector binary operations:"
{ $subsection vneg } { $subsection vneg }
{ $subsection v*n } { $subsection v*n }
{ $subsection n*v } { $subsection n*v }
@ -14,24 +25,21 @@ $nl
{ $subsection n+v } { $subsection n+v }
{ $subsection v-n } { $subsection v-n }
{ $subsection n-v } { $subsection n-v }
"Vector unary operations:"
{ $subsection vneg }
{ $subsection vabs }
{ $subsection vsqrt }
{ $subsection vfloor }
{ $subsection vceiling }
{ $subsection vtruncate }
"Vector/vector binary operations:"
{ $subsection v+ }
{ $subsection v- }
{ $subsection v+- }
{ $subsection v* }
{ $subsection v/ }
"Saturated arithmetic (only on " { $link "specialized-arrays" } "):" "Saturated arithmetic (only on " { $link "specialized-arrays" } "):"
{ $subsection vs+ } { $subsection vs+ }
{ $subsection vs- } { $subsection vs- }
{ $subsection vs* } { $subsection vs* }
"Componentwise vector operations:" "Inner product and norm:"
{ $subsection v. }
{ $subsection norm }
{ $subsection norm-sq }
{ $subsection normalize }
"Comparing entire vectors:"
{ $subsection distance }
{ $subsection v~ } ;
ARTICLE: "math-vectors-logic" "Vector componentwise logic"
"Element comparisons:"
{ $subsection v< } { $subsection v< }
{ $subsection v<= } { $subsection v<= }
{ $subsection v= } { $subsection v= }
@ -40,6 +48,8 @@ $nl
{ $subsection vunordered? } { $subsection vunordered? }
{ $subsection vmax } { $subsection vmax }
{ $subsection vmin } { $subsection vmin }
{ $subsection vsupremum }
{ $subsection vinfimum }
"Bitwise operations:" "Bitwise operations:"
{ $subsection vbitand } { $subsection vbitand }
{ $subsection vbitandn } { $subsection vbitandn }
@ -47,31 +57,29 @@ $nl
{ $subsection vbitxor } { $subsection vbitxor }
{ $subsection vlshift } { $subsection vlshift }
{ $subsection vrshift } { $subsection vrshift }
"Componentwise logical operations:" "Element logical operations:"
{ $subsection vand } { $subsection vand }
{ $subsection vor } { $subsection vor }
{ $subsection vxor } { $subsection vxor }
{ $subsection vmask } { $subsection vmask }
{ $subsection v? } { $subsection v? }
"Shuffling:" "Element shuffling:"
{ $subsection vshuffle } { $subsection vshuffle } ;
"Inner product and norm:"
{ $subsection v. } ARTICLE: "math-vectors-misc" "Miscellaneous vector functions"
{ $subsection norm }
{ $subsection norm-sq }
{ $subsection normalize }
"Comparing entire vectors:"
{ $subsection distance }
{ $subsection v~ }
"Other functions:"
{ $subsection vsupremum }
{ $subsection vinfimum }
{ $subsection trilerp } { $subsection trilerp }
{ $subsection bilerp } { $subsection bilerp }
{ $subsection vlerp } { $subsection vlerp }
{ $subsection vnlerp } { $subsection vnlerp }
{ $subsection vbilerp } ; { $subsection vbilerp } ;
ARTICLE: "math-vectors" "Vector operations"
"Any Factor sequence can be used to represent a mathematical vector, however for best performance, the sequences defined by the " { $vocab-link "specialized-arrays" } " and " { $vocab-link "math.vectors.simd" } " vocabularies should be used."
{ $subsection "math-vectors-arithmetic" }
{ $subsection "math-vectors-logic" }
{ $subsection "math-vectors-misc" } ;
ABOUT: "math-vectors" ABOUT: "math-vectors"
HELP: vneg HELP: vneg