• Adam Procter's avatar
    Change OneHot to accept only integral types (#2689) · 9fea22b2
    Adam Procter authored
    * Change OneHot to accept only non-real types
    
    * Update docstring
    
    * Update Python test
    
    * Add is_integral to element::Type
    
    * Update docs
    
    * Change is_integral to false for boolean
    
    * Revert "Change is_integral to false for boolean"
    
    This reverts commit 099ff378ae7fcbd1d9346665812f6b95e4886186.
    
    * Revert "Add is_integral to element::Type"
    
    This reverts commit 58fdf76fecaefdad10431f9a894523f326f3adca.
    
    * Change is_integral so it is, by definition, !is_real
    9fea22b2
backend_one_hot.in.cpp 8.94 KB