svd

Bindings for basic::svd namespace

class pyrosetta.rosetta.basic.svd.SVD_Solver

Bases: pybind11_object

assign(self: pyrosetta.rosetta.basic.svd.SVD_Solver, other: pyrosetta.rosetta.basic.svd.SVD_Solver) pyrosetta.rosetta.basic.svd.SVD_Solver

C++: basic::svd::SVD_Solver::operator=(const class basic::svd::SVD_Solver &) –> class basic::svd::SVD_Solver &

get_svd_solution(self: pyrosetta.rosetta.basic.svd.SVD_Solver) pyrosetta.rosetta.utility.vector1_double
return the vector x that minimize ||Ax - b||^2

Can be called after run_solve_svd()

C++: basic::svd::SVD_Solver::get_svd_solution() const –> const class utility::vector1<double, class std::allocator<double> > &

run_decomp_svd(self: pyrosetta.rosetta.basic.svd.SVD_Solver) None
decompose the matrix A.

Can be called after the matrix A and vector b are set (with set_matrix_A and set_vector_b)

C++: basic::svd::SVD_Solver::run_decomp_svd() –> void

run_score_svd_on_matrix(*args, **kwargs)

Overloaded function.

  1. run_score_svd_on_matrix(self: pyrosetta.rosetta.basic.svd.SVD_Solver, cppstyle_A: pyrosetta.rosetta.utility.vector1_utility_vector1_double_std_allocator_double_t) -> float

return the score given the matrix A

Can be called after run_decomp_svd()

C++: basic::svd::SVD_Solver::run_score_svd_on_matrix(const class utility::vector1<class utility::vector1<double, class std::allocator<double> >, class std::allocator<class utility::vector1<double, class std::allocator<double> > > > &) const –> double

  1. run_score_svd_on_matrix(self: pyrosetta.rosetta.basic.svd.SVD_Solver, A: pyrosetta.rosetta.ObjexxFCL.FArray2D_double_t) -> float

return the score given the matrix A (ObjexxFCL::FArray2D version)

Can be called after run_decomp_svd()

C++: basic::svd::SVD_Solver::run_score_svd_on_matrix(const class ObjexxFCL::FArray2D<double> &) const –> double

run_score_svd_without_solving(self: pyrosetta.rosetta.basic.svd.SVD_Solver) float
return the minimzed score without the need to call run_solve_svd()

Can be called after run_decomp_svd()

C++: basic::svd::SVD_Solver::run_score_svd_without_solving() –> double

run_solve_svd(self: pyrosetta.rosetta.basic.svd.SVD_Solver) None
minimize the cost sqrt( ||A x - b||^2 ) (but doesn’t calculate it)

Can be called after run_decomp_svd()

C++: basic::svd::SVD_Solver::run_solve_svd() –> void

set_matrix_A(*args, **kwargs)

Overloaded function.

  1. set_matrix_A(self: pyrosetta.rosetta.basic.svd.SVD_Solver, A: pyrosetta.rosetta.utility.vector1_utility_vector1_double_std_allocator_double_t) -> None

set the matrix A of Ax=b

C++: basic::svd::SVD_Solver::set_matrix_A(const class utility::vector1<class utility::vector1<double, class std::allocator<double> >, class std::allocator<class utility::vector1<double, class std::allocator<double> > > > &) –> void

  1. set_matrix_A(self: pyrosetta.rosetta.basic.svd.SVD_Solver, A: pyrosetta.rosetta.ObjexxFCL.FArray2D_double_t) -> None

set the matrix A of Ax=b (ObjexxFCL::FArray2D version)

C++: basic::svd::SVD_Solver::set_matrix_A(const class ObjexxFCL::FArray2D<double> &) –> void

set_vector_b(*args, **kwargs)

Overloaded function.

  1. set_vector_b(self: pyrosetta.rosetta.basic.svd.SVD_Solver, b: pyrosetta.rosetta.utility.vector1_double) -> None

set the vector b of Ax=b

C++: basic::svd::SVD_Solver::set_vector_b(const class utility::vector1<double, class std::allocator<double> > &) –> void

  1. set_vector_b(self: pyrosetta.rosetta.basic.svd.SVD_Solver, b: pyrosetta.rosetta.ObjexxFCL.FArray1D_double_t) -> None

set the vector b of Ax=b (ObjexxFCL::FArray1D version)

C++: basic::svd::SVD_Solver::set_vector_b(const class ObjexxFCL::FArray1D<double> &) –> void