view release on metacpan or search on metacpan
- round-tripping fuzzy locations (they will be stored according
to their Bio::Location::CoordinatePolicyI interpretation)
- Bio::Annotation::DBLink::optional_id
To understand the layout of the API and how you can interact with the
adaptors to formulate your own queries, here is what you should know
and read (i.e., read the PODs of all interfaces and modules named
below).
1) Bio::DB::BioDB acts as a factory of database adaptors, where a
database adaptor encapsulates an entire database, not a specific
4) A persistence adaptor will implement Bio::DB::PersistenceAdaptorI.
Apart from actually implementing all the persistence methods for
persistent objects, a persistence adaptor allows you to locate
objects in the database by key and by query. You can
find_by_primary_key(), find_by_unique_key(), find_by_association(),
and find_by_query(). The latter allows you to formulate object queries
as Bio::DB::Query::BioQuery objects and retrieve the matching objects.
5) The guiding principle for the redesign of the adaptors was to
separate business logic from schema logic. While business logic is
largely driven by the object model (hence, by the bioperl object
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Bio/Tools/Run/StandAloneBlast.pm view on Meta::CPAN
Blastpgp (including Psiblast)
-j is the maximum number of rounds (default 1; i.e., regular BLAST)
-h is the e-value threshold for including sequences in the
score matrix model (default 0.001)
-c is the "constant" used in the pseudocount formula specified in the paper (default 10)
-B Multiple alignment file for PSI-BLAST "jump start mode" Optional
-Q Output File for PSI-BLAST Matrix in ASCII [File Out] Optional
rpsblast
view all matches for this distribution
view release on metacpan or search on metacpan
and stores the result in "C<$set3>".
This can be written as "C<$set3 = ($set1 u $set2) \ ($set1 n $set2)>" in set
theory (the union of the two sets less their intersection).
When sets are implemented as bit vectors then the above formula is
equivalent to the exclusive-or between corresponding bits of the two
bit vectors (hence the name of this method).
Note that this method is also much more efficient than evaluating the
above formula explicitly since it uses a built-in machine language
instruction internally.
In-place calculation is also possible, i.e., "C<$set3>" may be identical
with "C<$set1>" or "C<$set2>" or both.
view all matches for this distribution
view release on metacpan or search on metacpan
src/boost/config/auto_link.hpp view on Meta::CPAN
Algorithm:
~~~~~~~~~~
Libraries for Borland and Microsoft compilers are automatically
selected here, the name of the lib is selected according to the following
formula:
BOOST_LIB_PREFIX
+ BOOST_LIB_NAME
+ "_"
+ BOOST_LIB_TOOLSET
view all matches for this distribution
view release on metacpan or search on metacpan
include/boost/config/auto_link.hpp view on Meta::CPAN
Algorithm:
~~~~~~~~~~
Libraries for Borland and Microsoft compilers are automatically
selected here, the name of the lib is selected according to the following
formula:
BOOST_LIB_PREFIX
+ BOOST_LIB_NAME
+ "_"
+ BOOST_LIB_TOOLSET
view all matches for this distribution
view release on metacpan or search on metacpan
examples/taln-2012-long-003-resume.ann view on Meta::CPAN
T1 term 4 38 méthode d'extraction d'information
T2 term 70 96 remplissage de formulaires
T3 term 54 61 graphes
T4 term 4 61 méthode d'extraction d'information fondée sur les graphes
T5 term 106 160 systèmes dâextraction dâinformation sur des événements
T6 term 106 141 systèmes dâextraction dâinformation
T7 term 190 228 remplissage automatique de formulaires
T8 term 244 273 informations sur un événement
T9 term 294 313 texte non structuré
T10 term 318 343 remplissage de formulaire
T11 term 441 463 éléments dâinformation
T12 term 480 489 événement
T13 term 417 422 texte
T14 term 592 613 segmentation du texte
T15 term 592 627 segmentation du texte en événements
examples/taln-2012-long-003-resume.ann view on Meta::CPAN
T19 term 753 780 entités liées à lâévénement
T20 term 786 796 évaluation
T21 term 822 847 corpus annoté de dépêches
T22 term 822 835 corpus annoté
T23 term 899 906 F-score
T24 term 931 957 remplissage de formulaires
T25 term 378 389 information
T26 term 537 545 approche
view all matches for this distribution
view release on metacpan or search on metacpan
sub newop {
my ( $self, $owner, $left, $right ) = @_;
return $left < $right;
}
__END__
"a disjunction of conjunctions of literals, where each literal is an elementary relational formula or its negation"
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/Colissimo.pm view on Meta::CPAN
images with the right number of pixels to include them
into PDF with L<PDF::API2>, which uses 72dpi resolution
for images unless you specify width and height explicitly
(see L<PDF::API2::Content>).
The formula for calculating width in mm for a 72dpi
resolution is as follows:
(1px * 25.4) / 72dpi
This fits into Colissimo's requirement for the basic
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/EDI/CodeList/CodeListResponsibleAgencyCode.pm view on Meta::CPAN
'352' => [ 'US, Office of Fossil Energy (OFE)',
'A division of the US Department of Energy.' ],
'353' => [ 'US, Office of Foreign Missions (OFM)',
'A division of the US Department of State. OFM provides the legal foundation to facilitate secure and efficient operations of US missions abroad, and of foreign missions and international organizations in the United States.' ],
'354' => [ 'US, Bureau of Oceans and International Environmental and',
'Scientific Affairs (OES) A division of the US Department of State. OES works with issues surrounding foreign policy formulation and implementation in global environment, science, and technology.' ],
'355' => [ 'US, Office of Naval Intelligence (ONI)',
'A division of the US Department of Defense (Navy).' ],
'356' => [ 'US, Pipeline and Hazardous Materials Safety Administration',
"(PHMSA) A division of the US Department of Transportation. PHMSA works to protect the American public and the environment by ensuring the safe and secure movement of hazardous materials to industry and consumers by all transportation modes, incl...
'357' => [ 'US, Alcohol and Tobacco Tax and Trade Bureau (TTB)',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/RO/TaxDeduction.pm view on Meta::CPAN
my $amount = $self->deduction->amount;
if ( $vbl <= $self->vbl_min ) {
return $amount;
}
elsif ( ( $vbl > $self->vbl_min ) && ( $vbl <= $self->vbl_max ) ) {
$amount = $self->_tax_deduction_formula($vbl, $amount);
return ( blessed $amount ) ? $amount->bstr : $amount;
}
else {
return 0; # 0 for VBL > vbl_max
}
}
sub _tax_deduction_formula {
my ( $self, $vbl, $base_deduction ) = @_;
my $amount = $base_deduction * ( 1 - ( $vbl - $self->f_min ) / $self->f_max );
return $self->_round_to_tens($amount);
}
lib/Business/RO/TaxDeduction.pm view on Meta::CPAN
Return the deduction calculated for the given amount.
Starting with the current version (0.004) the appropriate algorithm
for the tax deduction calculation year is chosen.
=head3 _tax_deduction_formula
Formula for calculating the tax deduction for amounts above C<vbl_min>
and less or equal to C<vbl_max>.
=head3 _round_to_int
view all matches for this distribution
view release on metacpan or search on metacpan
lib/Business/US_Amort.pm view on Meta::CPAN
surface as tiny discrepancies in loan calculations -- "tiny" as in
less than $1 for even multi-million-dollar loans amortized over
decades.
* Moreover, oddities may creep in because of round-off errors. This
seems to result from the fact that the formula that takes term,
interest rate, and principal, and returns the monthly payment, doesn't
know that a real-world monthly payment of "$1020.309" is impossible --
and so that ninth of a cent difference can add up across the months.
At worst, this may cause a 30-year-loan loan coming to term in 30
years and 1 month, with the last payment being needed to pay off a
view all matches for this distribution
view release on metacpan or search on metacpan
t/xml-catalog/cXML-1.2.036/cXML.dtd view on Meta::CPAN
This value is auto calculated when aboveTolerance or belowTolerance are send.
If the supplier does not enter those attributes, "nonconformance" attribute could be send.
deviation
The deviation value.
variance
This will be used when we have valuation based on formula.
numberOfDefects
Number of the defects in this valuation.
serialNumber
Single unit number for the Unit to Be Inspected.
inspectionDate
view all matches for this distribution
view release on metacpan or search on metacpan
examples/prima-ellipse.pl view on Meta::CPAN
my $rotation = atan2($y - 250, $x - 250);
cblock {
Handle widget_handle = gimme_the_mate($self);
/* Draw an ellipse tilted toward the mouse. Thanks to
* http://www.uwgb.edu/dutchs/Geometry/HTMLCanvas/ObliqueEllipses5.HTM
* for the formula. */
int i;
double theta, theta_inc, theta_0, sin_theta_0, cos_theta_0;
/* get the rotation, set the per-step theta increment */
theta_0 = SvNV($rotation);
view all matches for this distribution
view release on metacpan or search on metacpan
Include/test.h view on Meta::CPAN
/* To directly access the 'Nodes' and/or 'Areas' while bypassing the */
/* Extensions, perform an absolute (from beginning of file) seek to */
/* sizeof(CONFIG) + CONFIG.offset */
/* If you want to access the 'Areas', you have to add the following */
/* value to the above formula: CONFIG.NodeCnt * CONFIG.NodeRecSize */
typedef struct
{
Address addr; /* Main address */
Address arcdest; /* ARCmail fileattach address */
view all matches for this distribution
view release on metacpan or search on metacpan
lib/C/TinyCompiler.pm view on Meta::CPAN
$context->code('Body') .= "\n#line " . (__LINE__+1) . ' "' . __FILE__ . q{"
... code goes here ...
};
and then your error reporting would say where the error occurred with respect to
the line in your script. That formula is long-winded and error prone, so you can
use this useful bit of shorthand instead:
$context->code('Body') .= C::TinyCompiler::line_number(__LINE__) . q{
... code goes here ...
};
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CAM/PDF.pm view on Meta::CPAN
$da =~ s/ \/$fontname\s+0\s+Tf\b /\/$fontname $fontsize Tf/gxms;
}
if ($fontsize)
{
# This formula is TOTALLY empirical. It's probably wrong.
$ty = $border + 2 + (9 - $fontsize) * 0.4;
}
# escape characters
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CAM/PDFTaxforms.pm view on Meta::CPAN
$fontsize *= $maxwidth / $fontwidth if ($fontwidth > $maxwidth);
$da =~ s/ \/$fontname\s+0\s+Tf\b /\/$fontname $fontsize Tf/gxms;
}
if ($fontsize)
{
# This formula is TOTALLY empirical. It's probably wrong.
# #JWT:CHGD. TO NEXT: $ty = $border + 2 + (9 - $fontsize) * 0.4;
$ty = $border + 2 + (5 - $fontsize) * 0.4;
}
view all matches for this distribution
view release on metacpan or search on metacpan
share/code-list.csv view on Meta::CPAN
,M42,mile (statute mile) per second squared,Unit of the length according to the Imperial system of units divided by the power of the SI base unit second by exponent 2.,2,mi/s²,"1,609 344 x 10³ m/s²"
,M43,mil,"Unit to indicate an angle at military zone, equal to the 6400th part of the full circle of the 360° or 2·p·rad.",2,mil,"9,817 477 x 10â»â´ rad"
,M44,revolution,Unit to identify an angle of the full circle of 360° or 2·p·rad (Refer ISO/TC12 SI Guide).,2,rev,"6,283 185 rad"
,M45,degree [unit of angle] per second squared,360 part of a full circle divided by the power of the SI base unit second and the exponent 2.,1M,°/s²,"1,745 329 x 10â»Â² rad / s"
,M46,revolution per minute,Unit of the angular velocity.,2,r/min,"0,104 719 8 rad/s"
,M47,circular mil,"Unit of an area, of which the size is given by a diameter of length of 1 mm (0,001 in) based on the formula: area = p·(diameter/2)².",2,cmil,"5,067 075 x 10â»Â¹â° m²"
,M48,square mile (based on U.S. survey foot),"Unit of the area, which is mainly common in the agriculture and forestry.",2,mi² (US survey),"2,589 998 x 10ⶠm²"
,M49,chain (based on U.S. survey foot),Unit of the length according the Anglo-American system of units.,2,ch (US survey) ,"2,011684 x 10 m"
,M5,microcurie,,2S,µCi,"3,7 x 10ⴠBq"
,M50,furlong,Unit commonly used in Great Britain at rural distances: 1 furlong = 40 rods = 10 chains (UK) = 1/8 mile = 1/10 furlong = 220 yards = 660 foot.,2,fur,"2,011 68 x 10² m"
,M51,foot (U.S. survey),"Unit commonly used in the United States for ordnance survey.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CGI/Bus.pod view on Meta::CPAN
L<CGI::Bus::tmsql|CGI/Bus/tmsql> changed: new 'thead' and 'tbody' HTML tags in C<cmdlst>.
=head2 08/11/2002
gwo.cgi changed: 'otime' field SQL formula changed from '..., gwo.utime)' to
'..., COALESCE(gwo.etime, gwo.utime)'.
gwo.cgi new: 'All News', 'Our News', 'Pers News' views.
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CGI/FormBuilder/Messages/es.pm view on Meta::CPAN
# First, create a hash of messages for this language
__PACKAGE__->define_messages({
lang => 'es_ES',
charset => 'utf-8',
js_invalid_start => '%s error(es) fueron encontrados en su formulario:',
js_invalid_end => 'Por favor corrija en el/los campo(s) e intente de nuevo\n',
js_invalid_input => 'Introduzca un valor válido para el campo: "%s"',
js_invalid_select => 'Escoja una opción de la lista: "%s"',
js_invalid_multiple => '- Escoja una o más opciones de la lista: "%s"',
js_invalid_checkbox => '- Revise una o más de las opciones: "%s"',
view all matches for this distribution
view release on metacpan or search on metacpan
lib/DBIx/OptimalQuery.pm view on Meta::CPAN
# look for new cursors and define parent child links if not already defined
foreach my $join (keys %{ $oq->{'joins'} }) {
my $opts = $oq->{'joins'}->{$join}->[3];
if (exists $opts->{new_cursor}) {
if (ref($opts->{new_cursor}) ne 'HASH') {
$oq->_formulate_new_cursor($join);
} else {
die "could not find keys, join, and sql for new cursor in $join"
unless exists $opts->{new_cursor}->{'keys'} &&
exists $opts->{new_cursor}->{'join'} &&
exists $opts->{new_cursor}->{'sql'};
lib/DBIx/OptimalQuery.pm view on Meta::CPAN
# defines how a child cursor joins to its parent cursor
# by defining keys, join, sql in child cursor
# called from the _normalize method
sub _formulate_new_cursor {
my $oq = shift;
my $joinAlias = shift;
#$$oq{error_handler}->("DEBUG: \$oq->_formulate_new_cursor('$joinAlias')\n") if $$oq{debug};
# vars to define
my (@keys, $join, $sql, @sqlBinds);
# get join definition
view all matches for this distribution
view release on metacpan or search on metacpan
t/private/javascripts/prototype.js view on Meta::CPAN
},
'only-of-type': function(m) {
var p = Selector.xpath.pseudos; return p['first-of-type'](m) + p['last-of-type'](m);
},
nth: function(fragment, m) {
var mm, formula = m[6], predicate;
if (formula == 'even') formula = '2n+0';
if (formula == 'odd') formula = '2n+1';
if (mm = formula.match(/^(\d+)$/)) // digit only
return '[' + fragment + "= " + mm[1] + ']';
if (mm = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
if (mm[1] == "-") mm[1] = -1;
var a = mm[1] ? Number(mm[1]) : 1;
var b = mm[2] ? Number(mm[2]) : 0;
predicate = "[((#{fragment} - #{b}) mod #{a} = 0) and " +
"((#{fragment} - #{b}) div #{a} >= 0)]";
t/private/javascripts/prototype.js view on Meta::CPAN
for (var i = 0, results = [], node; node = nodes[i]; i++)
if (!h.previousElementSibling(node) && !h.nextElementSibling(node))
results.push(node);
return results;
},
'nth-child': function(nodes, formula, root) {
return Selector.pseudos.nth(nodes, formula, root);
},
'nth-last-child': function(nodes, formula, root) {
return Selector.pseudos.nth(nodes, formula, root, true);
},
'nth-of-type': function(nodes, formula, root) {
return Selector.pseudos.nth(nodes, formula, root, false, true);
},
'nth-last-of-type': function(nodes, formula, root) {
return Selector.pseudos.nth(nodes, formula, root, true, true);
},
'first-of-type': function(nodes, formula, root) {
return Selector.pseudos.nth(nodes, "1", root, false, true);
},
'last-of-type': function(nodes, formula, root) {
return Selector.pseudos.nth(nodes, "1", root, true, true);
},
'only-of-type': function(nodes, formula, root) {
var p = Selector.pseudos;
return p['last-of-type'](p['first-of-type'](nodes, formula, root), formula, root);
},
getIndices: function(a, b, total) {
if (a == 0) return b > 0 ? [b] : [];
return $R(1, total).inject([], function(memo, i) {
if (0 == (i - b) % a && (i - b) / a >= 0) memo.push(i);
return memo;
});
},
nth: function(nodes, formula, root, reverse, ofType) {
if (nodes.length == 0) return [];
if (formula == 'even') formula = '2n+0';
if (formula == 'odd') formula = '2n+1';
var h = Selector.handlers, results = [], indexed = [], m;
h.mark(nodes);
for (var i = 0, node; node = nodes[i]; i++) {
if (!node.parentNode._countedByPrototype) {
h.index(node.parentNode, reverse, ofType);
indexed.push(node.parentNode);
}
}
if (formula.match(/^\d+$/)) { // just a number
formula = Number(formula);
for (var i = 0, node; node = nodes[i]; i++)
if (node.nodeIndex == formula) results.push(node);
} else if (m = formula.match(/^(-?\d*)?n(([+-])(\d+))?/)) { // an+b
if (m[1] == "-") m[1] = -1;
var a = m[1] ? Number(m[1]) : 1;
var b = m[2] ? Number(m[2]) : 0;
var indices = Selector.pseudos.getIndices(a, b, nodes.length);
for (var i = 0, node, l = indices.length; node = nodes[i]; i++) {
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CIPP/Manual.pm view on Meta::CPAN
Creation of a CIPP object URL
=item <?HIDDENFIELDS>
Producing a number of hidden formular fields
=item <?HTMLQUOTE>
HTML encoding of a variable
lib/CIPP/Manual.pm view on Meta::CPAN
Interface
=head2 Syntax
<?FETCHUPLOAD FILENAME=server_side_filename
VAR=upload_formular_variable
[ THROW=exception ] >
=head2 Description
This command fetches a file which was uploaded by a client and saves it in the webservers filesystem. It replaces the deprecated CIPP 2.x command <?SAVEFILE> and has a cleaner interface.
lib/CIPP/Manual.pm view on Meta::CPAN
Interface
=head2 Syntax
<?SAVEFILE FILENAME=server_side_filename
VAR=upload_formular_variable
[ SYMBOLIC ]
[ THROW=exception ] >
=head2 Description
lib/CIPP/Manual.pm view on Meta::CPAN
=over 8
=item B<NAME>
The name of the formular widget.
=item B<MULTIPLE>
If this is set, a multi selection list will be generated, instead of a single selection popup widget.
view all matches for this distribution
view release on metacpan or search on metacpan
scripts/latextable view on Meta::CPAN
s/(?<=[0-9a-f]{$hlen})[0-9a-f]+/../gi if defined $o{H} ; # <-- - (?<= ) ã§æ£è¦è¡¨ç¾ã®å¾èªã¿
# ãã«$æåé¢é£ The pre-processing of the character "$ dollar". The completion process will appear much later.
s|\G(.*?)\$|$1=\$\$=|g ; # ãã«æåã®åå¦çã\Gã¯æååã®å
é ããããã¯ä¿®é£¾å g ãã¤ãããã¿ã¼ã³ãããã³ã°ãçµäºããå ´æãè¨æ¶ãã¦ãããããã«ããã
# LaTeXä¸ã§ æ°å¼ç°å¢ãå©ç¨ãããã® Utilization of math formula env. of LaTeX for some specific characters such as \~!<>.
s/([\\\Q!~<>|"\E\x{FF0D}]+)/\$$1\$/g ; # 1. æ°å¼ç°å¢ã«ç§»è¡ãã¦ã ; \Qã¨\Eã®éã¯ãã¿ã¼ã³ã¡ã¿æåã®ç¡å¹åã
s/\\/\\backslash/g ; # 2. ããã¦ãã¾ãå
ã«ããã¯ã¹ã©ãã·ã¥ã«å¦çããã¦ãå¾ã®å¦çãç¶ãã
s/~/\\sim/g; # ãã«ã
s/\x{FF0D}/\Q\!\!\frac{}{{{}\atop{H}}}\!\!\E/g if $o{'_'} ; # å
¨è§ãã¤ãã³ã¯ãã®ä¸ã«ãH ãå°ããæ¸ã ; \N{FULLWIDTH HYPHEN-MINUS}
s/\ /\\scalebox{0.5}[0.5]{\$\\sqcup\$}/g if $o{'_'} ; # åè§ã¹ãã¼ã¹ã®å¼·èª¿ ;
view all matches for this distribution
view release on metacpan or search on metacpan
easyxs/README.md view on Meta::CPAN
detail.
EasyXS defines an `exs_sv_type` macro that takes an SV as argument
and returns a member of `enum exs_sv_type_e` (typedefâd as just
`exs_sv_type_e`; see `easyxs_scalar.h` for values). The logic is compatible
with the serialization logic formulated during Perl 5.36âs development cycle.
## SV/Number Conversion
### `UV* exs_SvUV(SV* sv)`
view all matches for this distribution
view release on metacpan or search on metacpan
#
# x^2+y^2=(b+r)^2
# y=mx+j
# x^2+m^2x^2+2mxj+j^2=(b+r)^2
# (1+m^2) x^2 + 2mj x +j^2-(b+r)^2=0
# use quadratic equation formula to find x:
# x=(-b+- sqrt(b^2-4ac)/2a
#
# x=(-2mj +- sqrt(4m^2j^2-4(1+m^2)(j^2-(b+r)^2)))/2(1+m^2)
# This is the center point of the arc.
view all matches for this distribution
view release on metacpan or search on metacpan
data/tiddlers.json view on Meta::CPAN
"title": "ABeCeDarian",
"modified": "20260619233645022"
},
{
"created": "20231109020407842",
"text": "\"\"\"\no See also:\n- [[HTTPHandling]]\n- NetworkProgramming\n- TheRFCGuide - For Regexp::Common::URI::RFC3986 & $IDN_HOST\n- WebServices\n- https://github.com/davorg-cpan/app-httpthis/blob/master/BONJOUR.md - For a great overview o...
"type": "",
"title": "Acronyms",
"modified": "20260620064355767"
},
{
data/tiddlers.json view on Meta::CPAN
"modified": "20260526041239144",
"created": "20240622030833531"
},
{
"created": "20220610005424971",
"text": "\"\"\"\no See also:\n- MathsLibraries\n- PdlLanguage\n- SystemMonitoring\n- https://opencagedata.com/api\n- https://maps.googleapis.com/maps/api/geocode/json - For API v3\n- https://what3words.com/\n\no Alien::gdal:\n- Compile GDAL, ...
"title": "GeographicStuff",
"modified": "20260617232358496"
},
{
"text": "\\define lingo-base() $:/language/ControlPanel/Basics/\nWelcome to ~TiddlyWiki and the ~TiddlyWiki community\n\nBefore you start storing important information in ~TiddlyWiki it is vital to make sure that you can reliably save changes...
view all matches for this distribution
view release on metacpan or search on metacpan
lib/CPAN/Search/Lite/Lang/es.pm view on Meta::CPAN
custom => 'URL personal',
default => 'El enlace por defecto de',
alt => 'o',
install => 'Instale',
mirror1 => << 'END',
Con este formulario usted puede especificar de dónde desea
realizar las descargas (esto requiere que las
cookies estén permitidas).
Su configuración actual es
END
mirror2 => << 'END',
view all matches for this distribution
view release on metacpan or search on metacpan
include/boost/config/auto_link.hpp view on Meta::CPAN
Algorithm:
~~~~~~~~~~
Libraries for Borland and Microsoft compilers are automatically
selected here, the name of the lib is selected according to the following
formula:
BOOST_LIB_PREFIX
+ BOOST_LIB_NAME
+ "_"
+ BOOST_LIB_TOOLSET
view all matches for this distribution
view release on metacpan or search on metacpan
src/catch.hpp view on Meta::CPAN
explicit Approx( T value ): Approx(static_cast<double>(value))
{}
template <typename T, typename = typename std::enable_if<std::is_constructible<double, T>::value>::type>
friend bool operator == ( const T& lhs, Approx const& rhs ) {
// Thanks to Richard Harris for his help refining this formula
auto lhs_v = double(lhs);
bool relativeOK = std::fabs(lhs_v - rhs.m_value) < rhs.m_epsilon * (rhs.m_scale + (std::max)(std::fabs(lhs_v), std::fabs(rhs.m_value)));
if (relativeOK) {
return true;
}
src/catch.hpp view on Meta::CPAN
approx.scale( m_scale );
return approx;
}
friend bool operator == ( double lhs, Approx const& rhs ) {
// Thanks to Richard Harris for his help refining this formula
bool relativeOK = std::fabs( lhs - rhs.m_value ) < rhs.m_epsilon * (rhs.m_scale + (std::max)( std::fabs(lhs), std::fabs(rhs.m_value) ) );
if (relativeOK) {
return true;
}
return std::fabs(lhs - rhs.m_value) < rhs.m_margin;
view all matches for this distribution