extract {jordan} | R Documentation |
Extract and replace methods for jordan objects
Description
Extraction and replace methods for jordan objects should work as expected.
Replace methods can take a jordan or a numeric, but the numeric must be zero.
Value
Generally return a jordan object of the same class as the first argument
Methods
- [
signature(x = "albert", i = "index", j = "missing", drop = "logical")
: ...- [
signature(x = "complex_herm_matrix", i = "index", j = "missing", drop = "logical")
: ...- [
signature(x = "jordan", i = "index", j = "ANY", drop = "ANY")
: ...- [
signature(x = "jordan", i = "index", j = "missing", drop = "ANY")
: ...- [
signature(x = "quaternion_herm_matrix", i = "index", j = "missing", drop = "logical")
: ...- [
signature(x = "real_symmetric_matrix", i = "index", j = "missing", drop = "logical")
: ...- [
signature(x = "spin", i = "index", j = "missing", drop = "ANY")
: ...- [
signature(x = "spin", i = "missing", j = "index", drop = "ANY")
: ...- [<-
signature(x = "albert", i = "index", j = "missing", value = "albert")
: ...- [<-
signature(x = "complex_herm_matrix", i = "index", j = "ANY", value = "ANY")
: ...- [<-
signature(x = "complex_herm_matrix", i = "index", j = "missing", value = "complex_herm_matrix")
: ...- [<-
signature(x = "jordan_matrix", i = "index", j = "missing", value = "numeric")
: ...- [<-
signature(x = "quaternion_herm_matrix", i = "index", j = "missing", value = "quaternion_herm_matrix")
: ...- [<-
signature(x = "real_symmetric_matrix", i = "index", j = "missing", value = "real_symmetric_matrix")
: ...- [<-
signature(x = "spin", i = "index", j = "index", value = "ANY")
: ...- [<-
signature(x = "spin", i = "index", j = "missing", value = "numeric")
: ...- [<-
signature(x = "spin", i = "index", j = "missing", value = "spin")
: ...
Author(s)
Robin K. S. Hankin
Examples
showClass("index") # taken from the Matrix package
a <- rspin(7)
a[2:4] <- 0
a[5:7] <- a[1]*10
a