pub fn to_super_force_constants_with_zeroed_rows(&self, sc: &SupercellToken) -> SuperForceConstants {
        let sc = SupercellWrapper::new(sc);
        SuperForceConstants({
            self.0.to_coo()
                .map_row_indices(
                    sc.raw.num_supercell_atoms(),
                    |prim| sc.designated_super(prim),
                )
        })
    }
/// Convert to a type capable of containing data in arbitrary supercell rows, but do not yet
/// actually fill the rows outside `ForceConstants::DESIGNATED_CELL`. (the data will still be
/// sparse; this mostly just replaces primitive indices with supercell indices)
///
/// Why?  Well, it provides a `Permute` impl, which could be used to construct something closer
/// to the output of another tool like phonopy.  It also provides conversions to and from dense
/// matrices, for debugging and testing.
Convert to a type capable of containing data in arbitrary supercell rows, but do not yet
actually fill the rows outside `ForceConstants::DESIGNATED_CELL`. (the data will still be
sparse; this mostly just replaces primitive indices with supercell indices)


Convert to a type capable of containing data in arbitrary supercell rows but do not yet actually fill the rows outside ` ForceConstants :: DESIGNATED_CELL ` . ( the data will still be sparse ; this mostly just replaces primitive indices with supercell indices )
pub fn to_super_force_constants_with_zeroed_rows(&self, sc: &SupercellToken) -> SuperForceConstants {
        let sc = SupercellWrapper::new(sc);
        SuperForceConstants({
            self.0.to_coo()
                .map_row_indices(
                    sc.raw.num_supercell_atoms(),
                    |prim| sc.designated_super(prim),
                )
        })
    }
pub fn to_super_force_constants_with_zeroed_rows ( & self , sc : & SupercellToken ) -> SuperForceConstants { let sc = SupercellWrapper :: new ( sc ) ; SuperForceConstants ( { self . 0 . to_coo ( ) . map_row_indices ( sc . raw . num_supercell_atoms ( ) , | prim | sc . designated_super ( prim ) , ) } ) }
Convert to a type capable of containing data in arbitrary supercell rows, but do not yet
actually fill the rows outside `ForceConstants::DESIGNATED_CELL`.
Convert to a type capable of containing data in arbitrary supercell rows but do not yet actually fill the rows outside ` ForceConstants :: DESIGNATED_CELL ` .
&self
sc
&SupercellToken
&self
sc
&SupercellToken