From 8699a8569348be38cd9108c3d569a40aa77294c3 Mon Sep 17 00:00:00 2001 From: sebcrozet Date: Fri, 5 Oct 2018 05:54:52 +0200 Subject: [PATCH] Remove doc-test for `sign` on matrices since they are not supported for now. --- nalgebra-glm/src/common.rs | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/nalgebra-glm/src/common.rs b/nalgebra-glm/src/common.rs index ef93b608..b73f3e07 100644 --- a/nalgebra-glm/src/common.rs +++ b/nalgebra-glm/src/common.rs @@ -317,7 +317,7 @@ pub fn round(x: &TVec) -> TVec // unimplemented!() //} -/// For each matrix or vector component `x`: 1 if `x > 0`, 0 if `x == 0`, or -1 if `x < 0`. +/// For each vector component `x`: 1 if `x > 0`, 0 if `x == 0`, or -1 if `x < 0`. /// /// # Examples: /// @@ -325,9 +325,6 @@ pub fn round(x: &TVec) -> TVec /// # use nalgebra_glm as glm; /// let vec = glm::vec3(-2.0, 0.0, -0.0, 2.0); /// assert_eq!(glm::vec3(-1.0, 0.0, 0.0, 1.0), glm::sign(&vec)); -/// -/// let mat = glm::mat2(-0.0, 5.0, -3.0, 2.0); -/// assert_eq!(glm::mat2(0.0, 1.0, -1.0, 1.0), glm::sign(&mat)); /// ``` /// /// # See also: