Learn R Programming

EigenR (version 1.2.3)

Eigen_sqrt: Square root of a matrix

Description

Square root of a real or complex square matrix, when possible.

Usage

Eigen_sqrt(M)

Arguments

M

a square matrix, real or complex

Value

A square root of M.

Details

See matrix square root.

Examples

Run this code
# NOT RUN {
# Rotation matrix over 60 degrees:
M <- cbind(c(cos(pi/3), sin(pi/3)), c(-sin(pi/3), cos(pi/3)))
# Its square root, the rotation matrix over 30 degrees:
Eigen_sqrt(M)
# }

Run the code above in your browser using DataLab