/dports/math/mlpack/mlpack-3.4.2/src/mlpack/methods/ann/layer/ |
H A D | multihead_attention.hpp | 181 typedef typename OutputDataType::elem_type ElemType; typedef in mlpack::ann::MultiheadAttention 232 arma::Cube<ElemType> qProj; 235 arma::Cube<ElemType> kProj; 238 arma::Cube<ElemType> vProj; 241 arma::Cube<ElemType> scores; 244 arma::Cube<ElemType> attnOut;
|
/dports/math/ensmallen/ensmallen-2.17.0/include/ensmallen_bits/moead/decomposition_policies/ |
H A D | pbi_decomposition.hpp | 64 typedef typename VecType::elem_type ElemType; in Apply() typedef 68 const ElemType d1 = arma::dot(candidateFitness - idealPoint, referenceDirection); in Apply() 70 const ElemType d2 = arma::norm(candidateFitness - (idealPoint + d1 * referenceDirection)); in Apply() 72 return d1 + static_cast<ElemType>(theta) * d2; in Apply()
|
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/core/tree/binary_space_tree/ |
H A D | vantage_point_split.hpp | 36 typedef typename MatType::elem_type ElemType; typedef in mlpack::tree::VantagePointSplit 43 arma::Col<ElemType> vantagePoint; 45 ElemType mu; 56 ElemType mu) : in SplitInfo() 166 ElemType& mu);
|
H A D | rp_tree_max_split_impl.hpp | 44 const arma::Col<ElemType>& direction, in GetSplitVal() 45 ElemType& splitVal) in GetSplitVal() 54 arma::Col<ElemType> values(samples.n_elem); in GetSplitVal() 60 const ElemType maximum = arma::max(values); in GetSplitVal() 61 const ElemType minimum = arma::min(values); in GetSplitVal()
|
H A D | vantage_point_split_impl.hpp | 27 ElemType mu = 0; in SplitNode() 45 const size_t begin, const size_t count, size_t& vantagePoint, ElemType& mu) in SelectVantagePoint() 48 arma::Col<ElemType> distances(MaxNumSamples); in SelectVantagePoint() 54 ElemType bestSpread = 0; in SelectVantagePoint() 71 const ElemType spread = arma::sum(distances % distances) / samples.n_elem; in SelectVantagePoint()
|
/dports/math/ensmallen/ensmallen-2.17.0/include/ensmallen_bits/moead/ |
H A D | moead_impl.hpp | 99 typedef typename MatType::elem_type ElemType; in Optimize() typedef 159 const arma::Row<ElemType> distances = in Optimize() 179 std::vector<arma::Col<ElemType>> populationFitness(populationSize); in Optimize() 181 arma::Col<ElemType>(numObjectives, arma::fill::zeros)); in Optimize() 185 arma::Col<ElemType> idealPoint(numObjectives); in Optimize() 186 idealPoint.fill(std::numeric_limits<ElemType>::max()); in Optimize() 188 for (const arma::Col<ElemType>& individualFitness : populationFitness) in Optimize() 241 arma::Col<ElemType> candidateFitness(numObjectives); in Optimize() 271 const ElemType candidateDecomposition = decompPolicy.template in Optimize() 273 const ElemType parentDecomposition = decompPolicy.template in Optimize() [all …]
|
/dports/math/ensmallen/ensmallen-2.17.0/include/ensmallen_bits/sa/ |
H A D | sa_impl.hpp | 54 typedef typename MatType::elem_type ElemType; in Optimize() typedef 70 ElemType energy = function.Evaluate(iterate); in Optimize() 73 ElemType oldEnergy = energy; in Optimize() 145 typedef typename MatType::elem_type ElemType; in GenerateMove() typedef 147 const ElemType prevEnergy = energy; in GenerateMove() 148 const ElemType prevValue = iterate(idx); in GenerateMove() 156 const ElemType move = (unif < 0) ? (moveSize(idx) * std::log(1 + unif)) : in GenerateMove() 171 accept(idx) += ElemType(1.); in GenerateMove()
|
/dports/security/snort/snort-2.9.18/src/file-process/ |
H A D | circular_buffer.c | 48 ElemType *elems; /* vector of elements */ 64 cb->elems = (ElemType *)calloc(cb->size, sizeof(ElemType)); in cbuffer_init() 138 int cbuffer_write(CircularBuffer *cb, const ElemType elem) in cbuffer_write() 168 int cbuffer_read(CircularBuffer *cb, ElemType *elem) in cbuffer_read() 198 int cbuffer_peek(CircularBuffer *cb, ElemType *elem) { in cbuffer_peek()
|
H A D | circular_buffer.h | 40 typedef void * ElemType; typedef 97 int cbuffer_write(CircularBuffer *cb, const ElemType elem); 109 int cbuffer_read(CircularBuffer *cb, ElemType *elem); 122 int cbuffer_peek(CircularBuffer *cb, ElemType *elem);
|
/dports/security/snort/snort-2.9.18/src/dynamic-preprocessors/file/include/ |
H A D | circular_buffer.c | 48 ElemType *elems; /* vector of elements */ 64 cb->elems = (ElemType *)calloc(cb->size, sizeof(ElemType)); in cbuffer_init() 138 int cbuffer_write(CircularBuffer *cb, const ElemType elem) in cbuffer_write() 168 int cbuffer_read(CircularBuffer *cb, ElemType *elem) in cbuffer_read() 198 int cbuffer_peek(CircularBuffer *cb, ElemType *elem) { in cbuffer_peek()
|
/dports/math/libmesh/libmesh-1.6.2/include/mesh/ |
H A D | ucd_io.h | 34 enum ElemType : int; 149 static std::map<ElemType, std::string> _writing_element_map; 153 static std::map<std::string, ElemType> _reading_element_map; 156 static std::map<ElemType, std::string> build_writing_element_map(); 159 static std::map<std::string, ElemType> build_reading_element_map();
|
H A D | vtk_io.h | 189 void associate(ElemType libmesh_type, vtkIdType vtk_type) in associate() 196 vtkIdType find(ElemType libmesh_type) in find() 202 ElemType find(vtkIdType vtk_type) in find() 207 std::map<ElemType, vtkIdType> writing_map; 208 std::map<vtkIdType, ElemType> reading_map;
|
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/methods/ann/loss_functions/ |
H A D | huber_loss_impl.hpp | 37 typedef typename InputType::elem_type ElemType; in Forward() typedef 38 ElemType loss = 0; in Forward() 41 const ElemType absError = std::abs(target[i] - input[i]); in Forward() 55 typedef typename InputType::elem_type ElemType; in Backward() typedef 60 const ElemType absError = std::abs(target[i] - input[i]); in Backward()
|
/dports/math/libmesh/libmesh-1.6.2/src/fe/ |
H A D | fe_hierarchic_shape_1D.C | 32 Real fe_hierarchic_1D_shape(const ElemType, 37 Real fe_hierarchic_1D_shape_deriv(const ElemType, 45 Real fe_hierarchic_1D_shape_second_deriv(const ElemType, 66 Real FE<1,HIERARCHIC>::shape(const ElemType elem_type, in shape() 77 Real FE<1,L2_HIERARCHIC>::shape(const ElemType elem_type, in shape() 141 Real FE<1,HIERARCHIC>::shape_deriv(const ElemType elem_type, in shape_deriv() 153 Real FE<1,L2_HIERARCHIC>::shape_deriv(const ElemType elem_type, in shape_deriv() 227 Real FE<1,HIERARCHIC>::shape_second_deriv(const ElemType elem_type, in shape_second_deriv() 318 Real fe_hierarchic_1D_shape(const ElemType, in fe_hierarchic_1D_shape() argument 385 Real fe_hierarchic_1D_shape_deriv(const ElemType, in fe_hierarchic_1D_shape_deriv() argument [all …]
|
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/core/tree/rectangle_tree/ |
H A D | r_plus_tree_split_impl.hpp | 29 typedef typename TreeType::ElemType ElemType; in SplitLeafNode() typedef 74 ElemType cut = std::numeric_limits<ElemType>::lowest(); in SplitLeafNode() 126 typedef typename TreeType::ElemType ElemType; in SplitNonLeafNode() typedef 144 ElemType cut = std::numeric_limits<ElemType>::lowest(); in SplitNonLeafNode() 200 const typename TreeType::ElemType cut) in SplitLeafNodeAlongPartition() 251 const typename TreeType::ElemType cut) in SplitNonLeafNodeAlongPartition() 330 typename TreeType::ElemType& minCut) in PartitionNode() 347 typename TreeType::ElemType cut; in PartitionNode()
|
H A D | r_plus_plus_tree_auxiliary_information.hpp | 28 typedef typename TreeType::ElemType ElemType; typedef in mlpack::tree::RPlusPlusTreeAuxiliaryInformation 30 typedef bound::HRectBound<metric::EuclideanDistance, ElemType> BoundType; 138 const ElemType cut);
|
/dports/math/ensmallen/ensmallen-2.17.0/include/ensmallen_bits/grid_search/ |
H A D | grid_search_impl.hpp | 39 typedef typename MatType::elem_type ElemType; in Optimize() typedef 41 ElemType bestObjective = std::numeric_limits<ElemType>::max(); in Optimize() 68 typedef typename MatType::elem_type ElemType; in Optimize() typedef 86 ElemType objective = function.Evaluate((BaseMatType&) currentParameters); in Optimize()
|
/dports/security/snort3/snort3-3.1.19.0/src/file_api/ |
H A D | circular_buffer.cc | 47 ElemType* elems; /* vector of elements */ 57 cb->elems = (ElemType*)snort_calloc(cb->size, sizeof(ElemType)); in cbuffer_init() 125 int cbuffer_write(CircularBuffer* cb, const ElemType elem) in cbuffer_write() 153 int cbuffer_read(CircularBuffer* cb, ElemType* elem) in cbuffer_read()
|
/dports/math/ensmallen/ensmallen-2.17.0/include/ensmallen_bits/problems/ |
H A D | schaffer_function_n4_impl.hpp | 32 typedef typename MatType::elem_type ElemType; in Evaluate() typedef 35 const ElemType x1 = coordinates(0); in Evaluate() 36 const ElemType x2 = coordinates(1); in Evaluate() 38 const ElemType objective = 0.5 + (std::pow(std::cos(std::sin(std::abs( in Evaluate()
|
H A D | holder_table_function_impl.hpp | 32 typedef typename MatType::elem_type ElemType; in Evaluate() typedef 35 const ElemType x1 = coordinates(0); in Evaluate() 36 const ElemType x2 = coordinates(1); in Evaluate() 38 const ElemType objective = -std::abs(std::sin(x1) * std::cos(x2) * in Evaluate()
|
H A D | cross_in_tray_function_impl.hpp | 32 typedef typename MatType::elem_type ElemType; in Evaluate() typedef 35 const ElemType x1 = coordinates(0); in Evaluate() 36 const ElemType x2 = coordinates(1); in Evaluate() 38 const ElemType objective = -0.0001 * std::pow(std::abs(std::sin(x1) * in Evaluate()
|
/dports/math/ensmallen/ensmallen-2.17.0/include/ensmallen_bits/moead/weight_init_policies/ |
H A D | uniform_init.hpp | 140 typedef typename MatType::elem_type ElemType; in DasDennisHelper() typedef 141 typedef typename arma::Row<ElemType> RowType; in DasDennisHelper() 144 const ElemType delta = 1.0 / (ElemType)numPartitions; in DasDennisHelper() 156 delta * static_cast<ElemType>(beta))); in DasDennisHelper() 167 delta * static_cast<ElemType>(i))); in DasDennisHelper()
|
/dports/math/ensmallen/ensmallen-2.17.0/include/ensmallen_bits/spsa/ |
H A D | spsa_impl.hpp | 47 typedef typename MatType::elem_type ElemType; in Optimize() typedef 56 arma::Mat<ElemType> spVector(iterate.n_rows, iterate.n_cols); in Optimize() 59 ElemType overallObjective = 0; in Optimize() 60 ElemType lastObjective = DBL_MAX; in Optimize() 98 spVector = arma::conv_to<arma::Mat<ElemType>>::from( in Optimize() 123 const ElemType objective = function.Evaluate(iterate); in Optimize()
|
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/methods/det/ |
H A D | dtree.hpp | 50 typedef typename MatType::elem_type ElemType; typedef in mlpack::det::DTree 54 typedef typename arma::Col<ElemType> StatType; 249 ElemType splitValue; 288 ElemType SplitValue() const { return splitValue; } in SplitValue() 343 ElemType& splitValue, 353 const ElemType splitValue,
|
/dports/math/mlpack/mlpack-3.4.2/src/mlpack/methods/naive_bayes/ |
H A D | naive_bayes_classifier_impl.hpp | 39 static_assert(std::is_same<ElemType, typename MatType::elem_type>::value, in NaiveBayesClassifier() 84 static_assert(std::is_same<ElemType, typename MatType::elem_type>::value, in Train() 183 static_assert(std::is_same<ElemType, typename VecType::elem_type>::value, in Train() 209 static_assert(std::is_same<ElemType, typename MatType::elem_type>::value, in LogLikelihood() 226 arma::Mat<ElemType> exponents = arma::sum(diffs % rhs, 0); in LogLikelihood() 237 static_assert(std::is_same<ElemType, typename VecType::elem_type>::value, in Classify() 257 static_assert(std::is_same<ElemType, typename VecType::elem_type>::value, in Classify() 260 static_assert(std::is_same<ElemType, in Classify() 290 static_assert(std::is_same<ElemType, typename MatType::elem_type>::value, in Classify() 314 static_assert(std::is_same<ElemType, typename MatType::elem_type>::value, in Classify() [all …]
|