abstract class VectorNumber extends Number[Vector]
- Alphabetic
- By Inheritance
- VectorNumber
- Number
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def companion: NumberCompanion[Vector]
Companion object that was used to create the number.
Companion object that was used to create the number.
- Definition Classes
- Number
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def *(that: BigRational, length: Int): Vector
Returns this Vector multiplied by the specified org.opentorah.numbers.BigRational with up to length digits after the point.
- final def *(n: Int): Vector
Returns this Vector multiplied by the specified Int.
- final def +(that: Point): Point
Returns Point resulting from adding specified Point to this Vector.
- final def +(that: Vector): Vector
Returns Vector resulting from adding specified Vector to this one.
- final def -(that: Vector): Vector
Returns Vector representing difference between
thisandthatnumbers (which must be both Points or both Vectors).Returns Vector representing difference between
thisandthatnumbers (which must be both Points or both Vectors).- Definition Classes
- Number
- final def /(n: Int, length: Int): Vector
Returns this Vector divided by the specified Int with up to length digits after the point.
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def abs: Vector
Returns absolute value of this number.
Returns absolute value of this number.
- Definition Classes
- Number
- final def add(that: Number[_]): Digits
- Attributes
- protected
- Definition Classes
- Number
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- final def canonical: Vector
Returns canonical representation of this Vector; Vectors are not canonicalized by default even in the periodic number systems.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
- final def compare(that: Vector): Int
How does
thisnumber compare withthat?How does
thisnumber compare withthat?- Definition Classes
- Number
- final val digits: Digits
- Definition Classes
- Number
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def equals(other: Any): Boolean
Are the two numbers equal?
Are the two numbers equal?
- Definition Classes
- Number → AnyRef → Any
- final def get(position: Int): Int
Returns digit at
position.Returns digit at
position.- Definition Classes
- Number
- final def get(digit: Digit): Int
Returns digit described by the Digit descriptor
digit. - final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def hashCode(): Int
- Definition Classes
- Number → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def isNegative: Boolean
Is this number less than
0?Is this number less than
0?- Definition Classes
- Number
- final def isPositive: Boolean
Is this number greater than
0?Is this number greater than
0?- Definition Classes
- Number
- final def isZero: Boolean
Is this number equal to
0?Is this number equal to
0?- Definition Classes
- Number
- final def length: Int
Returns number of digits after the
point.Returns number of digits after the
point.- Definition Classes
- Number
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @HotSpotIntrinsicCandidate()
- final def roundTo(length: Int): Vector
Returns this number rounded to the
position.Returns this number rounded to the
position.- Definition Classes
- Number
- final def roundTo(digit: Digit): Vector
Returns this number rounded to the digit described by the Digit descriptor
digit. - final def set(position: Int, value: Int): Vector
Returns this number with digit at
positionset tovalue.Returns this number with digit at
positionset tovalue.- Definition Classes
- Number
- final def set(digit: Digit, value: Int): Vector
Returns this number with digit described by the Digit descriptor
digitset tovalue. - final def signum: Int
Returns the signum of this number:
-1if it is negative,1if it is positive and0if it is neither.Returns the signum of this number:
-1if it is negative,1if it is positive and0if it is neither.- Definition Classes
- Number
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- final def toDouble: Double
Converts this number to
Double.Converts this number to
Double.- Definition Classes
- Number
- final def toRational: BigRational
Converts this number to org.opentorah.numbers.BigRational.
Converts this number to org.opentorah.numbers.BigRational.
- Definition Classes
- Number
- def toString(): String
Returns string representation of this number.
Returns string representation of this number.
- Definition Classes
- Number → AnyRef → Any
- final def toString(length: Int): String
Returns string representation of this number with
lengthpositions (padding/truncating as needed).Returns string representation of this number with
lengthpositions (padding/truncating as needed).- Definition Classes
- Number
- final def unary_-: Vector
Returns this number with the sign inverted.
Returns this number with the sign inverted.
- Definition Classes
- Number
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated