| fm.basic.op | R Documentation | 
The basic operators are mainly used by the FlashR functions that
accept operators as arguments. Such a function includes fm.mapply,
fm.inner.prod, etc.
fm.get.basic.op(name) fm.get.basic.uop(name) fm.bo.add fm.bo.sub fm.bo.mul fm.bo.div fm.bo.min fm.bo.max fm.bo.pow fm.bo.eq fm.bo.neq fm.bo.gt fm.bo.ge fm.bo.lt fm.bo.le fm.bo.or fm.bo.and fm.bo.count fm.bo.which.max fm.bo.which.min fm.bo.euclidean fm.buo.neg fm.buo.sqrt fm.buo.abs fm.buo.not fm.buo.ceil fm.buo.floor fm.buo.log fm.buo.log2 fm.buo.log10 fm.buo.round fm.buo.as.int fm.buo.as.numeric fm.init.basic.op()
| name | the name of the basic operator. | 
An object of class NULL of length 0.
fm.get.basic.op gets the predefined basic binary operator specified by a user.
The supported basic binary operators are:
"add" or "+"compute addition.
"sub" or "-"compute subtraction;
"mul" or "*"compute multiplication;
"div" or "/"compute division;
"min" and "max"compute minimum and maximum, respectively;
"pow"compute exponential;
"eq" or "=="compute equality;
"gt" or ">"compute greater than;
"ge" or ">="compute greater than or equal to;
"lt" or "<"compute less than;
"le" or "<="compute less than or equal to;
fm.get.basic.uop gets the predefined basic unary operator specified by a user.
The supported basic unary operators are:
"neg"compute negate;
"sqrt"compute square root;
"abs"compute absolute value;
"not"compute logical NOT;
"ceil" and "floor"compute a ceiling and a floor, respectively;
"log", "log2" and "log10"compute log with different bases;
"round"round a number;
"as.int" and "as.numeric"cast a number to an integer and a numeric value, respectively.
fm.init.basic.op initializes the following basic operators.
fm.bo.addthe predifined basic binary operator for addition.
fm.bo.subthe predifined basic binary operator for subtraction.
fm.bo.multhe predifined basic binary operator for multiplication.
fm.bo.divthe predifined basic binary operator for division.
fm.bo.minthe predifined basic binary operator for computing minimum.
fm.bo.maxthe predifined basic binary operator for computing maximum.
fm.bo.powthe predifined basic binary operator for computing exponential.
fm.bo.eq, fm.bo.neq, fm.bo.gt, fm.bo.ge,
fm.bo.lt and fm.bo.le
the predefined basic logical operators to compare two elements: ==, >, >=, <, <=.
fm.buo.negthe predefined basic unary operator for negate.
fm.buo.sqrtthe predefined basic unary operator for square root.
fm.buo.absthe predefined basic unary operator for absolute value.
fm.buo.notthe predefined logical NOT operator.
fm.buo.ceilthe predefined basic unary operator of computing
a ceiling of a number.
fm.buo.floorthe predefined basic unary operator of computing
a floor of a number.
fm.buo.log, fm.buo.log2 and fm.buo.log10
the predefined basic unary operators of computing log with different
bases.
fm.buo.roundthe predefined basic unary operator of rounding
a value.
fm.buo.as.intthe predefined basic unary operator of casting
a numeric value to an integer.
fm.buo.as.numericthe predefined basic unary operator of
casting an integer to a numeric value.
a reference to the specified basic operator.
Da Zheng <dzheng5@jhu.edu>