dimforge / dimforge/nalgebra

Convert DVector<DVector<T>> into a DMatrix<T>?

Open
#971 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Rust
Stars
4.8k
Forks
565
PR merge metrics
No merged PRs in 30d

Description

Question is self explanatory, but for XY problem purposes, my original problem is:

I have a `DVector`, and a function `Fn(T) -> DVector`, I want to apply the function to every element of the vector and get a `DMatrix` out where every column is the result of the function. Obviously I want this with as few copies/allocations as possible. The function constructs the column using `from_distributions` so I wonder if that can be used in place, so that no allocation has to be done.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.