I'm trying to find a generic way (for arbitrary dimensions) to create a matrix like so
a[1] a[2]
a[3] a[4]
i.e where it is indexed by one number, instead of say Array[a, {2, 2}]
which gives
a[1,1] a[2,1]
a[2,1] a[2,2]
I hope you can help!
I'm trying to find a generic way (for arbitrary dimensions) to create a matrix like so
a[1] a[2]
a[3] a[4]
i.e where it is indexed by one number, instead of say Array[a, {2, 2}]
which gives
a[1,1] a[2,1]
a[2,1] a[2,2]
I hope you can help!
Comments
Post a Comment