Displaying 6 results from an estimated 6 matches for "octonion".
2005 Sep 09
2
two almost identical packages: best practice
Hi
I have written a whole bunch of methods for objects of class "octonion".
[
an octonion is a single column of an eight-row matrix. Octonions have
their own multiplication rules and are a generalization of quaternions,
which are columns of a four-row matrix.
]
So far I've done about a dozen generic functions such as seq.octonion(),
rep.octonion(), [<-.oct...
2005 Jul 29
1
octonions
Hi
I thought it would be fun to develop R functionality for
the octonions (there is already some work on quaternions).
The octonions are an 8 dimensional algebra over the reals, so an
octonion
may nicely be represented as a real vector of length 8. Applications
are many and varied, mostly quantum mechanics.
I would like to develop some R functionality in this area...
2005 Aug 31
3
generic function argument list problem
...eneric.
A method should use the same defaults as the generic.
So, how come the arguments for rep() are (x, times, ...) and the
arguments
for rep.default() are (x, times, length.out, each, ...) ? Shouldn't
these be the same?
I am writing a rep() method for objects with class "octonion", and
my function rep.octonion() has argument list (x, times, length.out,
each, ...)
just like rep.default(), but R CMD check complains about it, pointing
out that rep() and rep.octonion() have different arguments.
What do I have to do to my rep.octonion() function to make my package
p...
2007 Jun 27
1
inherits() and virtual classes
Hi
How do I test for an object having a particular virtual class?
In the following, "onion" is a virtual class, and "octonion" is
a non-virtual class contained in onion. The last call
to inherits() gives FALSE [R-2.5.0], when inherits.Rd led
me to expect TRUE.
setClass("onion",
representation = "VIRTUAL"
)
setClass("octonion",
representation = represen...
2005 Sep 01
1
generic function S3 consistency warning advice
...can take over a
function in the base
package and make it generic.
I want to do this with Re() and have the following lines in my R code:
"Re" <- function(x){UseMethod("Re" )}
"Re.default" <- get("Re" ,pos=NULL,mode="function")
"Re.octonion" <- function(x){give.comp(x,1)}
This, however, generates the following warning from R CMD check:
* checking S3 generic/method consistency ... WARNING
Re:
function(x)
Re.default:
function()
See section 'Generic functions and methods' of the 'Writing R
Extensions'
m...
2005 Oct 21
0
new package bundle: onion
Dear List
I have just uploaded a new package, "onion", to CRAN.
It provides some functionality for manipulating and visualizing
quaternions
and octonions.
All comments welcome!
enjoy
rksh
--
Robin Hankin
Uncertainty Analyst
National Oceanography Centre, Southampton
European Way, Southampton SO14 3ZH, UK
tel 023-8059-7743
_______________________________________________
R-packages mailing list
R-packages at stat.math.ethz.ch
https://stat.e...