Operator valence: Difference between revisions

Jump to navigation Jump to search
8 bytes added ,  15:15, 30 April 2020
m
Operators category
Miraheze>Marshall
(Created page with ":''This page is about the number of operands of an operator. For the number of arguments of a function, see function valence. In APL syntax, an oper...")
 
m (Operators category)
(2 intermediate revisions by 2 users not shown)
Line 5: Line 5:
One special case is that of the [[Inner Product]] and [[Outer Product]] operators. The Inner Product is a dyadic operator <source lang=apl inline>f.g</source>, and the Outer Product is written <source lang=apl inline>∘.g</source>. Various APLs interpret the latter syntax in different ways. In [[Iverson notation]] and [[APL\360]] an outer product was described as a kind of inner product with an omitted left operand (making the Inner Product ambivalent), but later APLs such as [[Dyalog APL]] typically refer to Outer Product as a separate, monadic operator with a special syntax. [[SHARP APL]] defines <source lang=apl inline>∘</source> to be an array ([[Nil]]), so that Inner Product is a purely dyadic operator and the Outer Product is a special case with an array left operand.
One special case is that of the [[Inner Product]] and [[Outer Product]] operators. The Inner Product is a dyadic operator <source lang=apl inline>f.g</source>, and the Outer Product is written <source lang=apl inline>∘.g</source>. Various APLs interpret the latter syntax in different ways. In [[Iverson notation]] and [[APL\360]] an outer product was described as a kind of inner product with an omitted left operand (making the Inner Product ambivalent), but later APLs such as [[Dyalog APL]] typically refer to Outer Product as a separate, monadic operator with a special syntax. [[SHARP APL]] defines <source lang=apl inline>∘</source> to be an array ([[Nil]]), so that Inner Product is a purely dyadic operator and the Outer Product is a special case with an array left operand.


{{APL programming language}}
{{APL syntax}}[[Category:Operators]]

Navigation menu