Leading axis agreement: Difference between revisions

Jump to navigation Jump to search
m
Intro ⟶ mention that in J, LAA is a special case of frame agreement; link
m (Text replacement - "<source" to "<syntaxhighlight")
m (Intro ⟶ mention that in J, LAA is a special case of frame agreement; link)
 
Line 1: Line 1:
'''Leading axis agreement''', sometimes called '''prefix agreement''', is a [[conformability]] rule designed for [[leading axis theory]] and used by [[J]] and [[BQN]]. It states that a [[dyadic]] [[scalar function]] can be applied between two [[array]]s only if one of their [[shape]]s is a [[prefix]] of the other. The shape of the result is that of the [[argument]] with higher [[rank]].
'''Leading axis agreement''', sometimes called '''prefix agreement''', is a [[conformability]] rule designed for [[leading axis theory]] and used by [[J]] and [[BQN]]. It states that a [[dyadic]] [[scalar function]] can be applied between two [[array]]s only if one of their [[shape]]s is a [[prefix]] of the other. The shape of the result is that of the [[argument]] with higher [[rank]]. In J, since all functions, including dyadic scalar functions, have [[function rank|rank]], leading axis agreement is a special case of [[frame agreement]].


== Examples ==
== Examples ==
trusted
83

edits

Navigation menu