Linear algebra library for Rust.
Go to file
Jakub Konka fe65b1c129 Add Vector::axcpy method
The added method `Vector::axcpy` generalises `Vector::gemv` to
noncommutative cases since it allows us to write for `gemv`
`self.axcpy(alpha, &col2, val, beta)`, instead the usual
`self.axpy(alpha * val, &col2, beta)`. Hence, `axcpy` preserves the
order of scalar multiplication which is important for applications where
commutativity is not guaranteed (e.g., matrices of quaternions, etc.).

This commmit also removes helpers `array_axpy` and `array_ax`, and
replaces them with `array_axcpy` and `array_axc` respectively, which
like above preserve the order of scalar multiplication.

Finally, `Vector::axpy` is preserved, however, now expressed in terms of
`Vector::axcpy` like so:

```
self.axcpy(alpha * val, &col2, beta)
```
2020-03-02 12:45:37 +01:00
.github Create FUNDING.yml 2019-10-28 14:15:03 +01:00
benches Rename Complex to ComplexField. 2019-03-25 11:19:36 +01:00
ci Fix mint tests. 2019-03-19 22:53:21 +01:00
examples Rename Real to RealField. 2019-03-25 11:21:41 +01:00
nalgebra-glm Release nalgebra 0.19.0. 2019-10-28 14:15:03 +01:00
nalgebra-lapack Release nalgebra 0.19.0. 2019-10-28 14:15:03 +01:00
src Add Vector::axcpy method 2020-03-02 12:45:37 +01:00
tests Fix Vector::axpy for noncommutative cases 2020-03-02 12:45:37 +01:00
.gitignore Add .idea folder to gitignore. 2018-09-13 09:23:08 +02:00
.travis.yml Fix CI (#634) 2019-08-27 22:05:28 +02:00
Cargo.toml Release nalgebra 0.19.0. 2019-10-28 14:15:03 +01:00
CHANGELOG.md Update changelog. 2019-08-27 22:05:28 +02:00
LICENSE Initial commit. 2013-05-14 11:34:28 +00:00
Makefile Add matrix slice construction from array slices. 2018-02-03 13:59:05 +01:00
README.md HTTPS All The Things (#608) 2019-08-27 22:05:28 +02:00
rustfmt.toml Add rustfmt.toml. 2018-11-06 18:32:31 +01:00

crates.io

Build status crates.io

Users guide | Documentation | Forum


Linear algebra library for the Rust programming language.


 Click this button if you wish to donate to support the development of nalgebra:

Become a Patron!