From 5ce41060e59343880767dfa1415425c4aa74e240 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Crozet?= Date: Sat, 3 Feb 2018 15:25:04 +0100 Subject: [PATCH] Fix typos. --- CHANGELOG.md | 2 +- src/core/componentwise.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 8934b09d..d272d63c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,7 +17,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). * Add blas-like operations: `cmpy, cdpy` for component-wise multiplications and division with scalar factors: - `self <- alpha * self + beta * a * b` - - `self <- alpha * self + beta / a * b` + - `self <- alpha * self + beta * a / b` * `.cross_matrix()` returns the cross-product matrix of a given 3D vector, i.e., the matrix `M` such that for all vector `v` we have `M * v == self.cross(&v)`. diff --git a/src/core/componentwise.rs b/src/core/componentwise.rs index 979de438..47201431 100644 --- a/src/core/componentwise.rs +++ b/src/core/componentwise.rs @@ -136,11 +136,11 @@ macro_rules! component_binop_impl( component_binop_impl!( component_mul, component_mul_mut, component_mul_assign, cmpy, ClosedMul.mul.mul_assign, "Componentwise matrix multiplication.", - "Computes componentwise `self[i] = alpha * a[i] * b[i] + beta * self[i]", + "Computes componentwise `self[i] = alpha * a[i] * b[i] + beta * self[i]`.", "Inplace componentwise matrix multiplication."; component_div, component_div_mut, component_div_assign, cdpy, ClosedDiv.div.div_assign, "Componentwise matrix division.", - "Computes componentwise `self[i] = alpha * a[i] / b[i] + beta * self[i]", + "Computes componentwise `self[i] = alpha * a[i] / b[i] + beta * self[i]`.", "Inplace componentwise matrix division."; // FIXME: add other operators like bitshift, etc. ? );