testrightHAND: Test Right Hand of tensor

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/testrightHAND.R

Description

Test Right Hand of tensor

Usage

1

Arguments

U

3 by 3 matrix

Details

The fuction eigen does not always produce a right-handed eigenvector matrix. The code tests each cross product to see if it creates a right-hand system.

Value

logical vector

Author(s)

Jonathan M. Lees<jonathan.lees@unc.edu>

See Also

forcerighthand

Examples

1
2
3
4
5
6
7
8
Mtens <- c(-0.412, 0.084, 0.328 ,0.398, -1.239, 1.058)

M1 <-  matrix(c(Mtens[1], Mtens[4], Mtens[5], Mtens[4],
Mtens[2], Mtens[6], Mtens[5],Mtens[6],
Mtens[3]), ncol=3, nrow=3, byrow=TRUE)

E1 <-  eigen(M1)
testrightHAND(E1$vectors) 

RFOC documentation built on May 29, 2017, 12:59 p.m.