Shapespace

From Mesham

Jump to: navigation, search

Syntax

spaceshape[type,min1,max1,min2,max2,...,mind,maxd]

Semantics

This is an abstraction for storing data. Often the HPC programmer is dealing with data in a number of dimensions, this type allows for storing the data at specific points (and retrieve it) in a d dimensional space. The spaceshape type is an implementation of a sparse matrix, which are commonly used in the HPC domain.

Example

var a:spaceshape[String,1,3,0,5,2,5];
(((a#2)#3.4)#4.23):="hello!";
print[(((a#2)#3.4)#4.23),"\n"];
Personal tools