trait ScalarTag[T] extends ClassTag[T] with SpecializedFactory[T] with CouldBeOrdered[T] with CouldBeNumber[T]
Typeclass definition for scalar tags. A ScalarTag contains important meta-data regarding a scalar type, including how to instantiate a Buffer/Vec/Mat/Index of that type, as well as an array. Often implicitly required when dealing with objects in Saddle
- Alphabetic
- By Inheritance
- ScalarTag
- CouldBeNumber
- CouldBeOrdered
- SpecializedFactory
- ClassTag
- Equals
- ClassManifestDeprecatedApis
- OptManifest
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def compare(a: T, b: T)(implicit ev: ORD[T]): Int
- Definition Classes
- CouldBeOrdered
- abstract def inf(implicit ev: NUM[T]): T
- Definition Classes
- CouldBeNumber
- abstract def isMissing(t: T): Boolean
- abstract def makeBuf(sz: Int = org.saddle.Buffer.INIT_CAPACITY): Buffer[T]
- Definition Classes
- SpecializedFactory
- abstract def makeIndex(vec: Vec[T])(implicit ord: ORD[T]): Index[T]
- Definition Classes
- SpecializedFactory
- abstract def makeMat(r: Int, c: Int, arr: Array[T]): Mat[T]
- Definition Classes
- SpecializedFactory
- abstract def makeSorter(implicit ord: ORD[T]): Sorter[T]
- Definition Classes
- SpecializedFactory
- abstract def makeVec(arr: Array[T]): Vec[T]
- Definition Classes
- SpecializedFactory
- abstract def missing: T
- abstract def negInf(implicit ev: NUM[T]): T
- Definition Classes
- CouldBeNumber
- abstract def one(implicit ev: NUM[T]): T
- Definition Classes
- CouldBeNumber
- abstract def parse(s: Array[Char], from: Int, to: Int): T
Parses from a char array
Parses from a char array
Does not throw on erroneous input, rather returns the missing value.
- s
characters
- from
first index, inclusive
- to
last index, exclusive
- returns
a parsed value, or the missing value if any error occurs
- abstract def runtimeClass: Class[_]
- Definition Classes
- ScalarTag → ClassTag
- abstract def show(v: T): String
- abstract def toDouble(t: T)(implicit ev: NUM[T]): Double
- Definition Classes
- CouldBeNumber
- abstract def zero(implicit ev: NUM[T]): T
- Definition Classes
- CouldBeNumber
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- def altMatConstructor(r: Int, c: Int, arr: Array[Vec[T]])(implicit st: ST[T]): Mat[T]
Can override this default construction methodology to avoid the toArray call if you don't want to extract elements that way.
Can override this default construction methodology to avoid the toArray call if you don't want to extract elements that way.
- Attributes
- protected
- Definition Classes
- SpecializedFactory
- def argString: String
- Attributes
- protected
- Definition Classes
- ClassManifestDeprecatedApis
- def arrayClass[A](tp: Class[_]): Class[Array[A]]
- Attributes
- protected
- Definition Classes
- ClassManifestDeprecatedApis
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asString(v: T): String
- def canEqual(x: Any): Boolean
- Definition Classes
- ClassTag → Equals → ClassManifestDeprecatedApis
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(o: Any): Boolean
- Definition Classes
- ScalarTag → ClassTag → Equals → AnyRef → Any
- def erasure: Class[_]
- Definition Classes
- ScalarTag → ClassManifestDeprecatedApis
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def gt(a: T, b: T)(implicit ev: ORD[T]): Boolean
- Definition Classes
- CouldBeOrdered
- def hashCode(): Int
- Definition Classes
- ScalarTag → ClassTag → AnyRef → Any
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def iseq(a: T, b: T)(implicit ev: ORD[T]): Boolean
- Definition Classes
- CouldBeOrdered
- def lt(a: T, b: T)(implicit ev: ORD[T]): Boolean
- Definition Classes
- CouldBeOrdered
- final def makeMat(arr: Array[Vec[T]])(implicit st: ST[T]): Mat[T]
An alternative Mat factory method using array of Vecs
An alternative Mat factory method using array of Vecs
- Definition Classes
- SpecializedFactory
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newArray(len: Int): Array[T]
- Definition Classes
- ClassTag
- def notMissing(t: T): Boolean
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def strList(v: T): List[String]
- def strListLossless(v: T): List[String]
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- ScalarTag → ClassTag → AnyRef → Any
- def unapply(x: Any): Option[T]
- Definition Classes
- ClassTag
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- 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()
- def wrap: ClassTag[Array[T]]
- Definition Classes
- ClassTag
Deprecated Value Members
- def <:<(that: ClassManifest[_]): Boolean
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use scala.reflect.runtime.universe.TypeTag for subtype checking instead
- def >:>(that: ClassManifest[_]): Boolean
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use scala.reflect.runtime.universe.TypeTag for subtype checking instead
- def arrayManifest: ClassManifest[Array[T]]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use wrap instead
- def newArray2(len: Int): Array[Array[T]]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use wrap.newArray instead
- def newArray3(len: Int): Array[Array[Array[T]]]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use wrap.wrap.newArray instead
- def newArray4(len: Int): Array[Array[Array[Array[T]]]]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use wrap.wrap.wrap.newArray instead
- def newArray5(len: Int): Array[Array[Array[Array[Array[T]]]]]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use wrap.wrap.wrap.wrap.newArray instead
- def newArrayBuilder(): ArrayBuilder[T]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use ArrayBuilder.make(this) instead
- def newWrappedArray(len: Int): ArraySeq[T]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) create WrappedArray directly instead
- def typeArguments: List[OptManifest[_]]
- Definition Classes
- ClassManifestDeprecatedApis
- Annotations
- @deprecated
- Deprecated
(Since version 2.10.0) use scala.reflect.runtime.universe.TypeTag to capture type structure instead