.TH "beagle::cpu::BeagleCPUImpl" 3 "Fri May 25 2012" "Version 1.0.0" "HMSBEAGLE" \" -*- nroff -*- .ad l .nh .SH NAME beagle::cpu::BeagleCPUImpl \- .SH SYNOPSIS .br .PP .PP Inherits \fBbeagle::BeagleImpl\fP\&. .SS "Public Member Functions" .in +1c .ti -1c .RI "int \fBcreateInstance\fP (int tipCount, int partialsBufferCount, int compactBufferCount, int stateCount, int patternCount, int eigenDecompositionCount, int matrixCount, int categoryCount, int scaleBufferCount, int resourceNumber, long preferenceFlags, long requirementFlags)" .br .ti -1c .RI "int \fBgetInstanceDetails\fP (\fBBeagleInstanceDetails\fP *returnInfo)" .br .ti -1c .RI "int \fBsetTipStates\fP (int tipIndex, const int *inStates)" .br .ti -1c .RI "int \fBsetTipPartials\fP (int tipIndex, const double *inPartials)" .br .ti -1c .RI "int \fBsetPartials\fP (int bufferIndex, const double *inPartials)" .br .ti -1c .RI "int \fBgetPartials\fP (int bufferIndex, int scaleBuffer, double *outPartials)" .br .ti -1c .RI "int \fBsetEigenDecomposition\fP (int eigenIndex, const double *inEigenVectors, const double *inInverseEigenVectors, const double *inEigenValues)" .br .ti -1c .RI "int \fBsetStateFrequencies\fP (int stateFrequenciesIndex, const double *inStateFrequencies)" .br .ti -1c .RI "int \fBsetCategoryWeights\fP (int categoryWeightsIndex, const double *inCategoryWeights)" .br .ti -1c .RI "int \fBsetPatternWeights\fP (const double *inPatternWeights)" .br .ti -1c .RI "int \fBsetCategoryRates\fP (const double *inCategoryRates)" .br .ti -1c .RI "int \fBsetTransitionMatrix\fP (int matrixIndex, const double *inMatrix, double paddedValue)" .br .ti -1c .RI "int \fBsetTransitionMatrices\fP (const int *matrixIndices, const double *inMatrices, const double *paddedValues, int count)" .br .ti -1c .RI "int \fBgetTransitionMatrix\fP (int matrixIndex, double *outMatrix)" .br .ti -1c .RI "int \fBupdateTransitionMatrices\fP (int eigenIndex, const int *probabilityIndices, const int *firstDerivativeIndices, const int *secondDerivativeIndices, const double *edgeLengths, int count)" .br .ti -1c .RI "int \fBupdatePartials\fP (const int *operations, int operationCount, int cumulativeScalingIndex)" .br .ti -1c .RI "int \fBwaitForPartials\fP (const int *destinationPartials, int destinationPartialsCount)" .br .ti -1c .RI "int \fBaccumulateScaleFactors\fP (const int *scalingIndices, int count, int cumulativeScalingIndex)" .br .ti -1c .RI "int \fBremoveScaleFactors\fP (const int *scalingIndices, int count, int cumulativeScalingIndex)" .br .ti -1c .RI "int \fBresetScaleFactors\fP (int cumulativeScalingIndex)" .br .ti -1c .RI "int \fBcopyScaleFactors\fP (int destScalingIndex, int srcScalingIndex)" .br .ti -1c .RI "int \fBcalculateRootLogLikelihoods\fP (const int *bufferIndices, const int *categoryWeightsIndices, const int *stateFrequenciesIndices, const int *cumulativeScaleIndices, int count, double *outSumLogLikelihood)" .br .ti -1c .RI "int \fBcalculateEdgeLogLikelihoods\fP (const int *parentBufferIndices, const int *childBufferIndices, const int *probabilityIndices, const int *firstDerivativeIndices, const int *secondDerivativeIndices, const int *categoryWeightsIndices, const int *stateFrequenciesIndices, const int *cumulativeScaleIndices, int count, double *outSumLogLikelihood, double *outSumFirstDerivative, double *outSumSecondDerivative)" .br .ti -1c .RI "int \fBgetSiteLogLikelihoods\fP (double *outLogLikelihoods)" .br .ti -1c .RI "int \fBgetSiteDerivatives\fP (double *outFirstDerivatives, double *outSecondDerivatives)" .br .ti -1c .RI "int \fBblock\fP (void)" .br .ti -1c .RI "virtual const char * \fBgetName\fP ()" .br .ti -1c .RI "virtual const long \fBgetFlags\fP ()" .br .in -1c .SS "Protected Member Functions" .in +1c .ti -1c .RI "virtual void \fBcalcStatesStates\fP (REALTYPE *destP, const int *states1, const REALTYPE *matrices1, const int *states2, const REALTYPE *matrices2)" .br .ti -1c .RI "virtual void \fBcalcStatesPartials\fP (REALTYPE *destP, const int *states1, const REALTYPE *matrices1, const REALTYPE *partials2, const REALTYPE *matrices2)" .br .ti -1c .RI "virtual void \fBcalcPartialsPartials\fP (REALTYPE *destP, const REALTYPE *partials1, const REALTYPE *matrices1, const REALTYPE *partials2, const REALTYPE *matrices2)" .br .ti -1c .RI "virtual int \fBcalcRootLogLikelihoods\fP (const int bufferIndex, const int categoryWeightsIndex, const int stateFrequenciesIndex, const int scaleBufferIndex, double *outSumLogLikelihood)" .br .ti -1c .RI "virtual int \fBcalcRootLogLikelihoodsMulti\fP (const int *bufferIndices, const int *categoryWeightsIndices, const int *stateFrequenciesIndices, const int *scaleBufferIndices, int count, double *outSumLogLikelihood)" .br .ti -1c .RI "virtual int \fBcalcEdgeLogLikelihoods\fP (const int parentBufferIndex, const int childBufferIndex, const int probabilityIndex, const int categoryWeightsIndex, const int stateFrequenciesIndex, const int scalingFactorsIndex, double *outSumLogLikelihood)" .br .ti -1c .RI "virtual int \fBcalcEdgeLogLikelihoodsMulti\fP (const int *parentBufferIndices, const int *childBufferIndices, const int *probabilityIndices, const int *categoryWeightsIndices, const int *stateFrequenciesIndices, const int *scalingFactorsIndices, int count, double *outSumLogLikelihood)" .br .ti -1c .RI "virtual int \fBcalcEdgeLogLikelihoodsFirstDeriv\fP (const int parentBufferIndex, const int childBufferIndex, const int probabilityIndex, const int firstDerivativeIndex, const int categoryWeightsIndex, const int stateFrequenciesIndex, const int scalingFactorsIndex, double *outSumLogLikelihood, double *outSumFirstDerivative)" .br .ti -1c .RI "virtual int \fBcalcEdgeLogLikelihoodsSecondDeriv\fP (const int parentBufferIndex, const int childBufferIndex, const int probabilityIndex, const int firstDerivativeIndex, const int secondDerivativeIndex, const int categoryWeightsIndex, const int stateFrequenciesIndex, const int scalingFactorsIndex, double *outSumLogLikelihood, double *outSumFirstDerivative, double *outSumSecondDerivative)" .br .ti -1c .RI "virtual void \fBcalcStatesStatesFixedScaling\fP (REALTYPE *destP, const int *child0States, const REALTYPE *child0TransMat, const int *child1States, const REALTYPE *child1TransMat, const REALTYPE *scaleFactors)" .br .ti -1c .RI "virtual void \fBcalcStatesPartialsFixedScaling\fP (REALTYPE *destP, const int *child0States, const REALTYPE *child0TransMat, const REALTYPE *child1Partials, const REALTYPE *child1TransMat, const REALTYPE *scaleFactors)" .br .ti -1c .RI "virtual void \fBcalcPartialsPartialsFixedScaling\fP (REALTYPE *destP, const REALTYPE *child0States, const REALTYPE *child0TransMat, const REALTYPE *child1Partials, const REALTYPE *child1TransMat, const REALTYPE *scaleFactors)" .br .ti -1c .RI "virtual void \fBcalcPartialsPartialsAutoScaling\fP (REALTYPE *destP, const REALTYPE *partials1, const REALTYPE *matrices1, const REALTYPE *partials2, const REALTYPE *matrices2, int *activateScaling)" .br .ti -1c .RI "virtual void \fBrescalePartials\fP (REALTYPE *destP, REALTYPE *scaleFactors, REALTYPE *cumulativeScaleFactors, const int fillWithOnes)" .br .ti -1c .RI "virtual void \fBautoRescalePartials\fP (REALTYPE *destP, signed short *scaleFactors)" .br .ti -1c .RI "virtual int \fBgetPaddedPatternsModulus\fP ()" .br .ti -1c .RI "void * \fBmallocAligned\fP (size_t size)" .br .in -1c .SS "Protected Attributes" .in +1c .ti -1c .RI "int \fBkBufferCount\fP" .br .ti -1c .RI "int \fBkTipCount\fP" .br .RI "\fI(we don't really need this field) \fP" .ti -1c .RI "int \fBkPatternCount\fP" .br .RI "\fI(we don't really need this field, but it is handy) \fP" .ti -1c .RI "int \fBkPaddedPatternCount\fP" .br .RI "\fIthe number of data patterns in each partial and tipStates element \fP" .ti -1c .RI "int \fBkExtraPatterns\fP" .br .RI "\fIthe number of data patterns padded to be a multiple of 2 or 4 \fP" .ti -1c .RI "int \fBkMatrixCount\fP" .br .RI "\fIkPaddedPatternCount - kPatternCount \fP" .ti -1c .RI "int \fBkStateCount\fP" .br .RI "\fIthe number of transition matrices to alloc and store \fP" .ti -1c .RI "int \fBkTransPaddedStateCount\fP" .br .RI "\fIthe number of states \fP" .ti -1c .RI "int \fBkPartialsPaddedStateCount\fP" .br .ti -1c .RI "int \fBkEigenDecompCount\fP" .br .ti -1c .RI "int \fBkCategoryCount\fP" .br .RI "\fIthe number of eigen solutions to alloc and store \fP" .ti -1c .RI "int \fBkScaleBufferCount\fP" .br .ti -1c .RI "int \fBkPartialsSize\fP" .br .ti -1c .RI "int \fBkMatrixSize\fP" .br .RI "\fIstored for convenience\&. kPartialsSize = kStateCount*kPatternCount \fP" .ti -1c .RI "int \fBkInternalPartialsBufferCount\fP" .br .RI "\fIstored for convenience\&. kMatrixSize = kStateCount*(kStateCount + 1) \fP" .ti -1c .RI "long \fBkFlags\fP" .br .ti -1c .RI "REALTYPE \fBrealtypeMin\fP" .br .ti -1c .RI "int \fBscalingExponentThreshhold\fP" .br .ti -1c .RI "\fBEigenDecomposition\fP .br < BEAGLE_CPU_EIGEN_GENERIC > * \fBgEigenDecomposition\fP" .br .ti -1c .RI "double * \fBgCategoryRates\fP" .br .ti -1c .RI "double * \fBgPatternWeights\fP" .br .ti -1c .RI "REALTYPE ** \fBgCategoryWeights\fP" .br .ti -1c .RI "REALTYPE ** \fBgStateFrequencies\fP" .br .ti -1c .RI "REALTYPE ** \fBgPartials\fP" .br .ti -1c .RI "int ** \fBgTipStates\fP" .br .ti -1c .RI "REALTYPE ** \fBgScaleBuffers\fP" .br .ti -1c .RI "signed short ** \fBgAutoScaleBuffers\fP" .br .ti -1c .RI "int * \fBgActiveScalingFactors\fP" .br .ti -1c .RI "REALTYPE ** \fBgTransitionMatrices\fP" .br .ti -1c .RI "REALTYPE * \fBintegrationTmp\fP" .br .ti -1c .RI "REALTYPE * \fBfirstDerivTmp\fP" .br .ti -1c .RI "REALTYPE * \fBsecondDerivTmp\fP" .br .ti -1c .RI "REALTYPE * \fBoutLogLikelihoodsTmp\fP" .br .ti -1c .RI "REALTYPE * \fBoutFirstDerivativesTmp\fP" .br .ti -1c .RI "REALTYPE * \fBoutSecondDerivativesTmp\fP" .br .ti -1c .RI "REALTYPE * \fBones\fP" .br .ti -1c .RI "REALTYPE * \fBzeros\fP" .br .in -1c .SS "Additional Inherited Members" .SH "Member Data Documentation" .PP .SS "int beagle::cpu::BeagleCPUImpl::kPatternCount\fC [protected]\fP" .PP (we don't really need this field, but it is handy) after initialize this will be tipStates\&.size() .SS "int beagle::cpu::BeagleCPUImpl::kTipCount\fC [protected]\fP" .PP (we don't really need this field) after initialize this will be partials\&.size() .SH "Author" .PP Generated automatically by Doxygen for HMSBEAGLE from the source code\&.