transpose: Transpose of a matrix

Description Usage Arguments Value Author(s) References See Also Examples

View source: R/matrix.R

Description

Transpose of a matrix.

Usage

1

Arguments

x

A numerical square matrix with data.

Value

The transposed matrix.

Author(s)

Manos Papadakis

R implementation and documentation: Manos Papadakis <papadakm95@gmail.com>.

References

Gilbert Strang (2006). Linear Algebra and its Applications (4th edition).

See Also

nth, colMaxs, colMins, colrange

Examples

1
2
3
4
5
x <- matrix( rnorm(500 * 500), ncol = 500, nrow=500 )
system.time( transpose(x) )
system.time( t(x)  )

x<-NULL

Example output

Loading required package: Rcpp
Loading required package: RcppZiggurat
   user  system elapsed 
  0.001   0.000   0.004 
   user  system elapsed 
  0.002   0.000   0.001 

Rfast documentation built on Dec. 11, 2021, 9:59 a.m.