> a <- homog(3) + 77
> a
val
0 0 1 = 1
0 1 0 = 1
1 0 0 = 1
0 0 0 = 77
> constant(a)
val
0 0 0 = 77
> constant(a,drop=TRUE)
[1] 77
> drop(constant(a))
val
0 0 0 = 77
>
Above, everything works as expected until the last line, where drop() returns a (constant) spray object instead of what I expected (I expected the value of drop(constant(a)) to be the same as constant(a,drop=TRUE)).
Above, everything works as expected until the last line, where
drop()
returns a (constant)spray
object instead of what I expected (I expected the value ofdrop(constant(a))
to be the same asconstant(a,drop=TRUE)
).