Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
! stick this in a header
parameter (ixstart = 1, ixrows = 2, ixcols = 3, ixmax = 3)
parameter (nstoremax = 1000, nmatrixmax = 10)
real store(nstoremax)
integer info(nmatrixmax, ixmax), lastinfo, laststore
....
....
! initialization
lastinfo = 0
laststore = 0
integer function matrixadd (ncol, nrow)
include 'headerfile'
integer ncol, nrow
lastinfo = lastinfo + 1
info(lastinfo, ixstart) = laststart + 1
info(lastinfo, ixcols) = ncol
info(lastinfo, ixrows) = nrow
laststart = laststart + nrow * ncol
matrixadd = lastinfo
end
real function matget (mat, jx, jy)
include 'headerfile'
integer ix
ix = info(mat, ixstart) + (jx - 1) * info(mat,ixcols) + jy - 1
matget = store(ix)
end
subroutine matset (mat, jx, jy, val)
include 'headerfile'
integer ix
ix = info(mat, ixstart) + (jx - 1) * info(mat,ixcols) + jy - 1
store(ix) = val
end