Rosetta
|
Tags used to tag messeges sent by MPI functions used to decide whether a slave is requesting a new job id or flagging as job as being a bad input. More...
Namespaces | |
citation_manager | |
database | |
datacache | |
gpu | |
mpi | |
options | |
random | |
resource_manager | |
sampling | |
svd | |
tensorflow_manager | |
thread_manager | |
Classes | |
class | ComparingTracer |
class | Emitter |
Lightweight class to ease writting YAML documents (http://yaml.org) More... | |
class | YamlEmitter |
Emitter for more classically formatted YAML. More... | |
class | JsonEmitter |
Lightweight class to ease writting JSON documents, a subset of YAML (http://json.org) More... | |
struct | ExecutionResult |
Struct that hold result code + output of external process. More... | |
class | MemTracerImpl |
class | MemTracer |
class | MetricValueBase |
class | MetricValue |
class | ProfileThis |
class | DynamicProfileThis |
class | Report |
Data class to hold Report information. Use Reporter class for write access. More... | |
class | Reporter |
Proxy class to access Reporter class though OP. Allow null OP on init (all reporter function in this case do nothing) More... | |
class | Tracer |
Class for handling user debug/warnings/errors. Use instance of this class instead of 'std::cout' for all your regular io. Channel argument must be related to the location of the source file. For example if you create Tracer object in src/basic/scoring/myfile.cc, then channel must be something like 'basic.scoring.myfile'. More... | |
class | PyTracer |
Special PyRosetta friendly Tracer like buffer. Use it to capture Tracer output with set_ios_hook. More... | |
class | basic_otstream |
Base class for TracerImpl, TracerProxyImpl and UTracer objects. More... | |
struct | TracerOptions |
data structure to store all system level options for Tracer system. More... | |
class | TracerImpl |
Class for handling user debug/warnings/errors. Use instance of this class instead of 'std::cout' for all your regular io. Channel argument must be related to the location of the source file. For example if you create Tracer object in src/basic/scoring/myfile.cc, then channel must be something like 'src.basic.scoring.myfile'. More... | |
class | TracerToFile |
Typedefs | |
typedef utility::pointer::shared_ptr< Emitter > | EmitterOP |
typedef utility::pointer::shared_ptr< Emitter const > | EmitterCOP |
typedef utility::pointer::shared_ptr< YamlEmitter > | YamlEmitterOP |
typedef utility::pointer::shared_ptr< YamlEmitter const > | YamlEmitterCOP |
typedef utility::pointer::shared_ptr< JsonEmitter > | JsonEmitterOP |
typedef utility::pointer::shared_ptr< JsonEmitter const > | JsonEmitterCOP |
typedef utility::pointer::shared_ptr< MetricValueBase > | MetricValueBaseOP |
typedef utility::pointer::shared_ptr< MetricValueBase const > | MetricValueBaseCOP |
typedef utility::pointer::shared_ptr< Report > | ReportOP |
typedef utility::pointer::shared_ptr< Report const > | ReportCOP |
typedef int | TracerOP |
typedef int | TracerCOP |
typedef utility::pointer::shared_ptr< TracerImpl > | TracerImplOP |
typedef utility::pointer::shared_ptr< TracerImpl const > | TracerImplCOP |
typedef basic_otstream< char > | otstream |
typedef utility::pointer::shared_ptr< otstream > | otstreamOP |
typedef utility::pointer::shared_ptr< TracerOptions > | TracerOptionsOP |
Functions | |
void | calc_quadratic (double a, double b, double c, double &n1, double &n2) |
calculates quadratic polynomial solutions More... | |
double | subtract_degree_angles (double a, double b) |
subtract angles in degrees, restricting the range of the result More... | |
double | subtract_radian_angles (double a, double b) |
subtract angles in radians, restricting the range of the result More... | |
double | periodic_range (double a, double x) |
a is restricted to [-x/2,x/2), assuming that a=a+n*x, n=any integer More... | |
double | unsigned_periodic_range (double a, double x) |
a is restricted to [0.,x), assuming that a=a+n*x,, n=any integer More... | |
void | angle_in_range (double &ang) |
taken from wobble.cc More... | |
ExecutionResult | execute (std::string const &message, std::string const &command, std::vector< std::string > const &args, bool terminate_on_failure=true, bool silent=false) |
excute provided command_line though shell and return exit_code and output More... | |
bool | was_init_called () |
return true if core::init was already called and false otherwise More... | |
void | init () |
set global 'init_was_called' to true More... | |
void | interpolate_bilinear_by_value (double const x0y0, double const x1y0, double const x0y1, double const x1y1, double const xd, double const yd, double const binrange, bool const angles, double &val, double &dval_dx, double &dval_dy) |
get bilinear interpolate, given four points of a 2d periodic function More... | |
void | interpolate_trilinear_by_value (double const x0y0z0, double const x1y0z0, double const x0y1z0, double const x1y1z0, double const x0y0z1, double const x1y0z1, double const x0y1z1, double const x1y1z1, double const xd, double const yd, double const zd, double const binrange, bool const angles, double &val, double &dval_dx, double &dval_dy, double &dval_dz) |
paraphazed from above for three dimentions Without additional scaling this will only work if the bin sizes in each dimention are equal I think. Otherwise it could be computed as the product of three linear interpolations More... | |
void | interpolate_get_angle_bins (double const x, double const binrange, int &xbin, int &xbin_next, double &xd) |
get bin information for a periodic value w/ periodic bins More... | |
void | interpolate_bilinear (int const xbin, int const xbin_next, double const xd, int const ybin, int const ybin_next, double const yd, ObjexxFCL::FArray2A< double > xy_func, int const xbin_count, int const ybin_count, double const binrange, bool const angles, double &val, double &dval_dx, double &dval_dy) |
get bilinear interpolate of a 2d periodic function More... | |
void | interpolate_trilinear (int const xbin, int const xbin_next, double const xd, int const ybin, int const ybin_next, double const yd, int const zbin, int const zbin_next, double const zd, ObjexxFCL::FArray3A< double > xyz_func, int const xbin_count, int const ybin_count, int const zbin_count, double const binrange, bool const angles, double &val, double &dval_dx, double &dval_dy, double &dval_dz) |
void | interpolate_2d_func_of_angles (double const x, double const y, ObjexxFCL::FArray2A< double > xy_func, double &val, double &dval_dx, double &dval_dy) |
get bilinear interpolate of a 2d function with degree angle arguments More... | |
void | get_usage_from_procfilesystem (std::ostream &mem_report) |
template<class desired_T > | |
void | check_cast (const basic::MetricValueBase *const valptr, const desired_T *const, std::string const &error_msg) |
template<class desired_T > | |
void | check_cast (const basic::MetricValueBase *const valptr, std::string const &error_msg) |
template<class desired_T > | |
bool | check_cast (const basic::MetricValueBase *const valptr, const desired_T *const) |
template<class desired_T > | |
bool | check_cast (const basic::MetricValueBase *const valptr) |
template<class T > | |
bool | write_metric_value_scalar (std::ostream &os, MetricValue< T > const &metric_value, std::string const &type_name) |
template<class T > | |
bool | write_metric_value_vector1 (std::ostream &os, MetricValue< vector1< T > > const &metric_value, std::string const &type_name) |
bool | write_metric_value (std::ostream &os, MetricValueBase const &metric_value) |
central write introspection and delegation function More... | |
bool | handles_metric_value (MetricValueBase const &metric_value) |
check whether a MetricValue can be written to or read from a stream More... | |
template<class T > | |
bool | read_metric_value_scalar (std::istream &is, MetricValueBase &metric_value) |
template<class T > | |
bool | read_metric_value_scalar (std::istream &is, MetricValueBaseOP &metric_value) |
template<class T > | |
bool | read_metric_value_vector1 (std::istream &is, MetricValueBase &metric_value) |
template<class T > | |
bool | read_metric_value_vector1 (std::istream &is, MetricValueBaseOP &metric_value) |
template<class MetricValueBase_or_MetricValueBaseOP > | |
bool | read_metric_value_template (std::istream &is, MetricValueBase_or_MetricValueBaseOP &metric_value) |
central read introspection and delegation function More... | |
bool | read_metric_value (std::istream &is, MetricValueBase &metric_value) |
read a MetricValue from a stream, returns true if successful More... | |
MetricValueBaseOP | read_metric_value (std::istream &is) |
read a MetricValue from a stream, returns NULL if unsuccessful More... | |
clock_t const | SHRINK_FACTOR (2) |
double const | clock_factor (((double) SHRINK_FACTOR *100.0)/CLOCKS_PER_SEC) |
bool | show_time_on_cerr (false) |
void | show_time (basic::Tracer &tr, std::string const &msg) |
void | setup_tag2string () |
void | prof_show () |
void | prof_reset () |
void | prof_start_function_body (ProfTag const tag) |
void | prof_stop_function_body (ProfTag const tag) |
numeric::Size | get_pymol_num_unique_ids () |
char | get_pymol_chain (numeric::Size i) |
numeric::Size | get_pymol_chain_index_1 (char c) |
static std::string const | pymol_chains ("ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789abcdefghijklmnopqrstuvwxyz!@#$&.<>?]|-_\\~=%") |
Tracer & | Error () |
Predefined Error-level tracer, for use in headers. More... | |
Tracer & | Warning () |
Predefined Warning tracer, for use in headers. More... | |
Variables | |
static basic::Tracer | TR ("basic.execute") |
static bool | init_was_called = false |
static basic::Tracer | tt ("core.util.prof", basic::t_info, true) |
utility::vector1< std::string > | tag2string |
utility::vector1< clock_t > | start_clock (n_prof_tags, 0) |
utility::vector1< double > | total_clock (n_prof_tags, 0) |
utility::vector1< int > | calls (n_prof_tags, 0) |
utility::vector1< int > | bad_calls (n_prof_tags, 0) |
std::map< std::string, double > | dynamic_prof_total |
std::map< std::string, int > | dynamic_prof_calls |
double const | clock_factor |
clock_t const | SHRINK_FACTOR |
bool | show_time_on_cerr |
print "TIME_STAMP: Www Mmm dd hh:mm:ss yyyy msg" on tr.Error and on std::cerr (if boolean is true) More... | |
static basic::Tracer | TR_Error ("Error", basic::t_error) |
static basic::Tracer | TR_Warning ("Warning", basic::t_warning) |
Tags used to tag messeges sent by MPI functions used to decide whether a slave is requesting a new job id or flagging as job as being a bad input.
typedef utility::pointer::shared_ptr< Emitter const > basic::EmitterCOP |
typedef utility::pointer::shared_ptr< Emitter > basic::EmitterOP |
typedef utility::pointer::shared_ptr< JsonEmitter const > basic::JsonEmitterCOP |
typedef utility::pointer::shared_ptr< JsonEmitter > basic::JsonEmitterOP |
typedef utility::pointer::shared_ptr< MetricValueBase const > basic::MetricValueBaseCOP |
typedef utility::pointer::shared_ptr< MetricValueBase > basic::MetricValueBaseOP |
typedef basic_otstream<char> basic::otstream |
typedef utility::pointer::shared_ptr< otstream > basic::otstreamOP |
typedef utility::pointer::shared_ptr< Report const > basic::ReportCOP |
typedef utility::pointer::shared_ptr< Report > basic::ReportOP |
typedef int basic::TracerCOP |
typedef utility::pointer::shared_ptr< TracerImpl const > basic::TracerImplCOP |
typedef utility::pointer::shared_ptr< TracerImpl > basic::TracerImplOP |
typedef int basic::TracerOP |
typedef utility::pointer::shared_ptr< TracerOptions > basic::TracerOptionsOP |
typedef utility::pointer::shared_ptr< YamlEmitter const > basic::YamlEmitterCOP |
typedef utility::pointer::shared_ptr< YamlEmitter > basic::YamlEmitterOP |
enum basic::ProfTag |
void basic::angle_in_range | ( | double & | ang | ) |
taken from wobble.cc
References kmeans_adaptive_kernel_density_bb_dependent_rotlib::ang, debug_assert, enumerate_junctions::int, and ObjexxFCL::mod().
Referenced by interpolate_bilinear_by_value().
calculates quadratic polynomial solutions
solves for solutions of x in the polynomial: a*x^2+b*x+c=0
[in] | a | - in - x^2 term |
[in] | b | - in - x term |
[in] | c | - in - constant term |
[out] | n1 | - out - one solution |
[out] | n2 | - out - another solution |
References a, compute_difference::b, and kmeans_adaptive_kernel_density_bb_dependent_rotlib::c.
bool basic::check_cast | ( | const basic::MetricValueBase *const | valptr | ) |
bool basic::check_cast | ( | const basic::MetricValueBase *const | valptr, |
const desired_T * const | |||
) |
void basic::check_cast | ( | const basic::MetricValueBase *const | valptr, |
const desired_T * const | , | ||
std::string const & | error_msg | ||
) |
References Error(), and utility_exit.
void basic::check_cast | ( | const basic::MetricValueBase *const | valptr, |
std::string const & | error_msg | ||
) |
References Error(), and utility_exit.
double const basic::clock_factor | ( | ((double) SHRINK_FACTOR *100.0)/ | CLOCKS_PER_SEC | ) |
Referenced by basic::DynamicProfileThis::~DynamicProfileThis().
Tracer & basic::Error | ( | ) |
Predefined Error-level tracer, for use in headers.
References TR_Error.
Referenced by check_cast(), dna_dr_loop_test(), loop_rebuilding_test(), main(), my_main(), read_in_extension(), and APDBCMover::read_in_insert_loop_info().
ExecutionResult basic::execute | ( | std::string const & | message, |
std::string const & | command, | ||
std::vector< std::string > const & | args, | ||
bool | terminate_on_failure, | ||
bool | silent | ||
) |
excute provided command_line though shell and return exit_code and output
References find_lowest_scoring_relaxed_struct::args, execute::command, count, pyrosetta.utility.array::message, pid(), create_a3b_hbs::r, ObjexxFCL::read(), docking::s, basic::options::OptionKeys::in::file::silent, utility::to_string(), TR, and utility_exit_with_message.
char basic::get_pymol_chain | ( | numeric::Size | i | ) |
References create_a3b_hbs::i, and pymol_chains().
numeric::Size basic::get_pymol_chain_index_1 | ( | char | c | ) |
numeric::Size basic::get_pymol_num_unique_ids | ( | ) |
References pymol_chains().
void basic::get_usage_from_procfilesystem | ( | std::ostream & | mem_report | ) |
bool basic::handles_metric_value | ( | MetricValueBase const & | metric_value | ) |
check whether a MetricValue can be written to or read from a stream
References test.T008_Serialization::oss, and write_metric_value().
void basic::init | ( | ) |
set global 'init_was_called' to true
References init_was_called.
Referenced by add_constraints(), orn_macrocycle::add_orn_cst(), trivial_alascan::alascan(), dsRNA_grow::apply(), myspace::GraftTester::apply(), CenRotRBRelaxMover::apply(), CenRotDockingMover::apply(), ArchI32::ArchI32(), ArchI52::ArchI52(), ArchI53::ArchI53(), ArchO32::ArchO32(), ArchO42::ArchO42(), ArchO43::ArchO43(), ArchT32::ArchT32(), ArchT33::ArchT33(), aro_pack_pdbstats_from_pose(), utility::io::mpi_stream::basic_mpi_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::basic_mpi_ostreambase(), zlib_stream::basic_zip_istreambase< Elem, Tr, ElemA, ByteT, ByteAT >::basic_zip_istreambase(), zlib_stream::basic_zip_ostreambase< Elem, Tr, ElemA, ByteT, ByteAT >::basic_zip_ostreambase(), bind_std_array(), bind_std_forward_list(), bind_std_functional_hash(), bind_std_stl_deque(), bind_std_stl_function(), bind_std_stl_list(), bind_std_stl_multiset(), bind_std_stl_vector(), bind_std_stl_vector_1(), bind_std_unordered_map(), bind_std_unordered_set(), bind_T01_enum(), bind_T02_function(), bind_T05_default(), bind_T07_class(), bind_T07_class_match_args(), bind_T08_constructor(), bind_T09_overload(), bind_T10_inheritance(), bind_T10_virtual_inheritance(), bind_T11_override(), bind_T12_insertion_operator(), bind_T12_insertion_operator_1(), bind_T12_insertion_operator_2(), bind_T12_insertion_operator_3(), bind_T12_insertion_operator_4(), bind_T12_operator(), bind_T15_copy(), bind_T15_inner_class(), bind_T15_inner_class_1(), bind_T15_inner_class_2(), bind_T15_inner_class_fwd(), bind_T17_anonymous(), bind_T20_template(), bind_T20_template_variadic(), bind_T30_include_incl_a_include(), bind_T30_include_incl_b_include(), bind_T31_include_for_class_incl_a_include(), bind_T31_include_for_class_incl_b_include(), bind_T32_call_guard(), bind_T33_buffer_protocol(), bind_T50_add_on_binder(), bind_T60_custom_shared(), bind_T70_module_local(), bind_T70_module_local_1(), bind_T70_options(), bind_T70_options_1(), bind_T70_options_2(), bind_T71_module_local(), bind_T71_module_local_1(), bind_T80_custom_trampoline(), bind_T81_custom_trampoline_with_args(), blosum_score_alignment(), cen_fold(), ConstraintConfig::ConstraintConfig(), core_init_from_string(), cxdock_design(), DesignGlycansProtocol::DesignGlycansProtocol(), devel_main(), dock(), DockGlycansProtocol::DockGlycansProtocol(), PerformanceBenchmark::execute(), ObjexxFCL::Fstring::Fstring(), GlycanClashCheckMover::GlycanClashCheckMover(), GlycomutagenesisProtocol::GlycomutagenesisProtocol(), hbs_dock_design::hbs_dock_design(), apps::pilot::KicSandbox::KicSandbox(), main(), apps::pilot::frankdt::main(), main2(), MatchSet::MatchSet(), rosetta_binders::utility_vector_binder< Vector, L, T, Allocator >::maybe_copy_constructible(), rosetta_binders::utility_vector_binder< Vector, L, T, Allocator >::maybe_default_constructible(), my_main(), not_main(), prof_show(), proline_rama_pdbstats_from_pose(), protocols_main(), rna_helix_pdbstats_from_pose(), rna_stack_pdbstats_from_pose(), run(), TCDock::run(), beta_sc_scan::scan_chi(), protocols::abinitio::CustomAbinitio::setDefaults(), setup_sam_constraints_for_t033(), sicdock_thread_num(), system_error::system_error(), TEST(), and visualize().
|
inline |
get bilinear interpolate of a 2d function with degree angle arguments
Value and derivatives of bilinear interpolation on a 2d function with degree angle arguments represented by a 2d array with binned degree angle indices. (see Num. Recipes v2, sec 3.6, "Interpolation in two or more dimensions") The derivatives are of the bilinear interpolation only. This is not the same value as a numerical derivative of function values. The derivatives here are discontinuous every time you cross over a bin boundary in either dimension
[in] | x | - in - function argument value in 1st dim to find interpolate for |
[in] | y | - in - " 2nd dim " |
[in] | xy_func | - in - 2d array with binned angle value indicies; represents known values of 2d function being interpolated. |
[out] | val | - out - bilinear interpolated value |
[out] | dval_dx | - out - derivative of interpolated value w.r.t. 1st dim angle |
[out] | dval_dy | - out - " 2nd dim " |
!!! assumes 10 degree bins in both dimensions of xy_func
References ObjexxFCL::FArray2A< T >::dimension(), interpolate_bilinear(), interpolate_get_angle_bins(), x, and predPRE::y.
|
inline |
get bilinear interpolate of a 2d periodic function
Value and derivatives of bilinear interpolation on a 2d binned periodic function, represented as a 2d array. (see Num. Recipes v2, sec 3.6, "Interpolation in two or more dimensions") Note that it is automatically assumed that the arguments are periodic, that is f(a,b),a,b=periodic value; the *value* of the function can be treated as periodic ( fixed to a periodicity of 360.) as well when the input parameter angle is set to true The derivatives are of the bilinear interpolation only. This is not the same value as a numerical derivative of function values. The derivatives here are discontinuous every time you cross over a bin boundary in either dimension
[in] | xbin | - in - low bin in 1st dim |
[in] | xbin_next | - in - high bin in 1st dim |
[in] | xd | - in - error between low and real val in 1st dim |
[in] | ybin | - in - " 2nd dim " |
[in] | ybin_next | - in - " 2nd dim " |
[in] | yd | - in - " 2nd dim " |
[in] | xy_func | - in - 2d-array specifying the 2d binned function values, assumed to be periodic in each dimension |
[in] | xbin_count | - in - number of bins in the 1st dim of the periodic function |
[in] | ybin_count | - in - " 2nd dim " |
[in] | binrange | - in - range of bin in angles ( for both dimensions ) |
[in] | angles | - in - if true, treat the the values of xy_func as as having a periodicity of 360. ( note that the bin ranges are already assumed periodic ) |
[out] | val | - out - bilinear interpolated value of xy_func |
[out] | dval_dx | - out - derivative of interpolation w.r.t 1st dim |
[out] | dval_dy | - out - " 2nd dim " |
References oop_conformations::angles, ObjexxFCL::FArray2A< T >::dimension(), and interpolate_bilinear_by_value().
Referenced by interpolate_2d_func_of_angles().
void basic::interpolate_bilinear_by_value | ( | double const | x0y0, |
double const | x1y0, | ||
double const | x0y1, | ||
double const | x1y1, | ||
double const | xd, | ||
double const | yd, | ||
double const | binrange, | ||
bool const | angles, | ||
double & | val, | ||
double & | dval_dx, | ||
double & | dval_dy | ||
) |
get bilinear interpolate, given four points of a 2d periodic function
Value and derivatives of bilinear interpolation between four specified input values, which are the function values corresponding to four points which bracket the interpolated point in 2-dimensions. (see diagram below) (see Num. Recipes v2, sec 3.6, "Interpolation in two or more dimensions") Note that it is automatically assumed that the arguments are periodic, that is f(a,b),a,b=periodic value; the *value* of the function can be treated as periodic ( fixed to a periodicity of 360.) as well when the input parameter angle is set to true The derivatives are of the bilinear interpolation only. This is not the same value as a numerical derivative of function values. The derivatives here are discontinuous every time you cross over a bin boundary in either dimension
bilinear interpolation:
x0y1 +-------—+ x1y1 | | 1-yd | (x,y) |
[in] | x0y0 | - in - input bracketing function value (see diagram) |
[in] | x1y0 | - in - " " |
[in] | x0y1 | - in - " " |
[in] | x1y1 | - in - " " |
[in] | xd | - in - error value in the 1st dim between lower lst dim bracket value 'x0' and point to be interpolated, 'x' |
[in] | yd | - in - " 2nd dim " |
[in] | binrange | - in - range of bin in angles ( for both dimensions ) |
[in] | angles | - in - if true, treat the the values of xy_func as as having a periodicity of 360. ( note that the bin ranges are already assumed periodic ) |
[out] | val | - out - biliinear interpolated value |
[out] | dval_dx | - out - derivative of 'val' in the 1st ('x') dim |
[out] | dval_dy | - out - " 2nd dim " |
References angle_in_range(), oop_conformations::angles, and subtract_degree_angles().
Referenced by interpolate_bilinear().
|
inline |
get bin information for a periodic value w/ periodic bins
for 'x', an angle in degrees, and angular bins of width 'binrange' aligned to start bin 1 at a value of 0. degrees, find the two bins, whose average bin values 'x' falls between, and report the error between the lower average bin value and the real value of 'x'
[in] | x | - in - angle in degrees |
[in] | binrange | - in - degrees per bin |
[out] | xbin | - out - anglular bin whose average value is the lower of the two average bin values bracketing 'x' |
[out] | xbin_next | - out - anglular bin whose average value is the lower of the two average bin values bracketing 'x' |
[out] | xd | - out - error between the average value of bin 'xbin' and 'x' |
References ObjexxFCL::mod(), and x.
Referenced by interpolate_2d_func_of_angles().
|
inline |
void basic::interpolate_trilinear_by_value | ( | double const | x0y0z0, |
double const | x1y0z0, | ||
double const | x0y1z0, | ||
double const | x1y1z0, | ||
double const | x0y0z1, | ||
double const | x1y0z1, | ||
double const | x0y1z1, | ||
double const | x1y1z1, | ||
double const | xd, | ||
double const | yd, | ||
double const | zd, | ||
double const | binrange, | ||
bool const | angles, | ||
double & | val, | ||
double & | dval_dx, | ||
double & | dval_dy, | ||
double & | dval_dz | ||
) |
paraphazed from above for three dimentions Without additional scaling this will only work if the bin sizes in each dimention are equal I think. Otherwise it could be computed as the product of three linear interpolations
Perform linear interpolation between x0y0z0 and x1y0z0 to find y0z0 Preform linear interpolation between x0y0z1 and x1y0z1 to find y0z1 Preform linear interpolation between x0y1z1 and x1y1z1 to find y1z1 Preform linear interpolation between x0y1z0 and x1y1z0 to find y1z0 Preform linear interpolation between y0z0 and y1z0 to find z0 Preform linear interpolation between y0z1 and y1z1 to find z1 Preform linear interpolation between z0 and z1 to find val
References oop_conformations::angles.
Referenced by interpolate_trilinear().
a is restricted to [-x/2,x/2), assuming that a=a+n*x, n=any integer
[in] | a | - in - input value with periodicity x |
[in] | x | - in - periodicity of a |
References a, ObjexxFCL::mod(), and x.
Referenced by BBG_Cyclic_Mover::get_L_move(), get_omgphipsi_bins(), subtract_degree_angles(), and subtract_radian_angles().
void basic::prof_reset | ( | ) |
References bad_calls, calls, n_prof_tags, option, PROF_START, basic::options::OptionKeys::run::profile, start_clock, TOTAL, and total_clock.
Referenced by capri15_relax(), capri_t033_loop_test(), design_test(), diversify_sam_loop_test(), dna_dr_loop_test(), dna_io_test(), dna_stats(), ga_main(), loop_modeling_test(), loop_rebuilding_test(), luxr_test(), main(), my_main(), sequence_tolerance_main(), sequence_tolerance_mf_main(), simple_loop_modeling_test(), small_min_test(), spec_test(), and zf_relax_test().
void basic::prof_show | ( | ) |
References ObjexxFCL::format::A(), bad_calls, calls, dynamic_prof_calls, dynamic_prof_total, ObjexxFCL::format::F(), create_a3b_hbs::i, ObjexxFCL::format::I(), init(), n_prof_tags, option, PROF_START, PROF_STOP, basic::options::OptionKeys::run::profile, setup_tag2string(), predPRE::t, tag, tag2string, TOTAL, total_clock, and tt.
Referenced by capri15_relax(), capri_t033_loop_test(), design_test(), diversify_sam_loop_test(), dna_dr_loop_test(), dna_io_test(), dna_stats(), ga_main(), loop_modeling_test(), loop_rebuilding_test(), luxr_test(), main(), my_main(), run(), sequence_tolerance_main(), sequence_tolerance_mf_main(), simple_loop_modeling_test(), small_min_test(), spec_test(), and zf_relax_test().
|
inline |
References calls, basic::options::option, basic::options::OptionKeys::run::profile, SHRINK_FACTOR, start_clock, and tag.
|
inline |
|
static |
Referenced by get_pymol_chain(), get_pymol_chain_index_1(), and get_pymol_num_unique_ids().
MetricValueBaseOP basic::read_metric_value | ( | std::istream & | is | ) |
read a MetricValue from a stream, returns NULL if unsuccessful
References read_metric_value_template().
bool basic::read_metric_value | ( | std::istream & | is, |
MetricValueBase & | metric_value | ||
) |
read a MetricValue from a stream, returns true if successful
References read_metric_value_template().
bool basic::read_metric_value_scalar | ( | std::istream & | is, |
MetricValueBase & | metric_value | ||
) |
References value.
bool basic::read_metric_value_scalar | ( | std::istream & | is, |
MetricValueBaseOP & | metric_value | ||
) |
bool basic::read_metric_value_template | ( | std::istream & | is, |
MetricValueBase_or_MetricValueBaseOP & | metric_value | ||
) |
central read introspection and delegation function
Referenced by read_metric_value().
bool basic::read_metric_value_vector1 | ( | std::istream & | is, |
MetricValueBase & | metric_value | ||
) |
References test.T008_Serialization::iss, value, and vec().
bool basic::read_metric_value_vector1 | ( | std::istream & | is, |
MetricValueBaseOP & | metric_value | ||
) |
void basic::setup_tag2string | ( | ) |
References ABINITIO, APPLY_BB_MOVE, APPLY_MOVE, APPLY_SC_MOVE, ARCHIVE_BLOCK_FILE, ARCHIVE_CRITICAL_JOBSCOMPLETE, ARCHIVE_EVAL_DECOYS, ARCHIVE_EVALUATORS, ARCHIVE_FILL_POSE, ARCHIVE_GEN_BATCH, ARCHIVE_JOBSCOMPLETE, ARCHIVE_READ_DECOYS, ARCHIVE_SCORE_POSE, ARCHIVE_SYNC_BATCHES, ATOM_TREE_UPDATE_INTERNAL_COORDS, ATOM_TREE_UPDATE_XYZ_COORDS, BACKRUB_MOVER, CA_RMSD_EVALUATION, CANONICALMOVER_WRITE_TO_FILE, CCD_CLOSE, CHECK_COMM_SIZE, CHEMICAL_MAKE_POSE, COMM_REDUCE_SIZE, CONFORMATION_COPY, CONFORMATION_DETECT_DISULF, CONFORMATION_FIX_DISULF, CONSTRAINT_SCORE, CONSTRAINT_SET_COPY, CONSTRUCT_DISTANCE_MATRIX, COPY_COORDS, DATA_STORAGE, DFUNC, ENERGIES_COPY, ENERGY_ENVPAIR_POTENTIAL, ENERGY_GRAPH_COPY, FACTS_GET_ALL_BORN_RADII, FACTS_ROTAMER_BACKGROUND_ENERGIES, FACTS_ROTAMER_PAIR_ENERGIES, FACTS_SETUP_FOR_PACKING, FARRAY_MANIPULATION, FINALIZE, FIND_SUGAR_AND_SUITE_FRAGS_I, FIND_SUGAR_AND_SUITE_FRAGS_II, FRAGMENT_MOVER, FRAGMENTPICKING, FRAGMENTPICKING_ATOMPAIR_SCORE, FRAGMENTPICKING_CANDIDATES_COLLECTING, FRAGMENTPICKING_CS_SCORE, FRAGMENTPICKING_DIHEDRALCONSTR_SCORE, FRAGMENTPICKING_PHIPSI_SCORE, FRAGMENTPICKING_PROFILE_CAHING, FRAGMENTPICKING_PROFILE_SCORE, FRAGMENTPICKING_READ_VALL, FRAGMENTPICKING_SECONDARY_SCORE, FUNC, GB_GET_ALL_BORN_RADII, GB_SETUP_FOR_PACKING, GEN_BORN_ROTAMER_BACKGROUND_ENERGIES, GEN_BORN_ROTAMER_PAIR_ENERGIES, GET_ENERGIES, HIERARCHICAL_ADD, HIERARCHICAL_ADD_ELEM_TO_CACHE, HIERARCHICAL_EVALUATE, HIERARCHICAL_FIND, HIERARCHICAL_FIND_ADDRESS, HIERARCHICAL_POOL_SIZE, HIERARCHICAL_ROUND, HIERARCHICAL_SORT_ADDRESSES, HIERARCHY_FIND_ADDRESS, HIERARCHY_GET_NEXT_CANDIDATE, HIERARCHY_RECV_COORDS, HIERARCHY_SEND_COORDS, HIERARCHY_SETUP_TO_RECV, create_a3b_hbs::i, INITIALIZE, INITIALIZE_HIERARCHY, INSERT_FRAGS, JD2, JD2_INIT_MOVER, JD2_OUTPUT, JD2_SILENT_OUTPUTTER, KDTREE_CONSTRUCT, KDTREE_SEARCH, LIB_FULL_PATH, LOAD_HIERARCHY, MAKE_BASE_PAIR_MOVE, MAKE_BASE_STEP_MOVE, MASTER_PROCESS_NEW_STRUCTURES, MC_ACCEPT, MEAN_FIELD, MINMOVER_APPLY, MPI_FILE_BUF, MPI_GATHER_BARRIER, MPI_JD2_WAITS_FOR_ARCHIVE, MPI_MASTER_BCAST_COORDS, MPI_MASTER_BCAST_NEW_COMM_SIZE, MPI_MASTER_BCAST_NEW_POOL_RANKS, MPI_MASTER_BCAST_NUM_STRUCTURES_TO_ADD, MPI_MASTER_BCAST_WINNING_RANKS, MPI_MASTER_BCAST_WINNING_STRUCTURES, MPI_NOTIFY_ARCHIVE, MPI_POOL_MASTER_THINKS, MPI_POOL_SLAVE_THINKS, MPI_SEND_ACCEPTED, MPI_SEND_UPDATE, MPI_SLAVE_REPORT_NEW_COORDS, MPI_SLAVE_REPORT_SIZES, MPI_SYNC_POOL_DIFF, MPIBARRIER, MPIBARRIER_BEGIN, MPIBARRIER_END, MPICANONICALSAMPLING, MPICOMMCREATION, MPIH_ADD_FIRST_STRUCTURE, MPIH_EVAL_AGAINST_NBR, MPIH_EVAL_CHECK_PROGRESS, MPIH_EVAL_COMMUNICATE_NEW, MPIH_PREPARE_WRITE_STRUCTURES, MPIH_UPDATE_EVAL, MPIH_WRITE_STRUCT, MPIPOOLCOMMUNICATION, MULTIPOLE_ENERGIES, MULTIPOLE_SETUP, n_prof_tags, NOESY_ASSIGN_CALIBRATE, NOESY_ASSIGN_CHEMSHIFT, NOESY_ASSIGN_CP_GEN_CST, NOESY_ASSIGN_DECOY_COMP, NOESY_ASSIGN_DIAGONAL, NOESY_ASSIGN_DIST_APPLY, NOESY_ASSIGN_DIST_CST_CAST, NOESY_ASSIGN_DIST_CST_EVAL, NOESY_ASSIGN_DIST_INIT, NOESY_ASSIGN_DIST_MAKE_POSE, NOESY_ASSIGN_DIST_PREP_SCORE, NOESY_ASSIGN_DIST_SET_COMPABILITY_SCORE, NOESY_ASSIGN_DISTANCE, NOESY_ASSIGN_ELIMINATE, NOESY_ASSIGN_GEN_CST, NOESY_ASSIGN_INITIAL, NOESY_ASSIGN_MAP2CB, NOESY_ASSIGN_MAP2CB_NEW, NOESY_ASSIGN_NETWORK, NOESY_ASSIGN_NETWORK_COMPUTE_NK, NOESY_ASSIGN_NETWORK_FILL_COV_GAMMA, NOESY_ASSIGN_NETWORK_FIND_RAW_ASSIGN, NOESY_ASSIGN_NETWORK_INVALIDATE_SEQ_NOE, NOESY_ASSIGN_NETWORK_PEAK_COUNT, NOESY_ASSIGN_NETWORK_PEAK_COUNT_EVAL, NOESY_ASSIGN_NETWORK_RETRIEVE_ASSIGN, NOESY_ASSIGN_NETWORK_TOTAL, NOESY_ASSIGN_NMR_STRING, NOESY_ASSIGN_PA_GEN_CST, NOESY_ASSIGN_READ_INPUT, NOESY_ASSIGN_REQUIRES_CB_MAPPING, NOESY_ASSIGN_SYMMETRY, NOESY_ASSIGN_TOTAL, NOESY_ASSIGN_UPDATE_PEAK_VOL, NOESY_ASSIGN_WRITE_ASSIGNMENTS, NOESY_ASSIGN_WRITE_CST, PACK_ROTAMERS, POOL_RMSD_ADD_STRUCTURE, POOL_RMSD_EVALUATE, POOL_RMSD_MASTER_EVALUATE, POSE_COPY, RG, RG_LOCAL, ROTAMER_TRIALS, SAVE_ARCHIVE, SAXS, SCORE, SCORE_BEGIN_NOTIFY, SCORE_DOT, SCORE_END_NOTIFY, SCORE_FINALIZE, SCORE_LONG_RANGE_ENERGIES, SCORE_NEIGHBOR_ENERGIES, SCORE_ONEBODY_ENERGIES, SCORE_SETUP, SECONDARY_STRUCTURE_ENERGY, SECONDARY_STRUCTURE_HSPAIR_ENERGY, SECONDARY_STRUCTURE_SHEETS_FROM_DIMERS_ENERGY, SECONDARY_STRUCTURE_SSPAIR_ENERGY, SEQUENCE_COMPARISON, SETUP_NBLIST, SIDECHAINMCMOVER, SIDECHAINMOVER, SILENT_FILL_POSE, SILENT_FILL_STRUCT, SILENT_READ_TAG_TEST, SILENT_SET_POSE_COORDS, SIMANNEALING, SIMPLEINTGRAPH, SORT_POOL, STAGE1, STAGE2, STAGE3, STAGE4, STAGE5, ObjexxFCL::string_of(), tag2string, TEST1, TEST2, TEST3, TEST4, TOTAL, TRUNCATED_SCORE_EVALUATOR, UPDATE_RESIDUE_COORDINATES, UPDATE_RESIDUE_NEIGHBORS, UPDATE_RESIDUE_TORSIONS, VDW_ENERGY, WRITE_DECOYS_TO_HIERARCHY, and WRITE_TO_FILE.
Referenced by prof_show().
void basic::show_time | ( | basic::Tracer & | tr, |
std::string const & | msg | ||
) |
bool basic::show_time_on_cerr | ( | false | ) |
Referenced by show_time().
clock_t const basic::SHRINK_FACTOR | ( | 2 | ) |
subtract angles in degrees, restricting the range of the result
given angles a and b in degrees, get a-b restricted to [-180.,180.), assuming that a-b=a-b+n*360, n=any integer
[in] | a | - in - angle in degrees |
[in] | b | - in - angle in degrees |
References a, compute_difference::b, and periodic_range().
Referenced by atom_tree_torsion_test(), init_torsions_still_present(), and interpolate_bilinear_by_value().
subtract angles in radians, restricting the range of the result
given angles a and b in degrees, get a-b restricted to [-pi,pi), assuming that a-b=a-b+n*2*pi, n=any integer
[in] | a | - in - angle in radians |
[in] | b | - in - angle in radians |
References a, compute_difference::b, periodic_range(), and numeric::constants::f::pi_2.
a is restricted to [0.,x), assuming that a=a+n*x,, n=any integer
[in] | a | - in - input value with periodicity x |
[in] | x | - in - periodicity of a |
References a, ObjexxFCL::mod(), and x.
Referenced by pose2bin().
Tracer & basic::Warning | ( | ) |
Predefined Warning tracer, for use in headers.
References TR_Warning.
Referenced by basic::Emitter::assert_in(), distribute_jobs(), find_closest_atom(), ligand_dock_main_jd1(), main(), ui::widgets::PoseEditor::on_functions_double_clicked(), CalcsTestMover::register_calculators(), and sasa_qdMover::sasa_qdMover().
bool basic::was_init_called | ( | ) |
return true if core::init was already called and false otherwise
References init_was_called.
bool basic::write_metric_value | ( | std::ostream & | os, |
MetricValueBase const & | metric_value | ||
) |
central write introspection and delegation function
write a MetricValue to a stream, returns true if successful
This function currently supports some of the most often used MetricValues. The type is always encoded in the output so that an object of the same class can be generated during reading. The supported types and their formats is as follows:
double double <num> int Int <num> std::size_t std::size_t <num> bool Bool <0 or 1> utility::vector1<double> Real[ <num1> <num2> ... ] utility::vector1<int> Int[ <num1> <num2> ... ] utility::vector1<size_t> size_t[ <num1> <num2> ... ] utility::vector1<bool> Bool[ <bool1> <bool2> ... ]
References write_metric_value_scalar(), and write_metric_value_vector1().
Referenced by handles_metric_value().
bool basic::write_metric_value_scalar | ( | std::ostream & | os, |
MetricValue< T > const & | metric_value, | ||
std::string const & | type_name | ||
) |
References basic::MetricValue< T >::value().
Referenced by write_metric_value().
bool basic::write_metric_value_vector1 | ( | std::ostream & | os, |
MetricValue< vector1< T > > const & | metric_value, | ||
std::string const & | type_name | ||
) |
References vec().
Referenced by write_metric_value().
utility::vector1< int > basic::bad_calls | ( | n_prof_tags | , |
0 | |||
) |
Referenced by prof_reset(), prof_show(), and prof_stop_function_body().
utility::vector1< int > basic::calls | ( | n_prof_tags | , |
0 | |||
) |
Referenced by prof_reset(), prof_show(), prof_start_function_body(), and prof_stop_function_body().
|
extern |
Referenced by prof_stop_function_body().
std::map<std::string, int> basic::dynamic_prof_calls |
Referenced by prof_show(), and basic::DynamicProfileThis::~DynamicProfileThis().
std::map<std::string, double> basic::dynamic_prof_total |
Referenced by prof_show(), and basic::DynamicProfileThis::~DynamicProfileThis().
|
static |
Global variable to check if core::init was ever called. Used to detect situations when user forgot to call init and display helpful message instead of silently crashing. We put it here instead of core/init/init.cc so code from all libraries level have access to it
Referenced by init(), and was_init_called().
|
extern |
print "TIME_STAMP: Www Mmm dd hh:mm:ss yyyy msg" on tr.Error and on std::cerr (if boolean is true)
|
extern |
Referenced by prof_start_function_body(), and prof_stop_function_body().
utility::vector1< clock_t > basic::start_clock | ( | n_prof_tags | , |
0 | |||
) |
Referenced by prof_reset(), prof_start_function_body(), and prof_stop_function_body().
utility::vector1< std::string > basic::tag2string |
Referenced by prof_show(), and setup_tag2string().
utility::vector1< double > basic::total_clock | ( | n_prof_tags | , |
0 | |||
) |
Referenced by prof_reset(), prof_show(), and prof_stop_function_body().
|
static |
Referenced by adjust_ref_weights(), dsRNA_grow::apply(), CrystDesign::apply(), CrystCluster::apply(), CrystFFTDock::apply(), basic::random::determine_random_number_seed(), CrystFFTDock::do_convolution(), basic::thread_manager::RosettaThreadManager::do_multistage_work_vector_in_threads(), CrystDesign::do_reversion(), basic::thread_manager::RosettaThreadManager::do_work_vector_in_threads(), execute(), CrystDesign::filter_and_report(), CrystDesign::greedy_revert_unsats(), basic::random::init_random_generators(), basic::citation_manager::CitationManager::load_rosetta_citations_from_database(), main(), basic::citation_manager::CitationManager::populate_doi_rosetta_citation_map(), CrystFFTDock::setup_maps(), basic::citation_manager::CitationManager::write_all_citations_and_unpublished_author_info(), CrystFFTDock::writeMRC(), basic::tensorflow_manager::RosettaTensorflowManager::~RosettaTensorflowManager(), and basic::thread_manager::RosettaThreadAllocation::~RosettaThreadAllocation().
|
static |
Referenced by Error().
|
static |
Referenced by Warning().
|
static |
Referenced by prof_show().