Yorick (programming language)


Yorick is an interpreted programming language designed for numerics, graph plotting, and steering large scientific simulation codes. It is quite fast due to array syntax, and extensible via C or Fortran routines. It was created in 1996 by David H. Munro of Lawrence Livermore National Laboratory.

Features

Indexing

Yorick is good at manipulating elements in N-dimensional arrays conveniently with its powerful syntax.
Several elements can be accessed all at once:

> x=;
> x
> x
> x
> x

;Arbitrary elements

> x=1,2,3],,,
> y=x
> y

;Pseudo-index
Like "theading" in PDL and "broadcasting" in Numpy, Yorick has a mechanism to do this:

> x=
> x
> y=1,2,3],,,,,,
> x
1],,,,,,,
> x
> x

"*" is a kind of rubber-index to reshape a slice of array to a vector.

> x

;Tensor multiplication
Tensor multiplication is done as follows in Yorick:
P*Q
means

> x=1,2,3],,,,,,,[64,154