KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
In numpy, we can perform "outer addition" between two vectors a and b like this: a=np.c_[1,2,3] b=np.c_[4,5,6] result=a+b.T # alternatively this can be a.T+b Is it possible to use einsum to make the same calculation? Any other fast alternatives? How about if a equals b ?
Tags (comma-separated)
Save Edits
Cancel