OuterProduct
This page describes a module in the upcoming version 1.2 of Ikaros and may not be correct for version 1.1
Module that calculates the outer product of its two input vectors. The outer product is a matrix of size s1*s2, where s1 is the size of the first input and s2 is the size of the second input. Each element in the output matrix is the product of one element i each of the inputs: output[j][i] = input1[j]*input2[i]. If the inputs will be flattened before the elements are multiplied if they are not one-dimensional . The output is thus always a two-dimensional matrix regardless of the dimensions of the inputs. The outer product is also somtimes called the tensor product.
Example XML definition
Example
<module
class = "OuterProduct"
name = "OuterProduct"
/>
Module Connections
Inputs
| Name | Description |
|---|---|
| INPUT1 | The first input |
| INPUT2 | The second input |
Outputs
| Name | Description |
|---|---|
| OUTPUT | The output is the outer product of the two inputs in matrix form |
Author
Christian Balkenius
christian.balkenius@lucs.lu.se
Lund University Cognitive Science
Files
OuterProduct.h
OuterProduct.cc
OuterProduct.ikc