RobinHankin / onion

R functionality to deal with quaternions and octonions
6 stars 1 forks source link

as.orthogonal function error #20

Closed MamtaMohan closed 1 year ago

MamtaMohan commented 2 years ago

Hi,

I am using onion package to generate set orthogonal matrices from quaternions.

I tried to convert a quaternion to an equivalent orthogonal matrix.

It gave me an error: Error in Re(q1) : non-numeric argument to function

I tried following sequence:

q1 <- rquat(1) q1 An object of class "quaternion" Slot "x": [,1] Re -0.7134218 i -1.0694264 j -1.4381244 k -0.6852207

as.orthogonal(q1) Error in Re(Q) : non-numeric argument to function

I tried example as mention in documentation as well. It also gave me an error.

as.orthogonal(rquat(q1)) Error in h(simpleError(msg, call)) : error in evaluating the argument 'z' in selecting a method for function 'Norm': error in evaluating the argument 'data' in selecting a method for function 'matrix': invalid arguments.

I would appreciate your response.

Mamta

RobinHankin commented 2 years ago

onion version 1.5-0:

as.orthogonal(rquat(1)) [,1] [,2] [,3] [1,] -0.2519797 -0.38107978 -0.8895417 [2,] -0.1238721 0.92434173 -0.3608990 [3,] 0.9597718 0.01925015 -0.2801205

I strongly suspect that you didn't load the package correctly as the print method was not invoked in the snippet you sent.

Robin

@.***>

On Sat, Apr 30, 2022 at 2:31 AM MamtaMohan @.***> wrote:

Hi,

I am using onion package to generate set orthogonal matrices from quaternions.

I tried to convert a quaternion to an equivalent orthogonal matrix.

It gave me an error: Error in Re(q1) : non-numeric argument to function

I tried following sequence:

q1 <- rquat(1) q1 An object of class "quaternion" Slot "x": [,1] Re -0.7134218 i -1.0694264 j -1.4381244 k -0.6852207

as.orthogonal(q1) Error in Re(Q) : non-numeric argument to function

I tried example as mention in documentation as well. It also gave me an error.

as.orthogonal(rquat(q1)) Error in h(simpleError(msg, call)) : error in evaluating the argument 'z' in selecting a method for function 'Norm': error in evaluating the argument 'data' in selecting a method for function 'matrix': invalid arguments.

I would appreciate your response.

Mamta

— Reply to this email directly, view it on GitHub https://github.com/RobinHankin/onion/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFFZUVE3PAJR4IXWMKHAMLVHPXDXANCNFSM5UWGZ2LA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

MamtaMohan commented 2 years ago

Thank you.

That was the problem.

Mamta


From: Robin Hankin @.> Sent: Saturday, April 30, 2022 1:10 AM To: RobinHankin/onion @.> Cc: Mohan, Mamta @.>; Author @.> Subject: Re: [RobinHankin/onion] as.orthogonal function error (Issue #20)

onion version 1.5-0:

as.orthogonal(rquat(1)) [,1] [,2] [,3] [1,] -0.2519797 -0.38107978 -0.8895417 [2,] -0.1238721 0.92434173 -0.3608990 [3,] 0.9597718 0.01925015 -0.2801205

I strongly suspect that you didn't load the package correctly as the print method was not invoked in the snippet you sent.

Robin

@.***>

On Sat, Apr 30, 2022 at 2:31 AM MamtaMohan @.***> wrote:

Hi,

I am using onion package to generate set orthogonal matrices from quaternions.

I tried to convert a quaternion to an equivalent orthogonal matrix.

It gave me an error: Error in Re(q1) : non-numeric argument to function

I tried following sequence:

q1 <- rquat(1) q1 An object of class "quaternion" Slot "x": [,1] Re -0.7134218 i -1.0694264 j -1.4381244 k -0.6852207

as.orthogonal(q1) Error in Re(Q) : non-numeric argument to function

I tried example as mention in documentation as well. It also gave me an error.

as.orthogonal(rquat(q1)) Error in h(simpleError(msg, call)) : error in evaluating the argument 'z' in selecting a method for function 'Norm': error in evaluating the argument 'data' in selecting a method for function 'matrix': invalid arguments.

I would appreciate your response.

Mamta

— Reply to this email directly, view it on GitHub https://github.com/RobinHankin/onion/issues/20, or unsubscribe https://github.com/notifications/unsubscribe-auth/ADFFZUVE3PAJR4IXWMKHAMLVHPXDXANCNFSM5UWGZ2LA . You are receiving this because you are subscribed to this thread.Message ID: @.***>

— Reply to this email directly, view it on GitHubhttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2FRobinHankin%2Fonion%2Fissues%2F20%23issuecomment-1113919315&data=05%7C01%7Cm.mohan%40northeastern.edu%7Cc694aa0bf46d4af3bec808da2a67c320%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637868922423819881%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=0hPii6%2FHvzDrqPTmiPdvlmQDtU%2Fg2TP5AxtunVuQbY0%3D&reserved=0, or unsubscribehttps://nam12.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Fnotifications%2Funsubscribe-auth%2FAD3RZ7OW5EYWB2OEDIRM7ADVHS6EZANCNFSM5UWGZ2LA&data=05%7C01%7Cm.mohan%40northeastern.edu%7Cc694aa0bf46d4af3bec808da2a67c320%7Ca8eec281aaa34daeac9b9a398b9215e7%7C0%7C0%7C637868922423976126%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=UBQOKTTfodKtbg1JUoJsKv2GwUBEFC%2FN%2BjqEb8uvV34%3D&reserved=0. You are receiving this because you authored the thread.Message ID: @.***>