Package float. August 6, 2018

Size: px
Start display at page:

Download "Package float. August 6, 2018"

Transcription

1 Type Package Title 32-Bit Floats Version Package float August 6, 2018 R comes with a suite of utilities for linear algebra with ``numeric'' (double precision) vectors/matrices. However, sometimes single precision (or less!) is more than enough for a particular task. This package etends R's linear algebra facilities to include 32-bit float (single precision) data. Float vectors/matrices have half the precision of their ``numeric''-type counterparts but are generally faster to numerically operate on, for a performance vs accuracy trade-off. The internal representation is an S4 class, which allows us to keep the synta identical to that of base R's. Interaction between floats and base types for binary operators is generally possible; in these cases, type promotion always defaults to the higher precision. The package ships with copies of the single precision 'BLAS' and 'LAPACK', which are automatically built in the event they are not available on the system. License BSD 2-clause License + file LICENSE Copyright The copyright for the single precision BLAS/LAPACK distribution located in src/lapack is given in the file src/lapack/license. Depends R (>= 3.1.0), methods Imports utils, tools ByteCompile yes URL BugReports Maintainer Drew Schmidt <wrathematics@gmail.com> RoygenNote NeedsCompilation yes Author Drew Schmidt [aut, cre, cph], Wei-Chen Chen [ctb] (win32 fies), Dmitriy Selivanov [ctb] (improvements in eternal package linking), ORNL [cph] 1

2 2 R topics documented: Repository CRAN Date/Publication :00:13 UTC R topics documented: float-package Machine_float arithmetic backsolve bind bracket c chol chol2inv colsums comparison converters crossprod diag dims eigen etremes float float float32-class hyperbolic is.float issymmetric log mathis matmult miscmath na names norm print-float qr rand rcond rep round scale solve specialmath sum svd sweep

3 float-package 3 trig pose Inde 41 float-package 32-Bit Floats R comes with a suite of utilities for linear algebra with "numeric" (double precision) vectors/matrices. However, sometimes single precision (or less!) is more than enough for a particular task. This package etends R s linear algebra facilities to include 32-bit float (single precision) data. Float vectors/matrices have half the precision of their "numeric"-type counterparts but are generally faster to numerically operate on, for a performance vs accuracy trade-off. The internal representation is an S4 class, which allows us to keep the synta identical to that of base R s. Interaction between floats and base types for binary operators is generally possible; in these cases, type promotion always defaults to the higher precision. The package ships with copies of the single precision BLAS and LAPACK, which are automatically built in the event they are not available on the system. Author(s) Drew Schmidt.Machine_float Numerical characteristics of the machine for floats. A global variable containing the float (single precision) analogues of much of the double precision details of.machine..machine Details.Machine_float s are taken directly from float.h.

4 4 arithmetic A list containing: float.eps epsilon float.min smallest non-zero float float.ma largest non-inf float float.base radi float.digits the number of bits for the sign+significand float.eponent number of bits for the eponent float.min.ep "largest negative" (smallest) integer for the eponent that generates a normalized floating-point number float.ma.ep largest integer for the eponent that generates a normalized floating-point number arithmetic arithmetic Binary arithmetic numeric/float matrices. ## S4 method for signature 'float32,float32' e1 + e2 ## S4 method for signature 'float32,float32' e1 * e2 ## S4 method for signature 'float32,float32' e1 - e2 ## S4 method for signature 'float32,float32' e1 / e2 ## S4 method for signature 'float32,float32' e1 ^ e2 ## S4 method for signature 'float32,baselinalg' e1 + e2 ## S4 method for signature 'float32,baselinalg' e1 * e2 ## S4 method for signature 'float32,baselinalg'

5 arithmetic 5 e1 - e2 ## S4 method for signature 'float32,baselinalg' e1 / e2 ## S4 method for signature 'float32,baselinalg' e1 ^ e2 ## S4 method for signature 'BaseLinAlg,float32' e1 + e2 ## S4 method for signature 'BaseLinAlg,float32' e1 * e2 ## S4 method for signature 'BaseLinAlg,float32' e1 - e2 ## S4 method for signature 'BaseLinAlg,float32' e1 / e2 ## S4 method for signature 'BaseLinAlg,float32' e1 ^ e2 ## S4 method for signature 'float32,float32' e1 < e2 ## S4 method for signature 'float32,float32' e1 <= e2 ## S4 method for signature 'float32,float32' e1 == e2 ## S4 method for signature 'float32,float32' e1 > e2 ## S4 method for signature 'float32,float32' e1 >= e2 ## S4 method for signature 'float32,baselinalg' e1 < e2 ## S4 method for signature 'float32,baselinalg' e1 <= e2 ## S4 method for signature 'float32,baselinalg' e1 == e2 ## S4 method for signature 'float32,baselinalg'

6 6 arithmetic e1 > e2 ## S4 method for signature 'float32,baselinalg' e1 >= e2 ## S4 method for signature 'BaseLinAlg,float32' e1 < e2 ## S4 method for signature 'BaseLinAlg,float32' e1 <= e2 ## S4 method for signature 'BaseLinAlg,float32' e1 == e2 ## S4 method for signature 'BaseLinAlg,float32' e1 > e2 ## S4 method for signature 'BaseLinAlg,float32' e1 >= e2 e1, e2 Numeric/float vectors/matrices. A matri of the same type as the highest precision input. s1 = flrunif(5, 5) s2 = flrunif(5, 5) = matri(1:25, 5) s1 + s2 # float typeof() # integer + s2 # float storage.mode() = "double" + s2 # double

7 backsolve 7 backsolve backsolve Solve a triangular system. ## S4 method for signature 'float32,float32' backsolve(r,, k = ncol(r), upper.tri = TRUE, transpose = FALSE) ## S4 method for signature 'float32,baselinalg' backsolve(r,, k = ncol(r), upper.tri = TRUE, transpose = FALSE) ## S4 method for signature 'BaseLinAlg,float32' backsolve(r,, k = ncol(r), upper.tri = TRUE, transpose = FALSE) ## S4 method for signature 'float32,float32' forwardsolve(l,, k = ncol(l), upper.tri = FALSE, transpose = FALSE) ## S4 method for signature 'float32,baselinalg' forwardsolve(l,, k = ncol(l), upper.tri = FALSE, transpose = FALSE) ## S4 method for signature 'BaseLinAlg,float32' forwardsolve(l,, k = ncol(l), upper.tri = FALSE, transpose = FALSE) r, l A triangular coefficients matri. k upper.tri transpose The right hand sides. The number of equations (columns of r + rows of ) to use. Should the upper triangle be used? (if not the lower is) Should the transposed coefficients matri be used? More efficient than manually transposing with t().

8 8 bind s = flrunif(10, 3) cp = crossprod(s) y = fl(1:3) backsolve(cp, y) bind rbind rbind() and cbind() for floats. ## S3 method for class 'float32' rbind(..., deparse.level = 1) ## S3 method for class 'float32' cbind(..., deparse.level = 1)... vectors or matrices (numeric or float) deparse.level ignored A matri of the same type as the highest precision input. = fl(matri(1:10, 5)) rbind(, ) cbind(, )

9 bracket 9 bracket Etract Etract subsets of a float vector/matri. [i, j, drop = TRUE] ## S4 replacement method for signature 'float32' [i, j,...] <- value A float vector/matri. i, j,... The indices. Most combinations of integer/double/logical values will be treated the same as R does. One major difference is that NA values will not be tolerated. drop value Logical. If TRUE, single column matrices will be treated as one-dimensional vectors. The replacement value. A float vector/matri. ## Not run: s = flrunif(10, 3) s[, -1] s[c(1, 3, 5, 7), 1:2] ## End(Not run)

10 10 chol c c Combine float/numeric vector(s)/matri[ ces]. c(,...) A float matri.... Additional elements (numeric/float vectors/matrices) to sum. A matri of the same type as the highest precision input. = flrunif(10, 3) c(, NA, 1L) chol chol Cholesky factorization for a float vector/matri. chol() A float vector/matri.

11 chol2inv 11 A float vector/matri. s = flrunif(10, 3) cp = crossprod(s) chol(cp) chol2inv chol2inv Return the inverse of the original matri using the Cholesky factorization of a float vector/matri. chol2inv(, size = NCOL(), LINPACK = FALSE) size LINPACK A float vector/matri. The number of columns to use. Ignored. A float vector/matri. s = flrunif(10, 3) cp = crossprod(s) cp %*% chol2inv(chol(cp))

12 12 colsums colsums colsums Row and columns sums/means. colsums(, na.rm = FALSE, dims = 1) rowsums(, na.rm = FALSE, dims = 1) colmeans(, na.rm = FALSE, dims = 1) rowmeans(, na.rm = FALSE, dims = 1) na.rm dims A float vector/matri. Should missing values be removed? Ignored. Be honest, you ve never even used this argument before, have you? A matri of the same type as the highest precision input. s = flrunif(5, 3) rowsums(s) colsums(s)

13 comparison 13 comparison comparison Binary comparison operators for numeric/float matrices. e1, e2 Numeric/float vectors/matrices. A vector/matri of logicals. ## Not run: s = flrunif(5, 5) = matri(1:25, 5) s > s <= 0 ## End(Not run) converters converters Convert between a numeric vector/matri and a float vector/matri. fl(, strict = FALSE) dbl(, strict = FALSE) int(, strict = FALSE) as.float(, strict = FALSE) ## S3 method for class 'float32' as.double(,...)

14 14 converters ## S3 method for class 'float32' as.integer(,...) as.numeric(,...) ## S3 method for class 'float32' as.vector(, mode = "any") ## S3 method for class 'float32' as.matri(,...) typeof() storage.mode() strict mode,... A numeric or float vector/matri. Should the function error if given the wrong kind of input? Otherwise it just silently returns the input. Ignored. Details fl(), int(), and dbl() are shorthand for as.float(), as.integer(), and as.double(), respectively. The data stored in the type of whatever was asked for (the opposite of the input). = matri(1:30, 10, 3) s = fl() y = dbl(s) all.equal(, y)

15 crossprod 15 crossprod crossprod Croddproducts. ## S4 method for signature 'Mat' crossprod(, y = NULL) ## S4 method for signature 'Mat' tcrossprod(, y = NULL) y A float vector/matri. Either NULL, or a numeric/float matri. Details If y is a numeric matri, then will be promoted to a numeric matri, and the return will therefore be numeric (not float). A float matri (unless y is numeric; see details section). s = flrunif(10, 3) crossprod(s) tcrossprod(s)

16 16 dims diag diag Methods for getting the diagonal of a float matri, or constructing a float matri given a float vector. diag( = 1, nrow, ncol) nrow, ncol A float vector (create a diagonal matri) or matri (get its diagonal). As in base R s diag(). A float vector or matri, depending on the input. s = flrunif(10, 3) s diag(s) diag(diag(s)) dims dim Dimension information for a float vector/matri. nrow() ncol()

17 eigen 17 NROW() NCOL() dim() length() ## S4 replacement method for signature 'float32' dim() <- value value A float vector/matri. The right hand side for the "setter" (dim<-). The requested integer values. s = flrunif(10, 3) dim(s) nrow(s) ncol(s) eigen eigen Solve a system of equations or invert a float matri. eigen(, symmetric, only.values = FALSE, EISPACK = FALSE)

18 18 etremes symmetric only.values EISPACK A float vector/matri. Is the matri symmetric? If not, it will be tested for symmetry with issymmetric(). Note that only symmetric matrices are supported at this time. Should only the values (and not the vectors) be returned? Ignored. A list containing the values and optionally vectors, each stored as floats. s = flrunif(10, 3) cp = crossprod(s) eigen(cp) etremes etremes Min/ma values for any combination of float/numeric vector(s)/matri[ ces]. min(,..., na.rm = FALSE) ma(,..., na.rm = FALSE) which.min() which.ma() A float matri.... Additional elements (numeric/float vectors/matrices) to sum. na.rm should NA s be removed?

19 float 19 Details If there are any elements in..., all elements in the list will first be summed in their native precision, then converted to double precision so they can be combined with base::sum(). The final result will be cast to single precision if... contains only integer and/or float objects. Otherwise, the return will be double precision. A single value. = flrunif(10, 3) min() min(, 1) float float An analogue to integer() and double() for preallocation. float(length = 0, nrow, ncol) length nrow, ncol Input data of type integer. Number of rows/columns if a matri return is desired. See details section for more information. Details If both of nrow and ncol are specified, then length is ignored, and the retor is a matri. If one (but not the other) of nrow or ncol is given, then the function errors. Otherwise, a vector of length length is returned. A float vector/matri of 0 s.

20 20 float32-class float(10) float(nrow=2, ncol=3) float32 float32 A float32 class constructor. For developers only. float32() Input data of type integer. Details Wraps the integer-type data in the float32 S4 class, so that the data will be interpreted as 32-bit floats. If instead you merely want to convert numeric/double data to float type, instead you should call fl(). A float32 class object. float32-class Class float32 An S4 container for 32-bit float vector/matri objects. Slots Data A vector or matri of integers.

21 hyperbolic 21 hyperbolic Hyperbolic functions Hyperbolic functions. sinh() cosh() tanh() asinh() acosh() atanh() A float vector/matri. A float vector/matri of the same dimensions as the input. ## Not run: = flrunif(10) sinh() ## End(Not run)

22 22 issymmetric is.float is.float Tests if argument is a float matri. is.float() An R object. Details is.float() and is.float() are different names for the same function. A logical value. = matri(0, 5, 5) s = flrunif(10, 3) is.float() is.float(s) issymmetric issymmetric Test if a float matri is symmetric. issymmetric(object,...)

23 log 23 object... Ignored. A logical value. s = flrunif(10, 3) issymmetric(s) cp = crossprod(s) issymmetric(s) A float vector/matri. log Logarithms and Eponentials ep/log functions. ep() epm1() log(, base = ep(1)) log10() log2() base A float vector/matri. The logarithm base.

24 24 mathis A float vector/matri of the same dimensions as the input. ## Not run: = flrunif(10) log() ## End(Not run) mathis Finite, infinite, and NaNs Finite, infinite, and NaNs. is.finite() is.infinite() is.nan() A float vector/matri. An integer vector/matri of the same dimensions as the input. ## Not run: = flrnorm(10) is.nan(sqrt()) ## End(Not run)

25 matmult 25 matmult matmult Matri multiplication for numeric/float matrices. ## S4 method for signature 'float32,float32' %*% y ## S4 method for signature 'float32,matri' %*% y ## S4 method for signature 'matri,float32' %*% y, y Numeric/float matrices. Details If a numeric matri is multiplied against a float matri, then if the "numeric" matri is integers, the integers are promoted to floats. Otherwise, the float matri is promoted to doubles. A matri of the same type as the highest precision input. s1 = flrunif(5, 5) s2 = flrunif(5, 2) = matri(1:25, 5) s1 %*% s2 # float storage.mode() # integer %*% s2 # float storage.mode() = "double" %*% s2 # double

26 26 na miscmath Miscellaneous mathematical functions Miscellaneous mathematical functions. abs() sqrt() A float vector/matri. A float vector/matri of the same dimensions as the input. ## Not run: = flrunif(10) sqrt() ## End(Not run) na NA NA utilities.

27 names 27 is.na() na.omit(object,...) na.eclude(object,...), object A float vector/matri.... Ignored. s = flrunif(10, 3) is.na(s) names names "name" setter/getters. names() ## S4 replacement method for signature 'float32' names() <- value rownames() ## S4 replacement method for signature 'float32' rownames() <- value colnames()

28 28 norm ## S4 replacement method for signature 'float32' colnames() <- value dimnames() ## S4 replacement method for signature 'float32' dimnames() <- value value A float vector/matri. Replacement value. norm norm Compute matri norm. ## S4 method for signature 'float32,any' norm(, type = c("o", "I", "F", "M", "2")) type A float vector/matri. "O"-ne, "I"-nfinity, "F"-robenius, "M"-a modulus, and "2" norms. A single float. s = flrunif(10, 3) norm(s, type="o")

29 print-float32 29 print-float32 print-float32 Print methods for float vector/matrices. print(,...) show(object), object A float vector/matri.... Ignored. s = flrunif(10, 3) print(s) s qr QR QR factorization and related functions. qr(, tol = 1e-07,...) ## S4 method for signature 'ANY' qr.q(qr, complete = FALSE, Dvec) ## S4 method for signature 'ANY' qr.r(qr, complete = FALSE)

30 30 rand ## S4 method for signature 'ANY' qr.qy(qr, y) ## S4 method for signature 'ANY' qr.qty(qr, y) tol A float matri.... Ignored. qr complete Dvec y Details The tolerance for determining numerical column rank. Output of qr(). Should the complete or truncated factor be returned? Vector of diagonals to use when re-constructing Q (default is 1 s). A vector/matri or right hand sides (int, float, or double). The factorization is performed by the LAPACK routine sgeqp3(). This should be similar to calling qr() on an ordinary R matri with the argument LAPACK=TRUE. Calling qr(, LAPACK=FALSE) on a double precision matri (the default) will not be comparable in performance (it is much slower) or numerics to calling qr(s) where s is single a float matri. = flrunif(10, 3) qr() rand Generators Random float vector/matri generators. flrunif() produces uniform random values. flrnorm() produces random normal values. flrand() will accept an arbitrary generator. See the details section for more information. flrunif(m, n, min = 0, ma = 1) flrnorm(m, n, mean = 0, sd = 1) flrand(generator, m, n,...)

31 rcond 31 Details m, n The dimensions of the matri/vector. m must be specified. If n is not, then the return is a vector. min, ma mean, sd generator Minimum and maimum values for the uniform generator. Mean and standard deviation values for the normal generator. A generating function, such as rnorm, or even something custom defined.... Additional arguments passed to the generator. For eample, if runif is passed as generator, then you might additionally pass ma=10. For flrunif() and flrnorm(), the data is produced without a double precision copy. That is, it is not (computationally) equivalent to fl(matri(runif(...))), though the operations are conceptually the same. For these, To produce a vector instead of a matri, leave argument n blank. Setting n=1 will produce an m1 matri. For flrand(), the data is generated in double precision in 4KiB batches and copied over to a preallocated vector. This will be slower than generating all of the data up front and copying it, although it uses far less memory most of the time. So you can think of flrunif() and flrnorm() as highly optimized versions of flrand() for uniform and normal generators specifically. flrunif(10) # length 10 vector flrunif(10, 1) # 101 matri flrunif(10, min=10, ma=20) flrand(runif, 10) # conceptually the same as flrunif(10) mygen = function(n) sample(1:5, n, replace=true) flrand(mygen, 30) rcond rcond Compute matri norm. rcond(, norm = c("o", "I", "1"), triangular = FALSE,...)

32 32 rep norm triangular A float vector/matri. "O"-ne or "I"-nfinity norm. Should only the lower triangle be used?... Additional arguments. A single float. s = flrunif(10, 3) rcond(s) rep rep Replicate elements of a float vector/matri. ## S3 method for class 'float32' rep(,...) A float matri.... Additional arguments (passed to base::rep). A float vector. = fl(matri(1:6, 3, 2)) rep(, 5)

33 round 33 round Round Rounding functions. ceiling() floor() trunc(,...) round(, digits = 0) A float vector/matri.... ignored digits The number of digits to use in rounding. A float vector/matri of the same dimensions as the input. = flrnorm(10) floor()

34 34 solve scale scale Center/scale a float vector/matri. scale(, center = TRUE, scale = TRUE) center, scale A float vector/matri. Logical Details Only logical center and scale parameters are accepted at this time. A float matri. s = flrunif(10, 3) scale(s) solve solve Solve a system of equations or invert a float matri. solve(a, b,...)

35 specialmath 35 a, b A float vector/matri.... Ignored. A float matri if inverting. If solving a system, a float vector if given one "right hand side", and a float matri otherwise (just like R). s = flrunif(10, 3) cp = crossprod(s) solve(cp) y = fl(1:3) solve(cp, y) specialmath Special mathematical functions Special mathematical functions. gamma() lgamma() A float vector/matri. A float vector/matri of the same dimensions as the input.

36 36 sum ## Not run: = flrunif(10) lgamma() ## End(Not run) sum sum Sums any combination of float/numeric vector(s)/matri[ ces]. sum(,..., na.rm = FALSE) Details A float matri.... Additional elements (numeric/float vectors/matrices) to sum. na.rm should NA s be removed? If there are any elements in..., all elements in the list will first be summed in their native precision, then converted to double precision so they can be combined with base::sum(). The final result will be cast to single precision if... contains only integer and/or float objects. Otherwise, the return will be double precision. A single value. = flrunif(10, 3) sum() sum(, 1)

37 svd 37 svd SVD SVD factorization. La.svd(, nu = min(n, p), nv = min(n, p)) svd(, nu = min(n, p), nv = min(n, p), LINPACK = FALSE) nu, nv LINPACK A float matri. The number of left/right singular vectors to return. Ignored Details The factorization is performed by the LAPACK routine sgesdd(). = flrunif(10, 3) svd() sweep sweep Sweep a vector through a float matri. sweep(, MARGIN, STATS, FUN = "-", check.margin = TRUE,...)

38 38 trig Details MARGIN STATS A float vector/matri. 1 (rows) or 2 (columns) Vector to sweep out. FUN Sweeping function; must be one of "+", "-", "*", or "/". check.margin Should /STATS margin lengths be checked?... Theoretically these are additional arguments passed to an arbitrary function. However, we only support basic arithmetic, so they are ignored. Note that if the length of STATS does not recycle eactly across MARGIN, the results here will differ slightly from the results of base R. A matri of the same type as the highest precision input. s = flrunif(10, 3) sweep(s, 2, fl(1)) trig Trigonometric functions Basic trig functions. sin() cos() tan() asin()

39 pose 39 acos() atan() A float vector/matri. A float vector/matri of the same dimensions as the input. ## Not run: = flrunif(10) sin() ## End(Not run) pose pose Transpose a float vector/matri. t() A float vector/matri. A float vector/matri.

40 40 pose s = flrunif(10, 3) dim(s) ts = t(s) dim(ts)

41 Inde Topic package float-package, 3 *,BaseLinAlg,float32-method (arithmetic), 4 *,float32,baselinalg-method (arithmetic), 4 *,float32,float32-method (arithmetic), 4 +,BaseLinAlg,float32-method (arithmetic), 4 +,float32,baselinalg-method (arithmetic), 4 +,float32,float32-method (arithmetic), 4 -,BaseLinAlg,float32-method (arithmetic), 4 -,float32,baselinalg-method (arithmetic), 4 -,float32,float32-method (arithmetic), 4.Machine_float, 3 /,BaseLinAlg,float32-method (arithmetic), 4 /,float32,baselinalg-method (arithmetic), 4 /,float32,float32-method (arithmetic), 4 <,BaseLinAlg,float32-method (arithmetic), 4 <,float32,baselinalg-method (arithmetic), 4 <,float32,float32-method (arithmetic), 4 <=,BaseLinAlg,float32-method (arithmetic), 4 <=,float32,baselinalg-method (arithmetic), 4 <=,float32,float32-method (arithmetic), 4 ==,BaseLinAlg,float32-method (arithmetic), 4 ==,float32,baselinalg-method (arithmetic), 4 ==,float32,float32-method (arithmetic), 4 >,BaseLinAlg,float32-method (arithmetic), 4 >,float32,baselinalg-method (arithmetic), 4 >,float32,float32-method (arithmetic), 4 >=,BaseLinAlg,float32-method (arithmetic), 4 >=,float32,baselinalg-method (arithmetic), 4 >=,float32,float32-method (arithmetic), 4 [,float32-method (bracket), 9 [<-,float32-method (bracket), 9 %*%,float32,float32-method (matmult), 25 %*%,float32,matri-method (matmult), 25 %*%,matri,float32-method (matmult), 25 ^,BaseLinAlg,float32-method (arithmetic), 4 ^,float32,baselinalg-method (arithmetic), 4 ^,float32,float32-method (arithmetic), 4 abs,float32-method (miscmath), 26 acos,float32-method (trig), 38 acosh,float32-method (hyperbolic), 21 arithmetic, 4 as.double.float32 (converters), 13 as.float (converters), 13 as.integer.float32 (converters), 13 as.matri.float32 (converters), 13 as.numeric,float32-method (converters), 13 as.vector.float32 (converters), 13 asin,float32-method (trig), 38 asinh,float32-method (hyperbolic), 21 atan,float32-method (trig), 38 atanh,float32-method (hyperbolic), 21 backsolve, 7 41

42 42 INDEX backsolve,baselinalg,float32-method (backsolve), 7 backsolve,float32,baselinalg-method (backsolve), 7 backsolve,float32,float32-method (backsolve), 7 bind, 8 bracket, 9 c, 10 c,float32-method (c), 10 cbind.float32 (bind), 8 ceiling,float32-method (round), 33 chol, 10 chol,float32-method (chol), 10 chol2inv, 11 chol2inv,float32-method (chol2inv), 11 colmeans,float32-method (colsums), 12 colnames,float32-method (names), 27 colnames<-,float32-method (names), 27 colsums, 12 colsums,float32-method (colsums), 12 comparison, 13 converters, 13 cos,float32-method (trig), 38 cosh,float32-method (hyperbolic), 21 crossprod, 15 crossprod,mat-method (crossprod), 15 dbl (converters), 13 diag, 16 diag,float32-method (diag), 16 dim,float32-method (dims), 16 dim<-,float32-method (dims), 16 dimnames,float32-method (names), 27 dimnames<-,float32-method (names), 27 dims, 16 eigen, 17 eigen,float32-method (eigen), 17 ep,float32-method (log), 23 epm1,float32-method (log), 23 etremes, 18 fl (converters), 13 float, 19 float-package, 3 float32, 20 float32-class, 20 floor,float32-method (round), 33 flrand (rand), 30 flrnorm (rand), 30 flrunif (rand), 30 forwardsolve,baselinalg,float32-method (backsolve), 7 forwardsolve,float32,baselinalg-method (backsolve), 7 forwardsolve,float32,float32-method (backsolve), 7 gamma,float32-method (specialmath), 35 hyperbolic, 21 int (converters), 13 is.finite,float32-method (mathis), 24 is.float, 22 is.infinite,float32-method (mathis), 24 is.na,float32-method (na), 26 is.nan,float32-method (mathis), 24 issymmetric, 22 issymmetric,float32-method (issymmetric), 22 La.svd,float32-method (svd), 37 length,float32-method (dims), 16 lgamma,float32-method (specialmath), 35 log, 23 log,float32-method (log), 23 log10,float32-method (log), 23 log2,float32-method (log), 23 mathis, 24 matmult, 25 ma,float32-method (etremes), 18 min,float32-method (etremes), 18 miscmath, 26 na, 26 names, 27 names,float32-method (names), 27 names<-,float32-method (names), 27 NCOL,float32-method (dims), 16 ncol,float32-method (dims), 16 norm, 28 norm,float32,any-method (norm), 28 NROW,float32-method (dims), 16 nrow,float32-method (dims), 16

43 INDEX 43 print,float32-method (print-float32), 29 print-float32, 29 qr, 29 qr,float32-method (qr), 29 qr.q,any-method (qr), 29 qr.qty,any-method (qr), 29 qr.qy,any-method (qr), 29 qr.r,any-method (qr), 29 which.min,float32-method (etremes), 18 pose, 39 rand, 30 rbind.float32 (bind), 8 rcond, 31 rcond,float32-method (rcond), 31 rep, 32 round, 33 round,float32-method (round), 33 rowmeans,float32-method (colsums), 12 rownames,float32-method (names), 27 rownames<-,float32-method (names), 27 rowsums,float32-method (colsums), 12 scale, 34 scale,float32-method (scale), 34 show,float32-method (print-float32), 29 sin,float32-method (trig), 38 sinh,float32-method (hyperbolic), 21 solve, 34 solve,float32-method (solve), 34 specialmath, 35 sqrt,float32-method (miscmath), 26 storage.mode,float32-method (converters), 13 sum, 36 sum,float32-method (sum), 36 svd, 37 svd,float32-method (svd), 37 sweep, 37 sweep,float32-method (sweep), 37 t,float32-method (pose), 39 tan,float32-method (trig), 38 tanh,float32-method (hyperbolic), 21 tcrossprod,mat-method (crossprod), 15 trig, 38 trunc,float32-method (round), 33 typeof,float32-method (converters), 13 which.ma,float32-method (etremes), 18

Package slam. February 15, 2013

Package slam. February 15, 2013 Package slam February 15, 2013 Version 0.1-28 Title Sparse Lightweight Arrays and Matrices Data structures and algorithms for sparse arrays and matrices, based on inde arrays and simple triplet representations,

More information

Package slam. December 1, 2016

Package slam. December 1, 2016 Version 0.1-40 Title Sparse Lightweight Arrays and Matrices Package slam December 1, 2016 Data structures and algorithms for sparse arrays and matrices, based on inde arrays and simple triplet representations,

More information

Package cgraph. March 11, 2019

Package cgraph. March 11, 2019 Type Package Title Computational Graphs Version 4.0.1 Author Maintainer URL https://cgraph.org/ Package cgraph March 11, 2019 BugReports https://github.com/triepels/cgraph/issues Allows

More information

Description/History Objects/Language Description Commonly Used Basic Functions. More Specific Functionality Further Resources

Description/History Objects/Language Description Commonly Used Basic Functions. More Specific Functionality Further Resources R Outline Description/History Objects/Language Description Commonly Used Basic Functions Basic Stats and distributions I/O Plotting Programming More Specific Functionality Further Resources www.r-project.org

More information

Package Brobdingnag. R topics documented: March 19, 2018

Package Brobdingnag. R topics documented: March 19, 2018 Type Package Title Very Large Numbers in R Version 1.2-5 Date 2018-03-19 Author Depends R (>= 2.13.0), methods Package Brobdingnag March 19, 2018 Maintainer Handles very large

More information

Package svd. R topics documented: September 26, 2017

Package svd. R topics documented: September 26, 2017 Package svd September 26, 2017 Type Package Imports methods Suggests testthat (>= 0.7) Title Interfaces to Various State-of-Art SVD and Eigensolvers Version 0.4.1 Author Anton Korobeynikov [aut, cre],

More information

Arithmetic and Logic Blocks

Arithmetic and Logic Blocks Arithmetic and Logic Blocks The Addition Block The block performs addition and subtractions on its inputs. This block can add or subtract scalar, vector, or matrix inputs. We can specify the operation

More information

Package memuse. November 10, 2017

Package memuse. November 10, 2017 Title Memory Estimation Utilities Version 4.0-0 Package memuse November 10, 2017 How much ram do you need to store a 100,000 by 100,000 matrix? How much ram is your current R session using? How much ram

More information

Package narray. January 28, 2018

Package narray. January 28, 2018 Package narray January 28, 2018 Title Subset- And Name-Aware Array Utility Functions Version 0.4.0 Author Michael Schubert Maintainer Michael Schubert Stacking

More information

II.Matrix. Creates matrix, takes a vector argument and turns it into a matrix matrix(data, nrow, ncol, byrow = F)

II.Matrix. Creates matrix, takes a vector argument and turns it into a matrix matrix(data, nrow, ncol, byrow = F) II.Matrix A matrix is a two dimensional array, it consists of elements of the same type and displayed in rectangular form. The first index denotes the row; the second index denotes the column of the specified

More information

MATH 5520 Basics of MATLAB

MATH 5520 Basics of MATLAB MATH 5520 Basics of MATLAB Dmitriy Leykekhman Spring 2011 Topics Sources. Entering Matrices. Basic Operations with Matrices. Build in Matrices. Build in Scalar and Matrix Functions. if, while, for m-files

More information

MATH 3511 Basics of MATLAB

MATH 3511 Basics of MATLAB MATH 3511 Basics of MATLAB Dmitriy Leykekhman Spring 2012 Topics Sources. Entering Matrices. Basic Operations with Matrices. Build in Matrices. Build in Scalar and Matrix Functions. if, while, for m-files

More information

Package LaF. November 20, 2017

Package LaF. November 20, 2017 Type Package Title Fast Access to Large ASCII Files Version 0.8.0 Date 2017-11-16 Author Jan van der Laan Package LaF November 20, 2017 Maintainer Jan van der Laan Methods

More information

Package catenary. May 4, 2018

Package catenary. May 4, 2018 Type Package Title Fits a Catenary to Given Points Version 1.1.2 Date 2018-05-04 Package catenary May 4, 2018 Gives methods to create a catenary object and then plot it and get properties of it. Can construct

More information

Package stapler. November 27, 2017

Package stapler. November 27, 2017 Version 0.6.3 Package stapler November 27, 2017 Title Simultaneous Truth and Performance Level Estimation An implementation of Simultaneous Truth and Performance Level Estimation (STAPLE) .

More information

Package gpur. October 18, 2017

Package gpur. October 18, 2017 Type Package Title GPU Functions for R Objects Package gpur October 18, 2017 Provides GPU enabled functions for R objects in a simple and approachable manner. New gpu* and vcl* classes have been provided

More information

Package RSpectra. May 23, 2018

Package RSpectra. May 23, 2018 Type Package Package RSpectra May 23, 2018 Title Solvers for Large-Scale Eigenvalue and SVD Problems Version 0.13-1 Date 2018-05-22 Description R interface to the 'Spectra' library

More information

Package proxy. October 29, 2017

Package proxy. October 29, 2017 Package proxy October 29, 2017 Type Package Title Distance and Similarity Measures Version 0.4-19 Description Provides an extensible framework for the efficient calculation of auto- and crossproximities,

More information

Numeric Vectors STAT 133. Gaston Sanchez. Department of Statistics, UC Berkeley

Numeric Vectors STAT 133. Gaston Sanchez. Department of Statistics, UC Berkeley Numeric Vectors STAT 133 Gaston Sanchez Department of Statistics, UC Berkeley gastonsanchez.com github.com/gastonstat/stat133 Course web: gastonsanchez.com/stat133 Data Types and Structures To make the

More information

Built-in Types of Data

Built-in Types of Data Built-in Types of Data Types A data type is set of values and a set of operations defined on those values Python supports several built-in data types: int (for integers), float (for floating-point numbers),

More information

Package logisticpca. R topics documented: August 29, 2016

Package logisticpca. R topics documented: August 29, 2016 Type Package Title Binary Dimensionality Reduction Version 0.2 Date 2016-03-13 NeedsCompilation yes ByteCompile yes Author Andrew J. Landgraf Package logisticpca August 29, 2016 Maintainer Andrew J. Landgraf

More information

Package svd. R topics documented: March 24, Type Package. Title Interfaces to various state-of-art SVD and eigensolvers. Version 0.3.

Package svd. R topics documented: March 24, Type Package. Title Interfaces to various state-of-art SVD and eigensolvers. Version 0.3. Package svd March 24, 2013 Type Package Title Interfaces to various state-of-art SVD and eigensolvers Version 0.3.1-1 Date 2013-03-24 Author Anton Korobeynikov Maintainer Anton Korobeynikov

More information

Package filematrix. R topics documented: February 27, Type Package

Package filematrix. R topics documented: February 27, Type Package Type Package Package filematrix February 27, 2018 Title File-Backed Matrix Class with Convenient Read and Write Access Version 1.3 Date 2018-02-26 Description Interface for working with large matrices

More information

Package Rglpk. May 18, 2017

Package Rglpk. May 18, 2017 Version 0.6-3 Title R/GNU Linear Programming Kit Interface Package Rglpk May 18, 2017 Description R interface to the GNU Linear Programming Kit. 'GLPK' is open source software for solving large-scale linear

More information

2nd Introduction to the Matrix package

2nd Introduction to the Matrix package 2nd Introduction to the Matrix package Martin Maechler and Douglas Bates R Core Development Team maechler@stat.math.ethz.ch, bates@r-project.org September 2006 (typeset on October 7, 2007) Abstract Linear

More information

Matlab Workshop I. Niloufer Mackey and Lixin Shen

Matlab Workshop I. Niloufer Mackey and Lixin Shen Matlab Workshop I Niloufer Mackey and Lixin Shen Western Michigan University/ Syracuse University Email: nil.mackey@wmich.edu, lshen03@syr.edu@wmich.edu p.1/13 What is Matlab? Matlab is a commercial Matrix

More information

Introduction to MATLAB. Arturo Donate

Introduction to MATLAB. Arturo Donate Introduction to MATLAB Arturo Donate Introduction What is MATLAB? Environment MATLAB Basics Toolboxes Comparison Conclusion Programming What is MATLAB? Matrix laboratory programming environment high-performance

More information

Introducing float: Single Precision Floats for R

Introducing float: Single Precision Floats for R Introducing float: Single Precision Floats for R November 27, 2017 Drew Schmidt wrathematics@gmail.com Version 0.1-0 Acknowledgements and Disclaimer Any opinions, findings, and conclusions or recommendations

More information

SPIR-V Extended Instructions for GLSL

SPIR-V Extended Instructions for GLSL SPIR-V Etended Instructions for GLSL John Kessenich, Google Version 1.00, Revision 7 August 8, 2018 SPIR-V Etended Instructions for GLSL Copyright 2014-2018 The Khronos Group Inc. All Rights Reserved.

More information

Package dat. January 20, 2018

Package dat. January 20, 2018 Package dat Type Package Title Tools for Data Manipulation Version 0.4.0 January 20, 2018 BugReports https://github.com/wahani/dat/issues An implementation of common higher order functions with syntactic

More information

Package crochet. January 8, 2018

Package crochet. January 8, 2018 Version 2.0.1 License MIT + file LICENSE Package crochet January 8, 2018 Title Implementation Helper for [ and [

More information

An introduction to R WS 2013/2014

An introduction to R WS 2013/2014 An introduction to R WS 2013/2014 Dr. Noémie Becker (AG Metzler) Dr. Sonja Grath (AG Parsch) Special thanks to: Dr. Martin Hutzenthaler (previously AG Metzler, now University of Frankfurt) course development,

More information

Package mixsqp. November 14, 2018

Package mixsqp. November 14, 2018 Encoding UTF-8 Type Package Version 0.1-79 Date 2018-11-05 Package mixsqp November 14, 2018 Title Sequential Quadratic Programming for Fast Maximum-Likelihood Estimation of Mixture Proportions URL https://github.com/stephenslab/mixsqp

More information

Basic matrix math in R

Basic matrix math in R 1 Basic matrix math in R This chapter reviews the basic matrix math operations that you will need to understand the course material and how to do these operations in R. 1.1 Creating matrices in R Create

More information

Package kdtools. April 26, 2018

Package kdtools. April 26, 2018 Type Package Package kdtools April 26, 2018 Title Tools for Working with Multidimensional Data Version 0.3.1 Provides various tools for working with multidimensional data in R and C++, including etremely

More information

Script started on Thu 25 Aug :00:40 PM CDT

Script started on Thu 25 Aug :00:40 PM CDT Script started on Thu 25 Aug 2016 02:00:40 PM CDT < M A T L A B (R) > Copyright 1984-2014 The MathWorks, Inc. R2014a (8.3.0.532) 64-bit (glnxa64) February 11, 2014 To get started, type one of these: helpwin,

More information

Package diagis. January 25, 2018

Package diagis. January 25, 2018 Type Package Package diagis January 25, 2018 Title Diagnostic Plot and Multivariate Summary Statistics of Weighted Samples from Importance Sampling Version 0.1.3-1 Date 2018-01-25 Author Jouni Helske Maintainer

More information

Package mvprobit. November 2, 2015

Package mvprobit. November 2, 2015 Version 0.1-8 Date 2015-11-02 Title Multivariate Probit Models Package mvprobit November 2, 2015 Author Arne Henningsen Maintainer Arne Henningsen

More information

STAT 540: R: Sections Arithmetic in R. Will perform these on vectors, matrices, arrays as well as on ordinary numbers

STAT 540: R: Sections Arithmetic in R. Will perform these on vectors, matrices, arrays as well as on ordinary numbers Arithmetic in R R can be viewed as a very fancy calculator Can perform the ordinary mathematical operations: + - * / ˆ Will perform these on vectors, matrices, arrays as well as on ordinary numbers With

More information

ECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION /4:30-6:00

ECE 204 Numerical Methods for Computer Engineers MIDTERM EXAMINATION /4:30-6:00 ECE 4 Numerical Methods for Computer Engineers ECE 4 Numerical Methods for Computer Engineers MIDTERM EXAMINATION --7/4:-6: The eamination is out of marks. Instructions: No aides. Write your name and student

More information

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS

Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS Inlichtingenblad, matlab- en simulink handleiding en practicumopgaven IWS 1 6 3 Matlab 3.1 Fundamentals Matlab. The name Matlab stands for matrix laboratory. Main principle. Matlab works with rectangular

More information

Package SingleCellExperiment

Package SingleCellExperiment Version 1.5.0 Date 2018-10-26 Package SingleCellExperiment Title S4 Classes for Single Cell Data Depends R (>= 3.5), SummarizedExperiment December 13, 2018 Imports S4Vectors, methods, BiocGenerics, utils,

More information

Package exporkit. R topics documented: May 5, Type Package Title Expokit in R Version Date

Package exporkit. R topics documented: May 5, Type Package Title Expokit in R Version Date Type Package Title Expokit in R Version 0.9.2 Date 2018-05-04 Package exporkit May 5, 2018 Maintainer Niels Richard Hansen Depends R (>= 2.14.1), methods Imports Matrix, SparseM

More information

Package assertive.properties

Package assertive.properties Type Package Package assertive.properties Title Assertions to Check Properties of Variables Version 0.0-4 Date 2016-12-29 Author Richard Cotton [aut, cre] February 2, 2017 Maintainer Richard Cotton

More information

Chapter 2 Float Point Arithmetic. Real Numbers in Decimal Notation. Real Numbers in Decimal Notation

Chapter 2 Float Point Arithmetic. Real Numbers in Decimal Notation. Real Numbers in Decimal Notation Chapter 2 Float Point Arithmetic Topics IEEE Floating Point Standard Fractional Binary Numbers Rounding Floating Point Operations Mathematical properties Real Numbers in Decimal Notation Representation

More information

Package graphframes. June 21, 2018

Package graphframes. June 21, 2018 Type Package Title Interface for 'GraphFrames' Version 0.1.1 Package graphframes June 21, 2018 Maintainer Kevin Kuo A 'sparklyr' etension that provides

More information

Package dint. January 3, 2019

Package dint. January 3, 2019 Type Package Package dint January 3, 2019 Title A Toolkit for Year-Quarter, Year-Month and Year-Isoweek Dates Version 2.1.0 Maintainer Stefan Fleck S3 classes and methods to

More information

Package remoter. August 29, 2016

Package remoter. August 29, 2016 Type Package Package remoter August 29, 2016 Title Remote R: Control a Remote R Session from a Local One Version 0.3-2 A set of utilities for controlling a remote R session from a local one. Simply set

More information

Dr Richard Greenaway

Dr Richard Greenaway SCHOOL OF PHYSICS, ASTRONOMY & MATHEMATICS 4PAM1008 MATLAB 2 Basic MATLAB Operation Dr Richard Greenaway 2 Basic MATLAB Operation 2.1 Overview 2.1.1 The Command Line In this Workshop you will learn how

More information

Julia Calculator ( Introduction)

Julia Calculator ( Introduction) Julia Calculator ( Introduction) Julia can replicate the basics of a calculator with the standard notations. Binary operators Symbol Example Addition + 2+2 = 4 Substraction 2*3 = 6 Multify * 3*3 = 9 Division

More information

Introducing coop: Fast Covariance, Correlation, and Cosine Operations

Introducing coop: Fast Covariance, Correlation, and Cosine Operations Introducing coop: Fast Covariance, Correlation, and Cosine Operations November 14, 2017 Drew Schmidt wrathematics@gmail.com Version 0.6-1 Disclaimer Any opinions, findings, and conclusions or recommendations

More information

Single row numeric functions

Single row numeric functions Single row numeric functions Oracle provides a lot of standard numeric functions for single rows. Here is a list of all the single row numeric functions (in version 10.2). Function Description ABS(n) ABS

More information

Introduction to GNU-Octave

Introduction to GNU-Octave Introduction to GNU-Octave Dr. K.R. Chowdhary, Professor & Campus Director, JIETCOE JIET College of Engineering Email: kr.chowdhary@jietjodhpur.ac.in Web-Page: http://www.krchowdhary.com July 11, 2016

More information

Package readxl. April 18, 2017

Package readxl. April 18, 2017 Title Read Excel Files Version 1.0.0 Package readxl April 18, 2017 Import excel files into R. Supports '.xls' via the embedded 'libxls' C library and '.xlsx'

More information

Package nsprcomp. August 29, 2016

Package nsprcomp. August 29, 2016 Version 0.5 Date 2014-02-03 Title Non-Negative and Sparse PCA Package nsprcomp August 29, 2016 Description This package implements two methods for performing a constrained principal component analysis

More information

Computing Fundamentals

Computing Fundamentals Computing Fundamentals Salvatore Filippone salvatore.filippone@uniroma2.it 2012 2013 (salvatore.filippone@uniroma2.it) Computing Fundamentals 2012 2013 1 / 18 Octave basics Octave/Matlab: f p r i n t f

More information

Package nima. May 23, 2018

Package nima. May 23, 2018 Title Nima Hejazi's R Toolbox Version 0.5.0 Package nima May 23, 2018 Miscellaneous R functions developed over the course of statistical research and scientific computing. These include, for example, utilities

More information

Package irlba. January 11, 2018

Package irlba. January 11, 2018 Type Package Package irlba January 11, 2018 Title Fast Truncated Singular Value Decomposition and Principal Components Analysis for Large Dense and Sparse Matrices Version 2.3.2 Date 2018-1-9 Description

More information

Mails : ; Document version: 14/09/12

Mails : ; Document version: 14/09/12 Mails : leslie.regad@univ-paris-diderot.fr ; gaelle.lelandais@univ-paris-diderot.fr Document version: 14/09/12 A freely available language and environment Statistical computing Graphics Supplementary

More information

Package statip. July 31, 2018

Package statip. July 31, 2018 Type Package Package statip July 31, 2018 Title Statistical Functions for Probability Distributions and Regression Version 0.2.0 Date 2018-07-31 A collection of miscellaneous statistical functions for

More information

LAB 1 General MATLAB Information 1

LAB 1 General MATLAB Information 1 LAB 1 General MATLAB Information 1 General: To enter a matrix: > type the entries between square brackets, [...] > enter it by rows with elements separated by a space or comma > rows are terminated by

More information

Package matrixstats. April 14, 2017

Package matrixstats. April 14, 2017 Version 0.52.2 Depends R (>= 2.12.0) Package matristats April 14, 2017 Suggests base64enc, ggplot2, knitr, microbenchmark, R.devices, R.rsp VignetteBuilder R.rsp Date 2017-04-13 Title Functions that Apply

More information

Package fuzzyreg. February 7, 2019

Package fuzzyreg. February 7, 2019 Title Fuzzy Linear Regression Version 0.5 Date 2019-02-06 Author Pavel Skrabanek [aut, cph], Natalia Martinkova [aut, cre, cph] Package fuzzyreg February 7, 2019 Maintainer Natalia Martinkova

More information

Chapter 1 MATLAB Preliminaries

Chapter 1 MATLAB Preliminaries Chapter 1 MATLAB Preliminaries 1.1 INTRODUCTION MATLAB (Matrix Laboratory) is a high-level technical computing environment developed by The Mathworks, Inc. for mathematical, scientific, and engineering

More information

Package sfc. August 29, 2016

Package sfc. August 29, 2016 Type Package Title Substance Flow Computation Version 0.1.0 Package sfc August 29, 2016 Description Provides a function sfc() to compute the substance flow with the input files --- ``data'' and ``model''.

More information

Package roperators. September 28, 2018

Package roperators. September 28, 2018 Type Package Package roperators September 28, 2018 Title Additional Operators to Help you Write Cleaner R Code Version 1.1.0 Maintainer Ben Wiseman Provides string arithmetic,

More information

Package zebu. R topics documented: October 24, 2017

Package zebu. R topics documented: October 24, 2017 Type Package Title Local Association Measures Version 0.1.2 Date 2017-10-21 Author Olivier M. F. Martin [aut, cre], Michel Ducher [aut] Package zebu October 24, 2017 Maintainer Olivier M. F. Martin

More information

Package ECctmc. May 1, 2018

Package ECctmc. May 1, 2018 Type Package Package ECctmc May 1, 2018 Title Simulation from Endpoint-Conditioned Continuous Time Markov Chains Version 0.2.5 Date 2018-04-30 URL https://github.com/fintzij/ecctmc BugReports https://github.com/fintzij/ecctmc/issues

More information

Floating Point January 24, 2008

Floating Point January 24, 2008 15-213 The course that gives CMU its Zip! Floating Point January 24, 2008 Topics IEEE Floating Point Standard Rounding Floating Point Operations Mathematical properties class04.ppt 15-213, S 08 Floating

More information

Floating Point Puzzles. Lecture 3B Floating Point. IEEE Floating Point. Fractional Binary Numbers. Topics. IEEE Standard 754

Floating Point Puzzles. Lecture 3B Floating Point. IEEE Floating Point. Fractional Binary Numbers. Topics. IEEE Standard 754 Floating Point Puzzles Topics Lecture 3B Floating Point IEEE Floating Point Standard Rounding Floating Point Operations Mathematical properties For each of the following C expressions, either: Argue that

More information

Package table1. July 19, 2018

Package table1. July 19, 2018 Type Package Version 1.1 Date 2018-07-18 Title Tables of Descriptive Statistics in HTML Package table1 July 19, 2018 Create HTML tables of descriptive statistics, as one would epect to see as the first

More information

2nd Introduction to the Matrix package

2nd Introduction to the Matrix package 2nd Introduction to the Matrix package Martin Maechler and Douglas Bates R Core Development Team maechler@stat.math.ethz.ch, bates@r-project.org September 2006 (typeset on November 16, 2017) Abstract Linear

More information

Package paralleldist

Package paralleldist Type Package Package paralleldist December 5, 2017 Title Parallel Distance Matrix Computation using Multiple Threads Version 0.2.1 Author Alexander Eckert [aut, cre] Maintainer Alexander Eckert

More information

Package TSrepr. January 26, Type Package Title Time Series Representations Version Date

Package TSrepr. January 26, Type Package Title Time Series Representations Version Date Type Package Title Time Series Representations Version 1.0.0 Date 2018-01-26 Package TSrepr January 26, 2018 Methods for representations (i.e. dimensionality reduction, preprocessing, feature etraction)

More information

Package blockmatrix. February 19, 2015

Package blockmatrix. February 19, 2015 Package blockmatrix February 19, 2015 aintainer License GPL (>= 2) Title blockmatrix: Tools to solve algebraic systems with partitioned matrices Type Package Author Some elementary

More information

Package bazar. October 7, 2018

Package bazar. October 7, 2018 Type Package Title Miscellaneous Basic Functions Version 1.0.10 Date 2018-10-03 Package bazar October 7, 2018 A collection of miscellaneous functions for copying objects to the clipboard ('Copy'); manipulating

More information

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano

MATLAB Lesson I. Chiara Lelli. October 2, Politecnico di Milano MATLAB Lesson I Chiara Lelli Politecnico di Milano October 2, 2012 MATLAB MATLAB (MATrix LABoratory) is an interactive software system for: scientific computing statistical analysis vector and matrix computations

More information

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial

Constraint-based Metabolic Reconstructions & Analysis H. Scott Hinton. Matlab Tutorial. Lesson: Matlab Tutorial 1 Matlab Tutorial 2 Lecture Learning Objectives Each student should be able to: Describe the Matlab desktop Explain the basic use of Matlab variables Explain the basic use of Matlab scripts Explain the

More information

file:///d:/r/stateofther/bigdata/slides/bigdatapresentation.html#1 1 sur 44 06/07/2018 à 16:56

file:///d:/r/stateofther/bigdata/slides/bigdatapresentation.html#1 1 sur 44 06/07/2018 à 16:56 1 sur 44 06/07/2018 à 16:56 2 sur 44 06/07/2018 à 16:56 Arabidopsis[1:5,1:10] ## L1 L2 L3 L4 L5 L6 L7 L8 L9 L10 ## M1 1 0 1 1 0 1 0 1 1 1 ## M2 1 0 1 1 0 1 1 1 1 1 ## M3 1 0 1 1 0 1 1 1 1 1 ## M4 0 0 0

More information

Package bigmemory. January 11, 2018

Package bigmemory. January 11, 2018 Version 4.5.33 Package bigmemory January 11, 2018 Title Manage Massive Matrices with Shared Memory and Memory-Mapped Files Author Michael J. Kane , John W. Emerson ,

More information

Package nmslibr. April 14, 2018

Package nmslibr. April 14, 2018 Type Package Title Non Metric Space (Approximate) Library Version 1.0.1 Date 2018-04-14 Package nmslibr April 14, 2018 Maintainer Lampros Mouselimis BugReports https://github.com/mlampros/nmslibr/issues

More information

MATLAB and Numerical Analysis

MATLAB and Numerical Analysis School of Mechanical Engineering Pusan National University dongwoonkim@pusan.ac.kr Teaching Assistant 김동운 dongwoonkim@pusan.ac.kr 윤종희 jongheeyun@pusan.ac.kr Lab office: 통합기계관 120호 ( 510-3921) 방사선영상연구실홈페이지

More information

Advanced features of the Calculate signal tool

Advanced features of the Calculate signal tool Advanced features of the Calculate signal tool Case study: how to us the advanced features of the Calculate signal tool? 1 The calculate signal tool The calculate signal tool is one of the most useful

More information

Systems I. Floating Point. Topics IEEE Floating Point Standard Rounding Floating Point Operations Mathematical properties

Systems I. Floating Point. Topics IEEE Floating Point Standard Rounding Floating Point Operations Mathematical properties Systems I Floating Point Topics IEEE Floating Point Standard Rounding Floating Point Operations Mathematical properties IEEE Floating Point IEEE Standard 754 Established in 1985 as uniform standard for

More information

Package biomformat. April 11, 2018

Package biomformat. April 11, 2018 Version 1.7.0 Date 2016-04-16 Package biomformat April 11, 2018 Maintainer Paul J. McMurdie License GPL-2 Title An interface package for the BIOM file format Type Package Author

More information

Mentor Graphics Predefined Packages

Mentor Graphics Predefined Packages Mentor Graphics Predefined Packages Mentor Graphics has created packages that define various types and subprograms that make it possible to write and simulate a VHDL model within the Mentor Graphics environment.

More information

A General Introduction to Matlab

A General Introduction to Matlab Master Degree Course in ELECTRONICS ENGINEERING http://www.dii.unimore.it/~lbiagiotti/systemscontroltheory.html A General Introduction to Matlab e-mail: luigi.biagiotti@unimore.it http://www.dii.unimore.it/~lbiagiotti

More information

A. Matrix-wise and element-wise operations

A. Matrix-wise and element-wise operations USC GSBME MATLAB CLASS Reviewing previous session Second session A. Matrix-wise and element-wise operations A.1. Matrix-wise operations So far we learned how to define variables and how to extract data

More information

Package R.huge. February 22, 2015

Package R.huge. February 22, 2015 Version 0.9.0 Depends R (>= 2.10.0) Package R.huge February 22, 2015 Imports R.methodsS3 (>= 1.7.0), R.oo (>= 1.18.0), R.utils (>= 1.34.0) Date 2015-02-22 Title Methods for Accessing Huge Amounts of Data

More information

Programming for Engineers in Python. Recitation 2

Programming for Engineers in Python. Recitation 2 Programming for Engineers in Python Recitation 2 Plan Range For loop While loop Lists Modules Operations Arithmetic Operations: + plus - minus * multiply / divide (int / float) % modulo (remainder) **

More information

Introduction to Programming and 4Algorithms Abstract Types. Uwe R. Zimmer - The Australian National University

Introduction to Programming and 4Algorithms Abstract Types. Uwe R. Zimmer - The Australian National University Introduction to Programming and 4Algorithms 2015 Uwe R. Zimmer - The Australian National University [ Thompson2011 ] Thompson, Simon Haskell - The craft of functional programming Addison Wesley, third

More information

Matlab Tutorial, CDS

Matlab Tutorial, CDS 29 September 2006 Arrays Built-in variables Outline Operations Linear algebra Polynomials Scripts and data management Help: command window Elisa (see Franco next slide), Matlab Tutorial, i.e. >> CDS110-101

More information

Floating Point Puzzles The course that gives CMU its Zip! Floating Point Jan 22, IEEE Floating Point. Fractional Binary Numbers.

Floating Point Puzzles The course that gives CMU its Zip! Floating Point Jan 22, IEEE Floating Point. Fractional Binary Numbers. class04.ppt 15-213 The course that gives CMU its Zip! Topics Floating Point Jan 22, 2004 IEEE Floating Point Standard Rounding Floating Point Operations Mathematical properties Floating Point Puzzles For

More information

Introduction to Scientific and Engineering Computing, BIL108E. Karaman

Introduction to Scientific and Engineering Computing, BIL108E. Karaman USING MATLAB INTRODUCTION TO SCIENTIFIC & ENGINEERING COMPUTING BIL 108E, CRN24023 To start from Windows, Double click the Matlab icon. To start from UNIX, Dr. S. Gökhan type matlab at the shell prompt.

More information

Floating-Point Numbers in Digital Computers

Floating-Point Numbers in Digital Computers POLYTECHNIC UNIVERSITY Department of Computer and Information Science Floating-Point Numbers in Digital Computers K. Ming Leung Abstract: We explain how floating-point numbers are represented and stored

More information

Floating-Point Numbers in Digital Computers

Floating-Point Numbers in Digital Computers POLYTECHNIC UNIVERSITY Department of Computer and Information Science Floating-Point Numbers in Digital Computers K. Ming Leung Abstract: We explain how floating-point numbers are represented and stored

More information

MATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed

MATLAB Constants, Variables & Expression. 9/12/2015 By: Nafees Ahmed MATLAB Constants, Variables & Expression Introduction MATLAB can be used as a powerful programming language. It do have IF, WHILE, FOR lops similar to other programming languages. It has its own vocabulary

More information

Floating Point Puzzles. Lecture 3B Floating Point. IEEE Floating Point. Fractional Binary Numbers. Topics. IEEE Standard 754

Floating Point Puzzles. Lecture 3B Floating Point. IEEE Floating Point. Fractional Binary Numbers. Topics. IEEE Standard 754 Floating Point Puzzles Topics Lecture 3B Floating Point IEEE Floating Point Standard Rounding Floating Point Operations Mathematical properties For each of the following C expressions, either: Argue that

More information

Matrix algebra. Basics

Matrix algebra. Basics Matrix.1 Matrix algebra Matrix algebra is very prevalently used in Statistics because it provides representations of models and computations in a much simpler manner than without its use. The purpose of

More information

Introduction to the R Language

Introduction to the R Language Introduction to the R Language Data Types and Basic Operations Starting Up Windows: Double-click on R Mac OS X: Click on R Unix: Type R Objects R has five basic or atomic classes of objects: character

More information