R/transpose.r

Defines functions H

Documented in H

### S3 method for conjugate transpose, Hermitian transpose, or
### Hermitian conjugate.

### This is a bad idea.
# t.complex <- function(x){
#   if(!is.complex(x)){
#     stop("x is not in complex.")
#   }
#   if(!is.matrix(x)){
#     x <- as.matrix(x)
#   }
#   Conj(t.default(x))
# } # End of t.complex().

H <- function(x){
  if(!is.complex(x)){
    stop("x is not in complex.")
  }
  if(!is.matrix(x)){
    x <- as.matrix(x)
  }
  Conj(t.default(x))
} # End of H().

Try the QZ package in your browser

Any scripts or data that you put into this service are public.

QZ documentation built on Sept. 8, 2023, 5:43 p.m.