quara.math.func_proj module

proj_to_hyperplane(var_a)[source]

return the function of projection that maps to the hyperplane \(x \cdot a = ||a||^2\).

Parameters

var_a (np.ndarray) – the point that determines the hyperplane.

Returns

the function of projection that maps to the hyperplane \(x \cdot a = ||a||^2\).

Return type

Callable[[np.ndarray], np.ndarray]

proj_to_nonnegative()[source]

return the function of projection that maps to the non-negative region.

Returns

the function of projection that maps to the non-negative region.

Return type

Callable[[np.ndarray], np.ndarray]

proj_to_self()[source]

return the function of projection that maps to self.

Returns

the function of projection that maps to self.

Return type

Callable[[np.ndarray], np.ndarray]