Comments (2)
The most obvious is to simply write a * b.transpose()
. I would recommend you start with this.
This may be quite inefficient, however, since it transposes one vector (possibly incurring an allocation unless it's optimized away), and then also allocates the result. If you want more control, there's the ger BLAS-like function which allows you to compute a possibly scaled outer product, storing it into an existing vector.
It would probably be a good idea to have something like a.outer(&b
and/or outer(a, b)
in the library, in my opinion.
from nalgebra.
@Andlon Thanks for the reply, using ger
should do the trick for me, but I agree it would be better to have a separate outer
.
from nalgebra.
Related Issues (20)
- Converting between View and Storage is not behaving as expected HOT 1
- (Feature request) Swing Twist Decomposition
- Clarify angle units in the documentation HOT 2
- Pretty printing of dynamically-sized vectors and matrices in debuggers HOT 5
- Proposal: Provide nalgebra wrappers to `faer` factorizations HOT 8
- Add subdiagonal-related functions HOT 1
- Code runs faster with `DMatrix` than with `SMatrix` HOT 2
- Are `Eq` and `Hash` implemented for na::Vector<f{32, 64}> ? HOT 1
- Equivalent to cgmath::look_to_rh HOT 2
- Eigendecomposition for square matrix HOT 6
- ExactSizeIterator for matrix types? HOT 2
- Different license in crates and LICENSE file
- Allow angle and/or matrix to be cached in `Rotation2` HOT 2
- Segfault when using `new_random()` on larger matrices HOT 3
- na::partial_cmp is incorrect / confusing
- mul_tr
- `resize_*_mut` always clones HOT 8
- .exp() on a matrix doesn't always return the right value HOT 1
- Dense Sparse Multiplies and Docs Question HOT 2
- Numerical instability in UnitQuaternion::rotation_between_axis for small angles
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nalgebra.