Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

create and investigate magic squares and magic hypercubes

NotificationsYou must be signed in to change notification settings

RobinHankin/magic

Repository files navigation

Total DownloadsCRAN_Status_Badge

Overview

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.

Installation

You can install the released version ofmagic fromCRAN with:

# install.packages("magic")  # uncomment this to install the packagelibrary("magic")

Package highlights

  • Functionadiag() binds arbitrarily-dimensioned arrayscorner-to-corner
  • Functionapad() pads arbitrarily-dimensioned arrays
  • Functionapldrop() is a replacement for APL’s drop
  • Functionaplus() superimposes two arrays of different dimensionsand returns the sum of overlapping elements
  • Functionarev() is a multidimensional generalization ofrev()
  • Functionarot() is a generalization of matlab’srotdim
  • Functionfnsd() returns the first nonsingleton dimension of anarbitrary dimensioned array
  • Functionashift() shifts the origin of arbitrary dimensionedarrays

Much of the package functionality is vectorised in array dimension.

Further information

For more detail, see the package vignette

vignette("magic")

About

create and investigate magic squares and magic hypercubes

Resources

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors2

  •  
  •  

Languages


[8]ページ先頭

©2009-2025 Movatter.jp