mirror of
				https://github.com/ml-explore/mlx.git
				synced 2025-11-04 18:48:15 +08:00 
			
		
		
		
	@@ -1115,6 +1115,22 @@ void init_array(nb::module_& m) {
 | 
			
		||||
          nb::kw_only(),
 | 
			
		||||
          "stream"_a = nb::none(),
 | 
			
		||||
          "See :func:`mean`.")
 | 
			
		||||
      .def(
 | 
			
		||||
          "std",
 | 
			
		||||
          [](const array& a,
 | 
			
		||||
             const IntOrVec& axis,
 | 
			
		||||
             bool keepdims,
 | 
			
		||||
             int ddof,
 | 
			
		||||
             StreamOrDevice s) {
 | 
			
		||||
            return mlx::core::std(
 | 
			
		||||
                a, get_reduce_axes(axis, a.ndim()), keepdims, ddof, s);
 | 
			
		||||
          },
 | 
			
		||||
          "axis"_a = nb::none(),
 | 
			
		||||
          "keepdims"_a = false,
 | 
			
		||||
          "ddof"_a = 0,
 | 
			
		||||
          nb::kw_only(),
 | 
			
		||||
          "stream"_a = nb::none(),
 | 
			
		||||
          "See :func:`std`.")
 | 
			
		||||
      .def(
 | 
			
		||||
          "var",
 | 
			
		||||
          [](const array& a,
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user