Commit Graph

2628 Commits

Author SHA1 Message Date
Avi Weinstock
90010b1a50 Implement HStackLazy and VStackLazy, allowing for the removal of intermediate allocations when building a matrix with a mix of horizontal and vertical stacking. 2023-02-05 16:58:59 -05:00
Avi Weinstock
aec3ae2d53 Take the output matrix by mutable reference instead of ownership in HStack/VStack to facilitate implementing lazy stacking. 2023-02-02 16:18:16 -05:00
Avi Weinstock
be45282263 Add inline declarations on hstack, vstack, and visit. Reorder const parameters to the end of declarations to support the rustc version used by the cuda test suite. 2023-01-31 17:51:55 -05:00
Avi Weinstock
317aef574a Implement hstack and vstack.
The implementation uses a trait to fold over tuples, summing the
dimensions in one direction and checking for equality in the other, and
then uses `fixed_{rows,columns}_mut` if the dimensions are static, or
`{rows,columns}_mut` if the dimensions are dynamic, together with
`copy_from` to construct the output matrix.
2023-01-30 23:14:20 -05:00
Sébastien Crozet
52e6db99c6 Release v0.32.1 2023-01-14 17:57:31 +01:00
Sébastien Crozet
8e5e54d196 Bump version of nalgebra-macros 2023-01-14 17:55:56 +01:00
Sébastien Crozet
8aa34a952f Release v0.32.0 2023-01-14 17:04:22 +01:00
Sébastien Crozet
f50b0812f4
Merge pull request #1180 from Andlon/reshape_slices_plus_more
Enable `reshape_generic` for slices + other things
2023-01-14 16:35:17 +01:00
Sébastien Crozet
bcfc20caba Fix duplicate import 2023-01-14 16:26:26 +01:00
Sébastien Crozet
711ac67da9 Deplecate Dynamic and Dynamic::new 2023-01-14 16:22:40 +01:00
Sébastien Crozet
3508280929 Rename Slice to View in reshape tests 2023-01-14 16:22:40 +01:00
Andreas Longva
c506bd577a Fix broken compilation for serde-serialize 2023-01-14 16:22:40 +01:00
Andreas Longva
afabf4bad2 ReshapableStorage for slices + tests for owned reshape
In the process of implementing ReshapbleStorage for SliceStorage(Mut),
I discovered that there appears to be no tests for the existing
reshape_generic functionality on owned matrices.
2023-01-14 16:22:40 +01:00
Andreas Longva
4221c44a2b Rename Dynamic -> Dyn
Provide a type alias to avoid breaking code. Make Dyn a
tuple struct so that we can use the succinct syntax
Dyn(n) instead of Dyn::new(n).
2023-01-14 16:22:40 +01:00
Andreas Longva
19c99634c3 Add U0, U1, ... dimension constants
This allows us to simply write U4 in place of U4::name() or Const::<4>,
like we used to be able to before const generics.
2023-01-14 16:22:40 +01:00
Sébastien Crozet
731fd0ead1
Merge pull request #1165 from geo-ant/feature/parallel-column-iterators
Parallel Column Iterators with Rayon
2023-01-14 16:17:44 +01:00
Sébastien Crozet
3a8c1bf81e Use rayon as the feature name instead of par-iter 2023-01-14 15:59:11 +01:00
Sébastien Crozet
82b4960740 Better coding-style in the doc-tests. 2023-01-14 15:48:42 +01:00
Sébastien Crozet
d54c56fd43 Fix potential unsoundness in ColumnIter::split_at 2023-01-14 15:37:12 +01:00
Sébastien Crozet
1f4ded0c50 Don’t make the ColumnIter[Mut] fields pub(crate) 2023-01-14 15:30:00 +01:00
Sébastien Crozet
9e5854034c
Merge pull request #1192 from fortify-iq/ln-determinant
Add ln_determinant to Cholesky
2023-01-14 14:41:57 +01:00
Hennadii Chernyshchyk
ff88fad23c
Remove redundant T::SimdRealField: Zero 2023-01-14 13:25:38 +02:00
Sébastien Crozet
5e26b8e121 Remove unused import 2023-01-14 12:19:36 +01:00
geo-ant
997c707be9 upgrade rayon dependency 2023-01-14 12:08:47 +01:00
geo-ant
50e25c57f7 fmt 2023-01-14 12:08:47 +01:00
geo-ant
61abece7af create separate newtype for producer trait 2023-01-14 12:08:47 +01:00
geo-ant
7b9b123301 add test, find bug, add another test 2023-01-14 12:08:47 +01:00
geo-ant
93f2c6c125 fix format 2023-01-14 12:08:47 +01:00
geo-ant
9cc7cc121f mention feature gating 2023-01-14 12:08:47 +01:00
geo-ant
296320bb74 indicate feature gating 2023-01-14 12:08:47 +01:00
geo-ant
66dfaf824a formatting 2023-01-14 12:08:47 +01:00
geo-ant
ae5bca75f7 advertize the feature on the matrix front doc page 2023-01-14 12:08:47 +01:00
geo-ant
6fce106776 restructure code for better docs 2023-01-14 12:08:47 +01:00
geo-ant
85a58ca939 update CI workflow 2023-01-14 12:08:47 +01:00
geo-ant
e1305d3d8e fmt 2023-01-14 12:08:47 +01:00
geo-ant
8d1f684e45 change feature name to par-iter and add doc example to par_column_iter_mut 2023-01-14 12:08:47 +01:00
geo-ant
97861c8a5e add examples in par_column_iter method 2023-01-14 12:08:47 +01:00
geo-ant
83c2e27d6d start expanding docs(not done) 2023-01-14 12:08:40 +01:00
geo-ant
324e686fe6 update workflow for new feature name 2023-01-14 12:08:40 +01:00
geo-ant
e9a5705e1a address review 2023-01-14 12:08:40 +01:00
geo-ant
e40687d8e6 replace confusing trait bounds with Scalar 2023-01-14 12:08:40 +01:00
geo-ant
701d260fa6 rayon parallel feature w/o nightly features on old compilers 2023-01-14 12:08:40 +01:00
geo-ant
6591f2819a make rayon feature imply std 2023-01-14 12:08:40 +01:00
geo-ant
85e7551c81 feature gate functionality 2023-01-14 12:08:40 +01:00
geo-ant
8638b796ac fix fmt 2023-01-14 12:08:10 +01:00
Geo
f6461d3862 make mut iterator pointer based
Change the ColumnIterMut back to the original impl and manually implement Send
2023-01-14 12:08:10 +01:00
geo-ant
42ab3f6903 fix clippy lints in my code 2023-01-14 12:08:10 +01:00
geo-ant
a4e28a136e apply fmt 2023-01-14 12:08:10 +01:00
geo-ant
daade1cf5e add documentation 2023-01-14 12:08:10 +01:00
geo-ant
7ac536be07 cleanups and add tests 2023-01-14 12:08:10 +01:00