From bfe1a272ec972dd330ad7517643797ed353d610f Mon Sep 17 00:00:00 2001 From: Brendan Zabarauskas Date: Wed, 14 Nov 2012 14:53:13 +1000 Subject: [PATCH] Rename type parameters --- src/matrix.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/matrix.rs b/src/matrix.rs index d152cd1..0d65593 100644 --- a/src/matrix.rs +++ b/src/matrix.rs @@ -41,24 +41,24 @@ pub type dmat3x3 = Mat3; /// same as a `dmat3` pub type dmat4x4 = Mat4; /// same as a `dmat4` -pub trait Matrix: Eq, Index, ToPtr { +pub trait Matrix: Eq, Index, ToPtr { pure fn rows() -> uint; pure fn cols() -> uint; pure fn is_col_major() -> bool; pure fn is_square() -> bool; - pure fn col(i: uint) -> ColVec; - pure fn row(i: uint) -> RowVec; + pure fn col(i: uint) -> Col; + pure fn row(i: uint) -> Row; } -pub trait NumericMatrix: Matrix, Neg { +pub trait NumericMatrix: Matrix, Neg { pure fn mul_t(value: T) -> self; - pure fn mul_v(other: &ColVec) -> ColVec; + pure fn mul_v(other: &Col) -> Col; pure fn add_m(other: &self) -> self; pure fn sub_m(other: &self) -> self; } -pub trait NumericMatrix_NxN: NumericMatrix { +pub trait NumericMatrix_NxN: NumericMatrix { pure fn mul_m(other: &self) -> self; pure fn det() -> T;