grapes-T.-grapes: Matrix Transpose - Matrix Multiplication

Description Usage Arguments Value Author(s) Examples

Description

Calculates: ans = A**T.B where A and B are matrices

Usage

1
A %T.% B

Arguments

A

a reference object of class 'number' with rank 2

B

a reference object of class 'number' with rank 2

Value

Returns a reference object of class 'number'

Author(s)

Filippo Monari

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
modello.init(10, 10, 10, 10)
A = number(matrix(rnorm(9), 3, 3))
B = number(matrix(rnorm(9), 3, 3))
b = number(rnorm(3))
ans1 = A %T.% B
ans2 = b %T.% A
print(ans1)
print(ans1$v)
print(ans2)
print(ans2$v)
modello.close()

modello documentation built on Feb. 2, 2021, 9:06 a.m.