-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Matrix-Vector, Vector-Matrix, Vector-Vector product #276
Comments
Though a vector-matrix product is valid and can be computed. julia> A
2-element Array{Float64,1}:
-3.0
0.0
julia> B
1×4 Array{Float64,2}:
-9.0 7.0 -5.0 -7.0
julia> A * B
2×4 Array{Float64,2}:
27.0 -21.0 15.0 21.0
0.0 0.0 0.0 0.0 But in the rule definition
So it would be ok from the primal computation side, but would error while computing its derivative. |
@oxinabox anything on the above? |
I don't understand the problem.
But in anycase for things that don't work by relaxing signatures we just write a seperate rule, and it is not a problem? |
* add rules for vector-matrix and matrix-vector product Fixes #276 * fix bug in test function writing * add separate dispatch for Vector * Matrix * fix tests for Matrix*Vector, Vector*Matrix * fix test * Assert about size * bump version Co-authored-by: Lyndon White <oxinabox@ucc.asn.au>
I think this can probably use the same rules as out Matrix-Matrix products,
but it wants some tests to confirm.
Might even be just swapping
AbstractMatrix
forAbstractVecOrMat
A lot of these products are nonsense.
but that is ok, they will error on the primal pass
The text was updated successfully, but these errors were encountered: