Create and Investigate Magic Squares
Binds arrays corner-to-corner
Subhypercubes of magic hypercubes
Row, column, and two diagonal sums of arrays
Pad arrays
Replacements for APL functions take and drop
Generalized array addition
Reverses some dimensions; a generalization of rev
Rotates an array about two specified dimensions
Generalized row and col
Standard form for magic squares
A class of multiplicative magic squares due to Cilleruelo and Luca
Circulant matrices of any order
Extracts broken diagonals
Apply a function to array element indices
Comparison of two magic squares
First non-singleton dimension
Integerize array elements
Hadamard matrices
Pandiagonal magic squares due to Hudson
Various tests for the magicness of a square
magic hypercubes
does a vector have the sum required to be a row or column of a magic s...
Is a square matrix square palindromic?
Random latin squares
Conway's lozenge algorithm for magic squares
tools:::Rd_package_title("magic")
Magic squares of odd order
Magic squares of order 4n
Magic squares of order 4n+2
Regular magic squares of order 8
Magic constant of a magic square or hypercube
Magic squares prime order
Product of two magic squares
Creates magic squares
Magic cubes of order 2n+1
Magic hypercubes of order 4n
Joins consecutive numbers of a magic square.
are all elements of a vector identical?
An unmagic square
N queens problem
Panmagic squares of order 4
Panmagic squares of order 4n, 6n+1 and 6n-1
Panmagic squares of order 8
Force index arrays into range
Recursively apply a permutation
Sparse antimagic squares
Shift origin of arrays and vectors
Strachey's algorithm for magic squares
Sums of submatrices
Frenicle's equivalent magic squares
A collection of functions for the manipulation and analysis of arbitrarily dimensioned arrays. The original motivation for the package was the development of efficient, vectorized algorithms for the creation and investigation of magic squares and high-dimensional magic hypercubes.