Fix mismatching description for is_empty

This commit is contained in:
Hoàng Xuân Phú 2018-05-28 23:00:35 -04:00 committed by Sébastien Crozet
parent 27a415d47f
commit 4b3a157513
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@ use base::storage::Storage;
use base::{DefaultAllocator, Matrix, Scalar, SquareMatrix}; use base::{DefaultAllocator, Matrix, Scalar, SquareMatrix};
impl<N: Scalar, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> { impl<N: Scalar, R: Dim, C: Dim, S: Storage<N, R, C>> Matrix<N, R, C, S> {
/// Indicates if this is a square matrix. /// Indicates if this is an empty matrix.
#[inline] #[inline]
pub fn is_empty(&self) -> bool { pub fn is_empty(&self) -> bool {
let (nrows, ncols) = self.shape(); let (nrows, ncols) = self.shape();