Yorick (programming language)
Yorick is an interpreted programming language designed for numerics, graph plotting, and steering large scientific simulation codes.[src] It is quite fast due to array syntax, and extensible via C or Fortran routines.[src] It was created in 1996 by David H.[src] Munro of Lawrence Livermore National Laboratory.[src]
Yorick is an interpreted programming language designed for numerics, graph plotting, and steering large scientific simulation codes.[src] It is quite fast due to array syntax, and extensible via C or Fortran routines.[src] It was created in 1996 by David H.[src] Munro of Lawrence Livermore National Laboratory.[src] > x=[1,2,3,4,5,6]; > x [1,2,3,4,5,6] > x(3:6) [3,4,5,6] > x(3:6:2) [3,5] > x(6:3:-2) [6,4] Arbitrary elements > x=[[1,2,3],[4,5,6 > x [[1,2,3],[4,5,6 > x([2,1],[1,2]) [[2,1],[5,4 > list=where(1 list [2,3,4,5,6] > y=x(list) > y [2,3,4,5,6] Pseudo-index Like "threading" in PDL and "broadcasting" in Numpy, Yorick has a mechanism to do this: > x=[1,2,3] > x [1,2,3] > y=[[1,2,3],[4,5,6 > y [[1,2,3],[4,5,6 > y(-,) [[[1],[2],[3 ,[[4],[5],[6 ] > x(-,) [[1],[2],[3 > x(,-) 1,2,3 > x(,-)/y [[1,1,1],[0,0,0 > y=[[1.,2,3],[4,5,6 > x(,-)/y [[1,1,1],[0.25,0.4,0.5 Rubber index ".." is a rubber-index to represent zero or more dimensions of the array.[src] > x=[[1,2,3],[4,5,6 > x [[1,2,3],[4,5,6 > x(..,1) [1,2,3] > x(1,..) [1,4] > x(2,..,2) 5 "*" is a kind of rubber-index to reshape a slice(sub-array) of array to a vector.[src] > x(*) [1,2,3,4,5,6] Tensor multiplication Tensor multiplication is done as follows in Yorick: P(,+, )*Q(, +) means \sum_{j=1}^{j=N}{P_{ijkl}Q_{mnj}} > x=[[1,2,3],[4,5,6 > x [[1,2,3],[4,5,6 > y=[[7,8],[9,10],[11,12 > x(,+)*y(+,) [[39,54,69],[49,68,87],[59,82,105 > x(+,)*y(,+) [[58,139],[64,154 ==External links== Linux Journal Review Yorick tutorial on JehTech[src]
11 sentences · 11 cited inline · 0 references stored
References
No reference rows published for this article.
Cite this article
MLA
"Yorick (programming language)." encyclopegia.org, 2026, https://encyclopegia.org/wiki/yorick-programming-language. Accessed 29 November 2026.
Chicago
"Yorick (programming language)." encyclopegia.org. Accessed November 29, 2026. https://encyclopegia.org/wiki/yorick-programming-language.
APA
encyclopegia.org. (2026). Yorick (programming language). Retrieved November 29, 2026, from https://encyclopegia.org/wiki/yorick-programming-language
Accessed November 29, 2026 · CC BY-SA 4.0 · citation page · JSON