Linear AlgebraTypesRealMatrixMethodsset_onesOn this pageset_ones Method of RealMatrix. set_ones() -> RealMatrix Sets all elements of the RealMatrix lhs to 1.