fn concatenate_major_indices(self, other: Self) -> Self {
        debug_assert_eq!(other.minor_dimension_size, self.minor_dimension_size);

        Sparse::from_major_ordered_tuples(
            self.data.into_iter().chain(other.data.into_iter()).collect(),
            self.major_dimension_size + other.major_dimension_size,
            self.minor_dimension_size,
        )
    }
/// Concatenate `SparseMatrix` instances along the major order direction.
///
/// The horizontal direction is the "direction of the rows", that is, the columns will be
/// stacked together.
///
/// # Arguments
///
/// * `other`: `SparseMatrix` that should have the same number of rows as this matrix.
///
/// # Return value
///
/// `SparseMatrix` with the same number of rows as either input matrix, and the number of
/// columns equal to the sum of the number of columns of the two matrices.
Concatenate `SparseMatrix` instances along the major order direction.
The horizontal direction is the "direction of the rows", that is, the columns will be
stacked together.
Concatenate ` SparseMatrix ` instances along the major order direction . The horizontal direction is the " direction of the rows " that is the columns will be stacked together .
fn concatenate_major_indices(self, other: Self) -> Self {
        debug_assert_eq!(other.minor_dimension_size, self.minor_dimension_size);
        Sparse::from_major_ordered_tuples(
            self.data.into_iter().chain(other.data.into_iter()).collect(),
            self.major_dimension_size + other.major_dimension_size,
            self.minor_dimension_size,
        )
    }
fn concatenate_major_indices ( self , other : Self ) -> Self { debug_assert_eq ! ( other minor_dimension_size self minor_dimension_size ) ; Sparse :: from_major_ordered_tuples ( self . data . into_iter ( ) . chain ( other . data . into_iter ( ) ) . collect ( ) , self . major_dimension_size + other . major_dimension_size , self . minor_dimension_size , ) }
Concatenate `SparseMatrix` instances along the major order direction.
Concatenate ` SparseMatrix ` instances along the major order direction .
self
other
Self
self
other
Self
return value
`SparseMatrix` with the same number of rows as either input matrix, and the number of
columns equal to the sum of the number of columns of the two matrices.
` SparseMatrix ` with the same number of rows as either input matrix and the number of columns equal to the sum of the number of columns of the two matrices .