Support #1632
Support for outer product of two vectors
Status: | Rejected | Start date: | 09/19/2013 | |
---|---|---|---|---|
Priority: | High | Due date: | ||
Assignee: | M. Rolf | % Done: | 100% | |
Category: | - | |||
Target version: | NemoMath 0.4 |
Description
Is there any possibility to build the outer product of two vectors? I tried
RealVector h(3.0, 4.0, 5.0); RealMatrix hht = h * h.transpose();
but this results in
error: no match for ‘operator*’ in ‘h * nemo::MathVector<T>::transpose() [with T = double]()’ note: candidates are: ...
1) Is it possible to include this feature to NemoMath?
2) Until then, or if not, what is the recommended work around?
History
#1 Updated by M. Rolf over 10 years ago
- Status changed from New to Rejected
- Assignee set to M. Rolf
- Target version set to NemoMath 0.4
- % Done changed from 0 to 100
This feature is already available in Matrix.h:
https://code.cor-lab.org/projects/nemomath/repository/entry/trunk/nemomath/src/nemo/Matrix.h#L1204