(50g) Outer Product, Kronecker Product
|
02-23-2019, 03:14 PM
Post: #1
|
|||
|
|||
(50g) Outer Product, Kronecker Product
Inspired by this thread, I am posting two programs for the 50g.
The first program, which will also run on the 48G, computes the outer product of two vectors or the Kronecker product of two matrices. Code:
The next program computes the "generalized outer product" of two vectors. Level 1 should have a program which takes two arguments. Levels 2 and 3 should have vectors, which need not be the same size. The output will be a matrix whose elements result from the function being applied to corresponding elements of the input vectors. For example, if the function is \<< * \>> the result will be the outer product of the two vectors. Code:
|
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)