Trait

cogx.compiler.parser.syntaxtree

CogSymbolicOperators

Related Doc: package syntaxtree

Permalink

trait CogSymbolicOperators extends AnyRef

Cog symbolic operators implemented using GPUOperators.

Self Type
CogSymbolicOperators
Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. CogSymbolicOperators
  2. AnyRef
  3. Any
  1. Hide All
  2. Show all
Visibility
  1. Public
  2. All

Abstract Value Members

  1. abstract def !===(that: Float): Field

    Permalink

    For every element, x, in this, compute x notIdenticallyEquals that where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in this, compute x notIdenticallyEquals that where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as this.

    that

    Operand for !=== operator.

    returns

    A field equal to this with each element, x, mapped to x notIdenticallyEquals that.

  2. abstract def !===(that: Field): Field

    Permalink

    Compare two fields using the "not identically equal" operator; a numeric value of 1.0f represents true (first operand != second operand) and a numeric value of 0.0f represents false.

    Compare two fields using the "not identically equal" operator; a numeric value of 1.0f represents true (first operand != second operand) and a numeric value of 0.0f represents false.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Operand for computing this !=== that.

    returns

    this notIdenticallyEqualTo that

  3. abstract def %(that: Float): Field

    Permalink

    For every element, x, in this, compute x modulo that.

    For every element, x, in this, compute x modulo that. The result has the same field shape and tensor shape as this.

    that

    Operand for modulo operator.

    returns

    A field equal to this with each element, x, mapped to x modulo that.

  4. abstract def %(that: Field): Field

    Permalink

    Compute this modulo that to create a third field.

    Compute this modulo that to create a third field.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Operand for computing this modulo that.

    returns

    this % that

  5. abstract def *(that: cogmath.algebra.complex.Complex): Field

    Permalink

    Multiply every element in this by that.

    Multiply every element in this by that. This will coerce this to be complex before proceeding.

    that

    Multiplicand

    returns

    A field equal to the product of this and that, where every numeric component of this has been multiplied by that.

  6. abstract def *(that: Float): Field

    Permalink

    Multiply every element in this by that to produce a result with the same field shape and tensor shape as this.

    Multiply every element in this by that to produce a result with the same field shape and tensor shape as this.

    that

    Constant to be multiplied with every number in this.

    returns

    A field equal to the product of this and that, where every numeric component of this has been multiplied by that.

  7. abstract def *(that: Field): Field

    Permalink

    Multiply this field by that field to create a third field.

    Multiply this field by that field to create a third field.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Field to be multiplied by this.

    returns

    this * that

  8. abstract def +(that: cogmath.algebra.complex.Complex): Field

    Permalink

    Add the constant that to every element in this.

    Add the constant that to every element in this. This will coerce this to be complex before proceeding.

    that

    Constant to be added to number in this.

    returns

    A field equal to the sum of this and that, where that has been added to every numeric component of this.

  9. abstract def +(that: Float): Field

    Permalink

    Add the constant that to every element in this to produce a result with the same field shape and tensor shape as this.

    Add the constant that to every element in this to produce a result with the same field shape and tensor shape as this.

    that

    Constant to be added to every number in this.

    returns

    A field equal to the sum of this and that, where that has been added to every numeric component of this.

  10. abstract def +(that: Field): Field

    Permalink

    Add this field and that field to create a third field.

    Add this field and that field to create a third field.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Field to be added to this.

    returns

    Sum of the two fields.

  11. abstract def -(that: cogmath.algebra.complex.Complex): Field

    Permalink

    Subtract the constant that from every element in this.

    Subtract the constant that from every element in this. This will coerce this to be complex before proceeding.

    that

    Constant to be subtracted from each number in this.

    returns

    A field equal to the difference of this and that, where that has been subtracted from every numeric component of this.

  12. abstract def -(that: Float): Field

    Permalink

    Subtract the constant that from every element in this to produce a result with the same field shape and tensor shape as this.

    Subtract the constant that from every element in this to produce a result with the same field shape and tensor shape as this.

    that

    Constant to be sutracted from every number in this.

    returns

    A field equal to the difference of this and that, where that has been subtracted from every numeric component of this.

  13. abstract def -(that: Field): Field

    Permalink

    Subtract that field from this field to create a third field.

    Subtract that field from this field to create a third field.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Field to be subtracted to this.

    returns

    this - that

  14. abstract def /(that: cogmath.algebra.complex.Complex): Field

    Permalink

    Divide every element in this by that.

    Divide every element in this by that. This will coerce this to be complex before proceeding.

    that

    Divisor.

    returns

    A field equal to the quotient of this and that, where every numeric component of this has been divided by that.

  15. abstract def /(that: Float): Field

    Permalink

    Divide every element in this by that to produce a result with the same field shape and tensor shape as this.

    Divide every element in this by that to produce a result with the same field shape and tensor shape as this.

    The user must assure that the divisor is not zero, since the result would be NaN which does not throw an exception.

    that

    Divisor.

    returns

    A field equal to this dividedBy that, where every numeric component of this has been divided by that.

  16. abstract def /(that: Field): Field

    Permalink

    Divide this field by that field to create a third field.

    Divide this field by that field to create a third field.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Field that this will be divided by.

    returns

    this / that

  17. abstract def <(that: Float): Field

    Permalink

    For every element, x, in this, compute x lessThan that where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in this, compute x lessThan that where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as this.

    that

    Operand for < operator.

    returns

    A field equal to this with each element, x, mapped to x lessThan that.

  18. abstract def <(that: Field): Field

    Permalink

    Compare two fields using the "less than" operator; a numeric value of 1.0f represents true (first operand < second operand) and a numeric value of 0.0f represents false.

    Compare two fields using the "less than" operator; a numeric value of 1.0f represents true (first operand < second operand) and a numeric value of 0.0f represents false.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Operand for computing this < that.

    returns

    this lessThan that

  19. abstract def <=(that: Float): Field

    Permalink

    For every element, x, in this, compute x lessThanEqual that where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in this, compute x lessThanEqual that where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as this.

    that

    Operand for <= operator.

    returns

    A field equal to this with each element, x, mapped to x lessThanEqual that.

  20. abstract def <=(that: Field): Field

    Permalink

    Compare two fields using the "less than equal" operator; a numeric value of 1.0f represents true (first operand <= second operand) and a numeric value of 0.0f represents false.

    Compare two fields using the "less than equal" operator; a numeric value of 1.0f represents true (first operand <= second operand) and a numeric value of 0.0f represents false.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Operand for computing this <- that.

    returns

    this lessThanOrEquel that

  21. abstract def <==(that: Field): Unit

    Permalink

    Feedback operator, denotes a field value fed back to this.

    Feedback operator, denotes a field value fed back to this.

    This does automatic type coercion if the field fed back is larger than or equal to the size (in each dimension) of the recipient of that field. This should be overridden where illegal.

  22. abstract def ===(that: Float): Field

    Permalink

    For every element, x, in this, compute x identicallyEquals that where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in this, compute x identicallyEquals that where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as this.

    that

    Operand for === operator.

    returns

    A field equal to this with each element, x, mapped to x identicallyEquals that.

  23. abstract def ===(that: Field): Field

    Permalink

    Compare two fields using the "identically equal" operator; a numeric value of 1.0f represents true (first operand == second operand) and a numeric value of 0.0f represents false.

    Compare two fields using the "identically equal" operator; a numeric value of 1.0f represents true (first operand == second operand) and a numeric value of 0.0f represents false.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Operand for computing this === that.

    returns

    this identicallyEqualTo that

  24. abstract def >(that: Float): Field

    Permalink

    For every element, x, in this, compute x greaterThan that where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in this, compute x greaterThan that where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as this.

    that

    Operand for > operator.

    returns

    A field equal to this with each element, x, mapped to x greaterThan that.

  25. abstract def >(that: Field): Field

    Permalink

    Compare two fields using the "greater than" operator; a numeric value of 1.0f represents true (first operand > second operand) and a numeric value of 0.0f represents false.

    Compare two fields using the "greater than" operator; a numeric value of 1.0f represents true (first operand > second operand) and a numeric value of 0.0f represents false.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Operand for computing this > that.

    returns

    this greaterThan that

  26. abstract def >=(that: Float): Field

    Permalink

    For every element, x, in this, compute x greaterThanEqual that where 1.0f represents a "true" result and 0.0f represents a "false" result.

    For every element, x, in this, compute x greaterThanEqual that where 1.0f represents a "true" result and 0.0f represents a "false" result. The resulting field has the same field shape and tensor shape as this.

    that

    Operand for >= operator.

    returns

    A field equal to this with each element, x, mapped to x greaterThanEqual that.

  27. abstract def >=(that: Field): Field

    Permalink

    Compare two fields using the "greater than or equal" operator; a numeric value of 1.0f represents true (first operand >= second operand) and a numeric value of 0.0f represents false.

    Compare two fields using the "greater than or equal" operator; a numeric value of 1.0f represents true (first operand >= second operand) and a numeric value of 0.0f represents false.

    This operator follows the algebraic binary operator rules for input type compatibility, implicit type conversions, and output result type. See the class description for these rules.

    that

    Operand for computing this >= that.

    returns

    this greaterThanOrEqual that

  28. abstract def ^(that: Field): Field

    Permalink
  29. abstract def apply(index: Int): Field

    Permalink

    Reduce the dimensionality of a field by 1 by "slicing" along one index of the first dimension.

    Reduce the dimensionality of a field by 1 by "slicing" along one index of the first dimension.

    For example, consider this input (3 rows x 4 columns) field:

    0  1  2  3
    4  5  6  7
    8  9  0  1

    The first dimension is rows, so a "slice index" of 0 would return the first row:

    0  1  2  3

    A slice index of 1 would return the second row:

    4  5  6  7

    And a slice index of 2 would return the third row:

    8  9  0  1
    index

    The index of the first dimension along which we will slice out a lower-dimensional field.

    returns

    A sliced field, of dimension one less than the input field dimension.

  30. abstract def apply(range: Range*): Field

    Permalink

    Extract a contiguous subfield from a field, maintaining its dimensionality.

    Extract a contiguous subfield from a field, maintaining its dimensionality.

    Each dimension of a field is indexed starting a zero. The user supplies a range of indices, one for each dimension, that specifies the continguous range of indices that should be extracted into the subfield.

    For example, consider this input field:

    0  1  2  3
    4  5  6  7
    8  9  0  1

    This has 3 rows (first dimension) and 4 columns (second dimension) so its shape is 3 x 4. Specify row range (1 to 2) and column range (1 to 3) would extract the following subfield:

    5  6  7
    9  0  1
    range

    For each dimension, a range of indices specifying where to extract the subfield.

    returns

    Subfield of input as specified by the range parameters.

  31. abstract def unary_-(): Field

    Permalink

    Multiply each number in a field by -1.

    Multiply each number in a field by -1.

    The resulting field has the same field shape and tensor shape as this.

    returns

    The negative of the input field.

Concrete Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  5. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  6. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  7. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  8. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  9. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  10. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  11. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  14. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  15. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  16. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  17. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  18. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  19. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )

Inherited from AnyRef

Inherited from Any

Ungrouped