模板函数总是用完全参数化的类型指定的。
Template functions are always specified with fully parameterized types.
ActionCatalog包含配方构造步骤函数的一个参数化的RecipeJAUS命令序列。
The ActionCatalog contains a parametrized RecipeJAUS command sequence for recipe construct step functions.
参数化的decorator较为常见,但是它们将所需的函数嵌套为三层。
Parameterized decorators are common, but they wind up needed functions nested three-levels deep.
如何定义具有数量可变的参数(每个参数的类型可能不同)的模板化类或函数?
How do you define a templated class or a function with a variable number of arguments, each with a potentially different type?
可以将泛型类型看作是类型“函数”;它们通过类型变量进行参数化,这些类型变量可以根据上下文用各种类型参数进行实例化。
Generic types can be thought of as type "functions"; they are parameterized by type variables that can then be instantiated with various type arguments depending on context.
模板声明是一系列参数化的类或函数的定义集。
The template declaration specifies a set of parameterized classes or functions.
可以看出,按值调用的目的是为了方便函数编写者,因为参数可以被当作已经初始化过的局部变量来使用,从而使程序更简洁。
It usually leads to more compact programs with fewer extraneous variables, because parameters can be treated as conveniently initialized local variables in the called routine.
泛型类可被视为将它们的参数映射成新实例化的函数。
Generic classes can be viewed as functions mapping their arguments to new instantiations.
持久化参数信息,提供了一个参数列表,可以为每一个过程或函数输入参数值,并且持久化保存这些值。
Persist parameter information provides the list of parameters for which the values can be entered for each procedure or function, and these values are persisted.
基于sendit函数传递的值初始化各种参数。
Initializes various parameters based on the values passed by the sendit function.
这类函数始终需要调用者为其提供一个字符串来进行格式化,因此应当使用命名参数。
Such a function would always require the caller to supply the string to be formatted, so that parameter should be explicitly named.
通过逐步给这个函数增加参数的方式来泛化。
讨论了计算机学科学术论文中的常量、变量、参数和函数的符号编排规范化问题。
The editing and composing standardization of symbols of constants, variables, parameters and functions is discussed in computer science papers.
编译器只会对具有显式参数的完整函数定义和简单的不可变值执行自动泛化。
The compiler performs automatic generalization only on complete function definitions that have explicit arguments, and on simple immutable values.
如果问题是太过复杂而无法泛化的表达式,请通过添加额外的未使用参数来使其成为函数。
If the problem is an expression that is too complex to be generalized, make it into a function by adding an extra, unused parameter.
但是在我们对超类所知的一切只限于它是类型参数的实例化时,对于什么样的构造函数可用于给定的实例化,我们没有任何概念。
But when all we know about our superclass is that it's some instantiation of a type parameter, we have no idea what constructors will be available for a given instantiation.
函数注释的作用是为了标准化函数参数或返回值被注释的方式。
The purpose of function annotations is to standardize the way a function's parameters or return values are annotated. The syntax for function annotations is
本文利用完全线性化方法处理非线性目标函数,用惩罚函数法对拟合参数约束。
In this paper, the non-linear objective function is treated by means of the complete linearization method and the fitting parameters are restricted by using the punished function.
带不等式约束的非线性规划,其KKT条件可以通过NCP函数转化为一个非光滑的方程组,然后用熵光滑化函数光滑化,得到一个带参数的方程组。
The KKT conditions of a nonlinear programming with linear inequality constrains can be transformed into a system of equations by NCP function. Then it is smoothed by Entropy smoothing function.
利用凝聚函数一致逼近非光滑极大值函数的性质,将非线性互补问题转化为参数化光滑方程组。
By using a smooth aggregate function to approximate the non-smooth max-type function, nonlinear complementarity problem can be treated as a family of parameterized smooth equations.
相比于面向对象语言,函数式语言在一个较粗粒度级别上实现重用,使用参数化行为提取常用的实现功能。
Functional languages achieve reuse at a coarser-grained level than object-oriented languages, extracting common machinery with parameterized behavior.
类的实例化使用函数符号。只要将类对象看作是一个返回新的类实例的无参数函数即可。例如(假设沿用前面的类)。
Class instantiation USES function notation. Just pretend that the class object is a parameterless function that returns a new instance of the class. For example (assuming the above class).
要求类型参数的所有实例化都包括不带参数的(zeroary)构造函数。
Require all instantiations of a type parameter to include a zeroary constructor.
需要一个不带参数的(zeroary)构造函数,用于所有类型参数的实例化。
Require a zeroary constructor for all type parameter instantiations.
包含额外的类型参数注释,告知我们这些实例化必须包含哪些构造函数。
Include additional annotations on type parameters telling us which constructors those instantiations must contain.
其构造函数含有两个参数:初始化属性和预配置的记录器(logger)实例。
Its constructor takes two arguments: initialization properties and a pre-configured logger instance. Properties object contains the following.
首先,为了对类型参数构造合法的new表达式(如 newT() ),必须确保我们调用的构造函数对于 T 的每个实例化都有效。
First off, in order to form a legal new expression on a type parameter, such as new T(), it's necessary to make sure that we're calling a constructor that is valid for every instantiation of T.
参数曲线的保形性与生成它的基函数的规范化全正性有关。
Shape preservation of parametric curves is associated with normalized total positivity of its basis functions.
接下来,初始化services_oembed类的一个实例,类构造函数被传递两个参数:YouTubeURL和一组选项。
Next, an instance of the Services_oEmbed class is initialized, with the class constructor passed two arguments: the YouTube URL and an array of options.
接下来,初始化services_oembed类的一个实例,类构造函数被传递两个参数:YouTubeURL和一组选项。
Next, an instance of the Services_oEmbed class is initialized, with the class constructor passed two arguments: the YouTube URL and an array of options.
应用推荐