Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Limited, experimental, sparse matrix support #535

Merged
merged 26 commits into from Feb 3, 2019
Merged

Limited, experimental, sparse matrix support #535

merged 26 commits into from Feb 3, 2019

Conversation

sebcrozet
Copy link
Member

@sebcrozet sebcrozet commented Feb 3, 2019

This is a rather large PR combining several changes I developed for a while on a branch related to my work on deformable bodies for nphysics. This includes some unrelated additions too:

  • Convenience constructors Isometry::translation and Isometry::rotation to build a pure-translation or pure-rotation isometry.
  • Resizing a dynamics matrix in-place.
  • Implementation of ContiguousStorage for matrix sliced with suitable strides.
  • Basic implementation of sparce matrices with the compressed column internal storage. Behind the sparse feature gate. It is still very experimental.
  • Basic implementation of a parser for the MatrixMarket format. This is useful for testing and benchmarking various algorithms on real-world data. Behinde the io feature gate.

# Conflicts:
#	Cargo.toml
#	examples/matrix_construction.rs
#	nalgebra-glm/src/constructors.rs
#	nalgebra-glm/src/ext/matrix_clip_space.rs
#	nalgebra-glm/src/ext/matrix_transform.rs
#	nalgebra-glm/src/ext/mod.rs
#	nalgebra-glm/src/ext/quaternion_common.rs
#	nalgebra-glm/src/gtx/quaternion.rs
#	nalgebra-glm/src/gtx/rotate_vector.rs
#	nalgebra-glm/src/lib.rs
#	nalgebra-glm/src/traits.rs
#	nalgebra-lapack/src/cholesky.rs
#	nalgebra-lapack/src/eigen.rs
#	nalgebra-lapack/src/hessenberg.rs
#	nalgebra-lapack/src/lu.rs
#	nalgebra-lapack/src/qr.rs
#	nalgebra-lapack/src/schur.rs
#	nalgebra-lapack/src/svd.rs
#	nalgebra-lapack/src/symmetric_eigen.rs
#	rustfmt.toml
#	src/base/array_storage.rs
#	src/base/blas.rs
#	src/base/cg.rs
#	src/base/default_allocator.rs
#	src/base/edition.rs
#	src/base/iter.rs
#	src/base/matrix.rs
#	src/base/swizzle.rs
#	src/base/vec_storage.rs
#	src/geometry/mod.rs
#	src/geometry/point_construction.rs
#	src/geometry/quaternion.rs
#	src/geometry/similarity.rs
#	src/geometry/translation.rs
#	src/geometry/unit_complex_construction.rs
#	src/linalg/bidiagonal.rs
#	src/linalg/cholesky.rs
#	src/linalg/full_piv_lu.rs
#	src/linalg/hessenberg.rs
#	src/linalg/lu.rs
#	src/linalg/permutation_sequence.rs
#	src/linalg/qr.rs
#	src/linalg/schur.rs
#	src/linalg/svd.rs
#	src/linalg/symmetric_eigen.rs
#	src/linalg/symmetric_tridiagonal.rs
#	tests/geometry/point.rs
#	tests/geometry/quaternion.rs
#	tests/lib.rs
#	tests/linalg/eigen.rs
#	tests/linalg/svd.rs
@sebcrozet
Copy link
Member Author

Note the CI will fail because of rust-random/rand#723

@sebcrozet sebcrozet merged commit 8117f61 into master Feb 3, 2019
@sebcrozet sebcrozet deleted the sparse branch February 3, 2019 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant