Fortress Programming Language Tutorial.pdf - Free
Fortress Programming Language Tutorial.pdf - Free
Fortress Programming Language Tutorial.pdf - Free
- No tags were found...
You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
<strong>Fortress</strong> <strong>Programming</strong> <strong>Language</strong> <strong>Tutorial</strong>, PLDI, 11 June 2006Array Types• May include bounds, or leave them optionala : RR64[xSize, ySize, zSize]M : Complex⟦RR64⟧[ 32, 32 ]space : Vector⟦RR64,6⟧[:,:,:]• Bounds are specified using nat type parameters:conjGrad⟦Elt extends Number, nat N,Mat extends Matrix⟦Elt,N×N⟧,Vec extends Vector⟦Elt,N⟧⟧(A: Mat, x: Vec): (Vec, Elt)• Both Matrix and Vector implement Array© 2006 Sun Microsystems, Inc. All rights reserved.41