Description Usage Arguments Value Author(s) Examples
Calculates: ans = alpha * op(A).B + beta * C where alpha and beta are scalars, A is a matrix, and B and C are vectors.
1 |
ta |
if > 1 or TRUE op(A) = A**T else op(A) = A |
alpha |
a reference object of class 'number' with rank 0 |
A |
a reference object of class 'number' with rank 2 |
B |
a reference object of class 'number' with rank 1 |
beta |
a reference object of class 'number' with rank 0 |
C |
a reference number of class 'number' with rank 1 |
Returns a reference object of class 'number'
Filippo Monari
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | modello.init(10, 10, 10, 10)
alpha = number(1, scalar=TRUE)
beta = number(1, scalar=TRUE)
A = number(matrix(rnorm(9), 3, 3))
B = number(rnorm(3))
C = number(rnorm(3))
ans1 = gemv(0, alpha, A, B, beta, C)
ans2 = gemv(0, alpha, A, B)
ans3 = gemv(0, NULL, A, B, NULL, C)
ans4 = gemv(0, NULL, A, B, NULL, NULL)
print(ans1)
print(ans1$v)
print(ans2)
print(ans2$v)
print(ans3)
print(ans3$v)
print(ans4)
print(ans4$v)
modello.close()
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.