Skip to content

Latest commit

 

History

History
14 lines (12 loc) · 495 Bytes

File metadata and controls

14 lines (12 loc) · 495 Bytes

gvector - Generalized vector/matrix for R

Build Status

With gvector you can create a list (with elements of different types) and make calculations the same way you do with a vector or a matrix.

polynomial = poly.from.roots(c(1,2,3)) # take a polynomial
value = 1.3 # take some value
A = V(polynomial, value) # make a vector out of them
# now, calculate !
B = A*A
C = diag(2) %*% A