pub fn solve(src1: &dyn core::ToInputArray, src2: &dyn core::ToInputArray, dst: &mut dyn core::ToOutputArray, flags: i32) -> Result<bool> {
	input_array_arg!(src1);
	input_array_arg!(src2);
	output_array_arg!(dst);
	unsafe { sys::cv_solve_const__InputArrayX_const__InputArrayX_const__OutputArrayX_int(src1.as_raw__InputArray(), src2.as_raw__InputArray(), dst.as_raw__OutputArray(), flags) }.into_result()
}
/// Solves one or more linear systems or least-squares problems.
/// 
/// The function cv::solve solves a linear system or least-squares problem (the
/// latter is possible with SVD or QR methods, or by specifying the flag
/// #DECOMP_NORMAL ):
/// ![block formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bdst%7D%20%3D%20%20%5Carg%20%5Cmin%20%5FX%20%5C%7C%20%5Ctexttt%7Bsrc1%7D%20%5Ccdot%20%5Ctexttt%7BX%7D%20%2D%20%20%5Ctexttt%7Bsrc2%7D%20%5C%7C)
/// 
/// If #DECOMP_LU or #DECOMP_CHOLESKY method is used, the function returns 1
/// if src1 (or ![inline formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bsrc1%7D%5ET%5Ctexttt%7Bsrc1%7D) ) is non-singular. Otherwise,
/// it returns 0. In the latter case, dst is not valid. Other methods find a
/// pseudo-solution in case of a singular left-hand side part.
/// 
/// 
/// Note: If you want to find a unity-norm solution of an under-defined
/// singular system ![inline formula](https://latex.codecogs.com/png.latex?%5Ctexttt%7Bsrc1%7D%5Ccdot%5Ctexttt%7Bdst%7D%3D0) , the function solve
/// will not do the work. Use SVD::solveZ instead.
/// 
/// ## Parameters
/// * src1: input matrix on the left-hand side of the system.
/// * src2: input matrix on the right-hand side of the system.
/// * dst: output solution.
/// * flags: solution (matrix inversion) method (#DecompTypes)
/// ## See also
/// invert, SVD, eigen
/// 
/// ## C++ default parameters
/// * flags: DECOMP_LU
Solves one or more linear systems or least-squares problems.
The function cv::solve solves a linear system or least-squares problem (the
latter is possible with SVD or QR methods, or by specifying the flag
Solves one or more linear systems or least - squares problems . The function cv :: solve solves a linear system or least - squares problem ( the latter is possible with SVD or QR methods or by specifying the flag
pub fn solve(src1: &dyn core::ToInputArray, src2: &dyn core::ToInputArray, dst: &mut dyn core::ToOutputArray, flags: i32) -> Result<bool> {
	input_array_arg!(src1);
	input_array_arg!(src2);
	output_array_arg!(dst);
	unsafe { sys::cv_solve_const__InputArrayX_const__InputArrayX_const__OutputArrayX_int(src1.as_raw__InputArray(), src2.as_raw__InputArray(), dst.as_raw__OutputArray(), flags) }.into_result()
}
pub fn solve ( src1 : & dyn core :: ToInputArray , src2 : & dyn core :: ToInputArray , dst : & mut dyn core :: ToOutputArray , flags : i32 ) -> Result < bool > { input_array_arg ! ( src1 ) ; input_array_arg ! ( src2 ) ; output_array_arg ! ( dst ) ; unsafe { sys :: cv_solve_const__InputArrayX_const__InputArrayX_const__OutputArrayX_int ( src1 . as_raw__InputArray ( ) , src2 . as_raw__InputArray ( ) , dst . as_raw__OutputArray ( ) , flags ) } . into_result ( ) }
Solves one or more linear systems or least-squares problems.
Solves one or more linear systems or least - squares problems .
src1
&dyn core::ToInputArray
src2
&dyn core::ToInputArray
dst
&mut dyn core::ToOutputArray
flags
i32
decomp_normal ):
[block formula]

If #DECOMP_LU or #DECOMP_CHOLESKY method is used, the function returns 1
if src1 (or ![inline formula] ) is non-singular. Otherwise,
it returns 0. In the latter case, dst is not valid. Other methods find a
pseudo-solution in case of a singular left-hand side part.

If you want to find a unity-norm solution of an under-defined
singular system ![inline formula] , the function solve
will not do the work. Use SVD::solveZ instead.
[ block formula ] If #DECOMP_LU or #DECOMP_CHOLESKY method is used the function returns 1 if src1 ( or ! [ inline formula ] ) is non - singular . Otherwise it returns 0 . In the latter case dst is not valid . Other methods find a pseudo - solution in case of a singular left - hand side part . If you want to find a unity - norm solution of an under - defined singular system ! [ inline formula ] the function solve will not do the work . Use SVD :: solveZ instead .
see also
invert, SVD, eigen
invert SVD eigen
c++ default parameters
None