- Notifications
You must be signed in to change notification settings - Fork3
create and investigate magic squares and magic hypercubes
NotificationsYou must be signed in to change notification settings
RobinHankin/magic
Folders and files
| Name | Name | Last commit message | Last commit date | |
|---|---|---|---|---|
Repository files navigation
The magic package implements functionality for manipulatinghigh-dimensional arrays using efficient vectorised methods. The originalapplication was high-dimensional magic hypercubes. This README showssome of the more useful functions in the package.
You can install the released version ofmagic fromCRAN with:
# install.packages("magic") # uncomment this to install the packagelibrary("magic")
- Function
adiag()binds arbitrarily-dimensioned arrayscorner-to-corner - Function
apad()pads arbitrarily-dimensioned arrays - Function
apldrop()is a replacement for APL’s drop - Function
aplus()superimposes two arrays of different dimensionsand returns the sum of overlapping elements - Function
arev()is a multidimensional generalization ofrev() - Function
arot()is a generalization of matlab’srotdim - Function
fnsd()returns the first nonsingleton dimension of anarbitrary dimensioned array - Function
ashift()shifts the origin of arbitrary dimensionedarrays
Much of the package functionality is vectorised in array dimension.
For more detail, see the package vignette
vignette("magic")
About
create and investigate magic squares and magic hypercubes
Resources
Code of conduct
Contributing
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Packages0
No packages published
Uh oh!
There was an error while loading.Please reload this page.
Contributors2
Uh oh!
There was an error while loading.Please reload this page.
