BIDMat

FMat

case class FMat(nr: Int, nc: Int, data0: Array[Float]) extends DenseMat[Float] with Product with Serializable

Linear Supertypes
Serializable, Serializable, Product, Equals, DenseMat[Float], Mat, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. FMat
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. DenseMat
  7. Mat
  8. AnyRef
  9. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Instance Constructors

  1. new FMat(nr: Int, nc: Int, data0: Array[Float])

Value Members

  1. def !=(b: Mat): Mat

    Definition Classes
    FMatMat
  2. def !=(b: GMat): GMat

  3. def !=(b: SMat): FMat

  4. def !=(b: CMat): CMat

  5. def !=(b: DMat): DMat

  6. def !=(b: IMat): FMat

  7. def !=(b: Int): FMat

  8. def !=(b: Double): FMat

  9. def !=(b: Float): FMat

    Definition Classes
    FMatMat
  10. def !=(b: FMat): FMat

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

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

    Definition Classes
    AnyRef → Any
  13. def *(b: Mat): Mat

    Definition Classes
    FMatMat
  14. def *(b: GMat): GMat

  15. def *(b: CMat): CMat

  16. def *(b: DMat): DMat

  17. def *(b: IMat): FMat

  18. def *(b: Int): FMat

  19. def *(b: Double): FMat

  20. def *(b: Float): FMat

    Definition Classes
    FMatMat
  21. def *(b: SMat): FMat

  22. def *(b: FMat): FMat

  23. def *!(b: FMat): FMat

  24. def **(b: Mat): Mat

    Definition Classes
    FMatMat
  25. def **(b: GMat): GMat

  26. def **(b: SMat): FMat

  27. def **(b: CMat): CMat

  28. def **(b: DMat): DMat

  29. def **(b: IMat): FMat

  30. def **(b: FMat): FMat

  31. def *@(b: Mat): Mat

    Definition Classes
    FMatMat
  32. def *@(b: GMat): GMat

  33. def *@(b: SMat): FMat

  34. def *@(b: CMat): CMat

  35. def *@(b: DMat): DMat

  36. def *@(b: IMat): FMat

  37. def *@(b: Int): FMat

  38. def *@(b: Double): FMat

  39. def *@(b: Float): FMat

    Definition Classes
    FMatMat
  40. def *@(b: FMat): FMat

  41. def *^(b: Mat): Mat

    Definition Classes
    FMatMat
  42. def *^(b: GMat): GMat

  43. def *^(b: CMat): CMat

  44. def *^(b: DMat): DMat

  45. def *^(b: IMat): FMat

  46. def *^(b: FMat): FMat

  47. def *^(b: SMat): FMat

  48. def *^!(b: FMat): FMat

  49. def +(b: Mat): Mat

    Definition Classes
    FMatMat
  50. def +(b: GMat): GMat

  51. def +(b: SMat): FMat

  52. def +(b: CMat): CMat

  53. def +(b: DMat): DMat

  54. def +(b: IMat): FMat

  55. def +(b: Int): FMat

  56. def +(b: Double): FMat

  57. def +(b: Float): FMat

    Definition Classes
    FMatMat
  58. def +(b: FMat): FMat

  59. def -(b: Mat): Mat

    Definition Classes
    FMatMat
  60. def -(b: GMat): GMat

  61. def -(b: SMat): FMat

  62. def -(b: CMat): CMat

  63. def -(b: DMat): DMat

  64. def -(b: IMat): FMat

  65. def -(b: Int): FMat

  66. def -(b: Double): FMat

  67. def -(b: Float): FMat

    Definition Classes
    FMatMat
  68. def -(b: FMat): FMat

  69. def /(b: Mat): Mat

    Definition Classes
    FMatMat
  70. def /(b: GMat): GMat

  71. def /(b: SMat): FMat

  72. def /(b: CMat): CMat

  73. def /(b: DMat): DMat

  74. def /(b: IMat): FMat

  75. def /(b: Int): FMat

  76. def /(b: Double): FMat

  77. def /(b: Float): FMat

    Definition Classes
    FMatMat
  78. def /(b: FMat): FMat

  79. def /<(b: Mat): Mat

    Definition Classes
    FMatMat
  80. def /<(b: GMat): GMat

  81. def /<(b: SMat): FMat

  82. def /<(b: CMat): CMat

  83. def /<(b: DMat): DMat

  84. def /<(b: IMat): FMat

  85. def /<(b: FMat): FMat

  86. def <(b: Mat): Mat

    Definition Classes
    FMatMat
  87. def <(b: GMat): GMat

  88. def <(b: SMat): FMat

  89. def <(b: CMat): CMat

  90. def <(b: DMat): DMat

  91. def <(b: IMat): FMat

  92. def <(b: Int): FMat

  93. def <(b: Double): FMat

  94. def <(b: Float): FMat

    Definition Classes
    FMatMat
  95. def <(b: FMat): FMat

  96. def <--(b: Mat): Mat

    Definition Classes
    Mat
  97. def <=(b: Mat): Mat

    Definition Classes
    FMatMat
  98. def <=(b: GMat): GMat

  99. def <=(b: SMat): FMat

  100. def <=(b: CMat): CMat

  101. def <=(b: DMat): DMat

  102. def <=(b: IMat): FMat

  103. def <=(b: Int): FMat

  104. def <=(b: Double): FMat

  105. def <=(b: Float): FMat

    Definition Classes
    FMatMat
  106. def <=(b: FMat): FMat

  107. def ==(b: Mat): Mat

    Definition Classes
    FMatMat
  108. def ==(b: GMat): GMat

  109. def ==(b: SMat): FMat

  110. def ==(b: CMat): CMat

  111. def ==(b: DMat): DMat

  112. def ==(b: IMat): FMat

  113. def ==(b: Int): FMat

  114. def ==(b: Double): FMat

  115. def ==(b: Float): FMat

    Definition Classes
    FMatMat
  116. def ==(b: FMat): FMat

  117. final def ==(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  118. def ===(b: Mat): Mat

    Definition Classes
    FMatMat
  119. def ===(b: GMat): GMat

  120. def ===(b: SMat): FMat

  121. def ===(b: CMat): CMat

  122. def ===(b: DMat): DMat

  123. def ===(b: IMat): FMat

  124. def ===(b: Int): FMat

  125. def ===(b: Double): FMat

  126. def ===(b: Float): FMat

    Definition Classes
    FMatMat
  127. def ===(b: FMat): FMat

  128. def >(b: Mat): Mat

    Definition Classes
    FMatMat
  129. def >(b: GMat): GMat

  130. def >(b: SMat): FMat

  131. def >(b: CMat): CMat

  132. def >(b: DMat): DMat

  133. def >(b: IMat): FMat

  134. def >(b: Int): FMat

  135. def >(b: Double): FMat

  136. def >(b: Float): FMat

    Definition Classes
    FMatMat
  137. def >(b: FMat): FMat

  138. def >=(b: Mat): Mat

    Definition Classes
    FMatMat
  139. def >=(b: GMat): GMat

  140. def >=(b: SMat): FMat

  141. def >=(b: CMat): CMat

  142. def >=(b: DMat): DMat

  143. def >=(b: IMat): FMat

  144. def >=(b: Int): FMat

  145. def >=(b: Double): FMat

  146. def >=(b: Float): FMat

    Definition Classes
    FMatMat
  147. def >=(b: FMat): FMat

  148. def @@(b: SMat): FDSPair

  149. def @@(b: Mat): DSPair

    Definition Classes
    Mat
  150. def DMult(aa: FMat, omat: Mat): FMat

  151. def GPUmult(b: FMat, out: Mat, btrans: Boolean): FMat

  152. def GUID: Long

    Definition Classes
    Mat
  153. def Tmult(a: FMat, outmat: Mat): FMat

  154. def Tx(b0: DSPair): SMat

    Definition Classes
    FMatMat
  155. def Tx(b: FDSPair): SMat

  156. def Tx(b: Mat): Mat

    Definition Classes
    FMatMat
  157. def Tx(b: GMat): GMat

  158. def Tx(b: SMat): FMat

  159. def Tx(b: CMat): CMat

  160. def Tx(b: DMat): DMat

  161. def Tx(b: IMat): FMat

  162. def Tx(b: FMat): FMat

  163. def \(b: Mat): Mat

    Definition Classes
    FMatMat
  164. def \(b: GMat): GMat

  165. def \(b: SMat): FMat

  166. def \(b: CMat): CMat

  167. def \(b: DMat): DMat

  168. def \(b: IMat): FMat

  169. def \(b: Float): FMat

  170. def \(b: FMat): FMat

  171. def \\(b: Mat): Mat

    Definition Classes
    FMatMat
  172. def \\(b: GMat): GMat

  173. def \\(b: SMat): FMat

  174. def \\(b: CMat): CMat

  175. def \\(b: DMat): DMat

  176. def \\(b: IMat): FMat

  177. def \\(b: FMat): FMat

  178. def ^(b: Mat): Mat

    Definition Classes
    FMatMat
  179. def ^(b: GMat): GMat

  180. def ^(b: SMat): FMat

  181. def ^(b: CMat): CMat

  182. def ^(b: DMat): DMat

  183. def ^(b: IMat): FMat

  184. def ^(b: Int): FMat

  185. def ^(b: Double): FMat

  186. def ^(b: Float): FMat

    Definition Classes
    FMatMat
  187. def ^(b: FMat): FMat

  188. def ^*(b0: DSPair): SMat

    Definition Classes
    FMatMat
  189. def ^*(b: FDSPair): SMat

  190. def ^*(b: Mat): Mat

    Definition Classes
    FMatMat
  191. def ^*(b: GMat): GMat

  192. def ^*(b: SMat): FMat

  193. def ^*(b: CMat): CMat

  194. def ^*(b: DMat): DMat

  195. def ^*(b: IMat): FMat

  196. def ^*(b: FMat): FMat

  197. def _update(i: Int, jv: IMat, b: Float): DenseMat[Float]

    Implement sliced assignment, a(i,jv) = b where jv a vector, using ? as wildcard.

    Implement sliced assignment, a(i,jv) = b where jv a vector, using ? as wildcard.

    Definition Classes
    DenseMat
  198. def _update(iv: IMat, j: Int, b: Float): DenseMat[Float]

    Implement sliced assignment, a(iv,j) = b where iv a vectors, j integer, using ? as wildcard.

    Implement sliced assignment, a(iv,j) = b where iv a vectors, j integer, using ? as wildcard.

    Definition Classes
    DenseMat
  199. def _update(rowinds: IMat, colinds: IMat, b: Float): DenseMat[Float]

    Implement sliced assignment, a(iv,jv) = b:T where iv and jv are vectors, using ? as wildcard.

    Implement sliced assignment, a(iv,jv) = b:T where iv and jv are vectors, using ? as wildcard.

    Definition Classes
    DenseMat
  200. def _update(rowinds: IMat, colinds: IMat, b: DenseMat[Float]): DenseMat[Float]

    Implement sliced assignment, a(iv,jv) = b where iv and jv are vectors, using ? as wildcard.

    Implement sliced assignment, a(iv,jv) = b where iv and jv are vectors, using ? as wildcard.

    Definition Classes
    DenseMat
  201. def _update(inds: IMat, b: Float): DenseMat[Float]

    Implement a(im) = b where im is a matrix of indices to a, and b is a constant.

    Implement a(im) = b where im is a matrix of indices to a, and b is a constant.

    Definition Classes
    DenseMat
  202. def _update(im: IMat, b: DenseMat[Float]): DenseMat[Float]

    Implement a(im) = b where im is a matrix of indices to a and im and b are same-sized.

    Implement a(im) = b where im is a matrix of indices to a and im and b are same-sized.

    Definition Classes
    DenseMat
  203. def _update(i0: Int, v: Float): Float

    Update a matrix value with linear access, m(i) = v.

    Update a matrix value with linear access, m(i) = v.

    Definition Classes
    DenseMat
  204. def _update(r0: Int, c0: Int, v: Float): Float

    Update a matrix value, m(r,c) = v, 0- or 1-based.

    Update a matrix value, m(r,c) = v, 0- or 1-based.

    Definition Classes
    DenseMat
  205. def apply(a: Int, b: Mat): FMat

    Definition Classes
    FMatMat
  206. def apply(a: Mat, b: Int): FMat

    Definition Classes
    FMatMat
  207. def apply(a: Mat, b: Mat): FMat

    Definition Classes
    FMatMat
  208. def apply(a: Mat): FMat

    Definition Classes
    FMatMat
  209. def apply(a: Int, b: IMat): FMat

    Definition Classes
    FMatMat
  210. def apply(a: IMat, b: Int): FMat

    Definition Classes
    FMatMat
  211. def apply(a: IMat, b: IMat): FMat

    Definition Classes
    FMatMat
  212. def apply(a: IMat): FMat

    Definition Classes
    FMatMat
  213. def apply(i0: Int): Float

    Bounds-checked linear access, 0- or 1-based.

    Bounds-checked linear access, 0- or 1-based.

    Definition Classes
    DenseMat
  214. def apply(r0: Int, c0: Int): Float

    Bounds-checked matrix access, 0- or 1-based.

    Bounds-checked matrix access, 0- or 1-based.

    Definition Classes
    DenseMat
  215. def apply(a: GIMat, b: IMat): Mat

    Definition Classes
    Mat
  216. def apply(a: IMat, b: GIMat): Mat

    Definition Classes
    Mat
  217. def apply(a: Int, b: GIMat): Mat

    Definition Classes
    Mat
  218. def apply(a: GIMat, b: Int): Mat

    Definition Classes
    Mat
  219. def apply(a: GIMat, b: GIMat): Mat

    Definition Classes
    Mat
  220. def apply(a: GIMat): Mat

    Definition Classes
    Mat
  221. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  222. def checkInds(inds: IMat, limit: Int, typ: String): Unit

    Throws exception if a string is within a limited index range in a string matrix.

    Throws exception if a string is within a limited index range in a string matrix.

    Definition Classes
    DenseMat
  223. def clear: FMat

    Clears the elements of a matrix by filling in 0s and nulls.

    Clears the elements of a matrix by filling in 0s and nulls.

    Definition Classes
    FMatDenseMatMat
  224. def clearLower: DenseMat[Float]

    Definition Classes
    FMatMat
  225. def clearLower(off: Int): DenseMat[Float]

    Definition Classes
    FMatMat
  226. def clearUpper: DenseMat[Float]

    Definition Classes
    FMatMat
  227. def clearUpper(off: Int): DenseMat[Float]

    Definition Classes
    FMatMat
  228. def clone(): AnyRef

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  229. def colslice(a: Int, b: Int, out: Mat, c: Int): FMat

    Definition Classes
    FMatMat
  230. def colslice(a: Int, b: Int, out: Mat): FMat

    Definition Classes
    FMatMat
  231. def colslice(a: Int, b: Int): Mat

    Definition Classes
    Mat
  232. def contents(): FMat

    Definition Classes
    FMatMat
  233. def copy: FMat

    Definition Classes
    FMatMat
  234. def copyTo(a: Mat): Mat

    Definition Classes
    FMatMat
  235. def copyTo(a: FMat): FMat

  236. val data: Array[Float]

    Definition Classes
    DenseMat
  237. val data0: Array[Float]

  238. def ddot(a: Mat): Double

    Definition Classes
    FMatMat
  239. def ddot(a: FMat): Double

  240. def ddot(a: DenseMat[Float])(implicit numeric: Numeric[Float]): Double

    Performs the Hadamard (element-wise) product between this matrix and a, then adds the elements together into a single double.

    Performs the Hadamard (element-wise) product between this matrix and a, then adds the elements together into a single double.

    Throws a RuntimeException if the dimensions are incompatible.

    Example:

    scala> a
    res8: BIDMat.IMat =
       1   2   3
       4   5   6
       7   8   9
    
    scala> val b = IMat(ones(3,3))
    b: BIDMat.IMat =
       1   1   1
       1   1   1
       1   1   1
    
    scala> a.ddot(b)
    res10: Double = 45.0
    a

    A matrix with the same dimensions and compatible type as this matrix.

    Definition Classes
    DenseMat
  241. def dot(b: Mat): Mat

    Definition Classes
    FMatMat
  242. def dot(b: GMat): GMat

  243. def dot(b: SMat): FMat

  244. def dot(b: CMat): CMat

  245. def dot(b: DMat): DMat

  246. def dot(b: IMat): FMat

  247. def dot(a: FMat): FMat

  248. def dot(a: FMat, omat: Mat): FMat

  249. def dotr(b: Mat): Mat

    Definition Classes
    FMatMat
  250. def dotr(b: GMat): GMat

  251. def dotr(b: SMat): FMat

  252. def dotr(b: CMat): CMat

  253. def dotr(b: DMat): DMat

  254. def dotr(b: IMat): FMat

  255. def dotr(a: FMat): FMat

  256. def dotr(a: FMat, omat: Mat): FMat

  257. def dv: Double

    Definition Classes
    FMatMat
  258. final def eq(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  259. def fDMult(a: FMat, outmat: Mat): FMat

  260. def fDMultHelper(a: FMat, out: FMat, istart: Int, iend: Int): Unit

  261. def fDMultTHelper(a: FMat, out: FMat, istart: Int, iend: Int): Unit

  262. def fSMult(a: SMat, outmat: Mat): FMat

  263. def fSMultHelper(a: SMat, out: FMat, istart: Int, iend: Int, ioff: Int): Unit

  264. def fSMultHelper2(a: SMat, out: FMat, istart: Int, iend: Int, ioff: Int): Unit

  265. def fSMultTHelper(a: SMat, out: FMat, istart: Int, iend: Int, ioff: Int): Unit

  266. def fSMultTHelper2(a: SMat, out: FMat, istart: Int, iend: Int, ioff: Int): Unit

  267. def ffMatOp(b: Mat, f: (Float, Float) ⇒ Float, out: Mat): FMat

  268. def ffMatOpScalar(b: Float, f: (Float, Float) ⇒ Float, out: Mat): FMat

  269. def ffMatOpScalarv(b: Float, f: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, out: Mat): FMat

  270. def ffMatOpv(b: Mat, f: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, out: Mat): FMat

  271. def ffReduceAll(n: Int, f1: (Float) ⇒ Float, f2: (Float, Float) ⇒ Float, out: Mat): FMat

  272. def ffReduceAllv(n: Int, f: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, out: Mat): FMat

  273. def ffReduceOp(n: Int, f1: (Float) ⇒ Float, f2: (Float, Float) ⇒ Float, out: Mat): FMat

  274. def ffReduceOpv(n: Int, f1: (Float) ⇒ Float, f2: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, out: Mat): FMat

  275. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  276. def find: IMat

    Find indices (linear) for all non-zeros elements.

    Find indices (linear) for all non-zeros elements.

    Definition Classes
    DenseMat
  277. def find2: (IMat, IMat)

    Find indices (i,j) for non-zero elements.

    Find indices (i,j) for non-zero elements.

    Definition Classes
    DenseMat
  278. def find3: (IMat, IMat, FMat)

  279. def findInds(out: IMat, off: Int): IMat

    Helper function for find functions.

    Helper function for find functions.

    Definition Classes
    FMatDenseMat
  280. def free: Mat

    Definition Classes
    Mat
  281. def gapply(i: Int, jv: IMat): DenseMat[Float]

    Implement slicing, a(i,jv) where i integer, jv a vector, using ? as wildcard.

    Implement slicing, a(i,jv) where i integer, jv a vector, using ? as wildcard.

    Definition Classes
    DenseMat
  282. def gapply(iv: IMat, jv: Int): DenseMat[Float]

    Implement slicing, a(iv,j) where iv a vector, j an integer, using ? as wildcard.

    Implement slicing, a(iv,j) where iv a vector, j an integer, using ? as wildcard.

    Definition Classes
    DenseMat
  283. def gapply(rowinds: IMat, colinds: IMat): DenseMat[Float]

    Implement slicing, a(iv,jv) where iv and jv are vectors, using ? as wildcard.

    Implement slicing, a(iv,jv) where iv and jv are vectors, using ? as wildcard.

    Definition Classes
    DenseMat
  284. def gapply(im: IMat): DenseMat[Float]

    Return a(im) where im is a matrix of indices.

    Return a(im) where im is a matrix of indices.

    Definition Classes
    DenseMat
  285. def gcolslice(a: Int, b: Int, omat: Mat, c: Int): DenseMat[Float]

    Tries to save a slice into an output matrix, but recreates it if too small.

    Tries to save a slice into an output matrix, but recreates it if too small.

    Definition Classes
    DenseMat
  286. def gdot(a: DenseMat[Float], oldmat: Mat)(implicit numeric: Numeric[Float]): DenseMat[Float]

    Definition Classes
    DenseMat
  287. def gdotr(a: DenseMat[Float], oldmat: Mat)(implicit numeric: Numeric[Float]): DenseMat[Float]

    Definition Classes
    DenseMat
  288. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  289. def get_(r: Int, c: Int): Float

    Unchecked 0-based matrix access of element at m(r,c).

    Unchecked 0-based matrix access of element at m(r,c).

    Definition Classes
    DenseMat
  290. def getdiag: DenseMat[Float]

    Gets the leading diagonal of this matrix as a vector.

    Gets the leading diagonal of this matrix as a vector. Again, like m.mkdiag, m.getdiag will return a seemingly empty matrix on the command line, but it holds the correct elements. Use getdiag(m) for most purposes instead of this method.

    Example:

    scala> val a = 1\2\3 on 4\5\6 on 7\8\9
    a: BIDMat.IMat =
       1   2   3
       4   5   6
       7   8   9
    
    scala> a.getdiag
    res4: BIDMat.DenseMat[Int] =
    
    
    
    
    scala> a(0)
    res5: Int = 1
    
    scala> a(1)
    res6: Int = 4
    
    scala> a(2)
    res7: Int = 7

    TODO I suggest making this package-protected. ~Daniel Seita

    Definition Classes
    DenseMat
  291. def gfind3: (IMat, IMat, DenseMat[Float])

    Find tuples (i,j,v) for non-zero elements.

    Find tuples (i,j,v) for non-zero elements.

    Definition Classes
    DenseMat
  292. def ggMatOp(aa: DenseMat[Float], op2: (Float, Float) ⇒ Float, oldmat: Mat): DenseMat[Float]

    General operation between two matrices.

    General operation between two matrices. Apply op2 to corresponding elements from the input matrices.

    Definition Classes
    DenseMat
  293. def ggMatOpScalar(a: Float, op2: (Float, Float) ⇒ Float, oldmat: Mat): DenseMat[Float]

    Apply the binary operation op2 to the matrix and a scalar argument.

    Apply the binary operation op2 to the matrix and a scalar argument.

    Definition Classes
    DenseMat
  294. def ggMatOpScalarv(a: Float, opv: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, oldmat: Mat): DenseMat[Float]

    Definition Classes
    DenseMat
  295. def ggMatOpStrict(aa: DenseMat[Float], op2: (Float, Float) ⇒ Float, oldmat: Mat): DenseMat[Float]

    This version applies the operator op2 with stricter dimension checking, either dims must match or one arg must be scalar

    This version applies the operator op2 with stricter dimension checking, either dims must match or one arg must be scalar

    Definition Classes
    DenseMat
  296. def ggMatOpStrictv(aa: DenseMat[Float], opv: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, oldmat: Mat): DenseMat[Float]

    Definition Classes
    DenseMat
  297. def ggMatOpv(aa: DenseMat[Float], opv: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, oldmat: Mat): DenseMat[Float]

    General operation between two matrices.

    General operation between two matrices. Apply op2 to corresponding elements from the input matrices. Implemented with vector operation primitives.

    Definition Classes
    DenseMat
  298. def ggOpt2(dim0: Int, op2: (Float, Float) ⇒ Boolean): (DenseMat[Float], IMat)

    Definition Classes
    DenseMat
  299. def ggReduceAll(dim0: Int, op1: (Float) ⇒ Float, op2: (Float, Float) ⇒ Float, oldmat: Mat): DenseMat[Float]

    Definition Classes
    DenseMat
  300. def ggReduceAllv(dim0: Int, opv: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, oldmat: Mat): DenseMat[Float]

    Definition Classes
    DenseMat
  301. def ggReduceOp(dim0: Int, op1: (Float) ⇒ Float, op2: (Float, Float) ⇒ Float, oldmat: Mat): DenseMat[Float]

    Definition Classes
    DenseMat
  302. def ggReduceOpv(dim0: Int, op1: (Float) ⇒ Float, opv: (Array[Float], Int, Int, Array[Float], Int, Int, Array[Float], Int, Int, Int) ⇒ Float, oldmat: Mat): DenseMat[Float]

    Definition Classes
    DenseMat
  303. def ghorzcat(a: DenseMat[Float]): DenseMat[Float]

    Stack matrices horizontally.

    Stack matrices horizontally.

    Throws a RuntimeException if the number of rows does not match.

    Note: As is usual with DenseMat methods, it will return a "correct" matrix in that arithmetic, etc. should work, but it is not visible on the command line, so wrap it around with (for instance) a DMat to "see" the results on the command line.

    Example:

    scala> val b = DMat(1\2 on 3\4)
    b: BIDMat.DMat =
       1   2
       3   4
    
    scala> b.ghorzcat(b)
    res10: BIDMat.DenseMat[Double] =
    
    
    
    scala> DMat(b.ghorzcat(b))
    res11: BIDMat.DMat =
       1   2   1   2
       3   4   3   4
    Definition Classes
    DenseMat
  304. def growslice(a: Int, b: Int, omat: Mat, c: Int): DenseMat[Float]

    Tries to save a slice into an output matrix, but recreates it if too small.

    Tries to save a slice into an output matrix, but recreates it if too small.

    Definition Classes
    DenseMat
  305. def gt(oldmat: Mat): DenseMat[Float]

    Returns the transpose of this matrix.

    Returns the transpose of this matrix.

    Definition Classes
    DenseMat
  306. def gvertcat(a: DenseMat[Float]): DenseMat[Float]

    Stack matrices vertically.

    Stack matrices vertically.

    Throws a RuntimeException if the number of columns does not match.

    Note: As is usual with DenseMat methods, it will return a "correct" matrix in that arithmetic, etc. should work, but it is not visible on the command line, so wrap it around with (for instance) a DMat to "see" the results on the command line.

    Example:

    scala> val b = DMat(1\2 on 3\4)
    b: BIDMat.DMat =
       1   2
       3   4
    
    scala> b.gvertcat(b)
    res12: BIDMat.DenseMat[Double] =
    
    
    
    
    
    scala> DMat(b.gvertcat(b))
    res13: BIDMat.DMat =
       1   2
       3   4
       1   2
       3   4
    
    scala>
    Definition Classes
    DenseMat
  307. def horzcat(b: FMat): FMat

  308. def i: CMat

  309. def indexOf(a: Float): Int

    Returns a single index using linear access (i.e., column-major order) of first occurrence of element a, or -1 if it does not exist.

    Returns a single index using linear access (i.e., column-major order) of first occurrence of element a, or -1 if it does not exist.

    Note that matrices can be 0- or 1-based; the latter occurs in languages like MATLAB. In that case, an element not present in the matrix gets an index of 0 instead of 1.

    In the following examples, the matrix is 0-based:

    scala> val a = 3\4 on 7\4
    a: BIDMat.IMat =
       3   4
       7   4
    
    scala> a.indexOf(7)
    res20: Int = 1
    
    scala> a.indexOf(4)
    res21: Int = 2
    Definition Classes
    DenseMat
  310. def indexOf2(a: Float): (Int, Int)

    Returns a tuple representing the (row, column) index of element a in this matrix, or (-1,0) if it does not exist and if the matrix is 0-based.

    Returns a tuple representing the (row, column) index of element a in this matrix, or (-1,0) if it does not exist and if the matrix is 0-based. 1-based arrays get (0,1) for a non-existent element.

    In the following examples, the matrix is 0-based:

    scala> val a = 3\4 on 7\4
    a: BIDMat.IMat =
       3   4
       7   4
    
    scala> a.indexOf2(7)
    res22: (Int, Int) = (1,0)
    
    scala> a.indexOf2(4)
    res23: (Int, Int) = (0,1)
    Definition Classes
    DenseMat
  311. def inv: FMat

  312. def iones(m: Int, n: Int): IMat

    Definition Classes
    FMatMat
  313. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  314. def isvector(): Boolean

    Returns true if this matrix is a row or column vector, false otherwise.

    Returns true if this matrix is a row or column vector, false otherwise.

    Definition Classes
    DenseMat
  315. def izeros(m: Int, n: Int): IMat

    Definition Classes
    FMatMat
  316. def kron(a: FMat): FMat

  317. def kron(b: FMat, oldmat: Mat): FMat

  318. def length: Int

    Definition Classes
    Mat
  319. def mkdiag: DenseMat[Float]

    Creates a diagonal, square matrix with this vector's elements in the diagonal.

    Creates a diagonal, square matrix with this vector's elements in the diagonal. Note that while this will return a correct matrix, but will be printed as an empty matrix on the command line, so it's recommended to use mkdiag(m) instead of this (which is m.mkdiag).

    Throws exception if applied to a non-vector matrix.

    Example:

    scala> val a = (1 on 2 on 3).mkdiag
    a: BIDMat.DenseMat[Int] =
    
    
    
    
    scala> a(1,1)
    res2: Int = 2
    
    scala> a(1,2)
    res3: Int = 0

    TODO I suggest making this package-protected. ~Daniel Seita

    Definition Classes
    DenseMat
  320. def multT(a: FMat, outmat: Mat): FMat

  321. def multT(a: SMat, outmat: Mat): FMat

  322. def mytype: String

    Returns a string description of this type, i.e., returns "DenseMat".

    Returns a string description of this type, i.e., returns "DenseMat".

    Definition Classes
    FMatDenseMatMat
  323. val nc: Int

  324. val ncols: Int

    Definition Classes
    Mat
  325. final def ne(arg0: AnyRef): Boolean

    Definition Classes
    AnyRef
  326. def newcopy: FMat

    Definition Classes
    FMatMat
  327. def nnz: Int

    Count number of non-zero entries.

    Count number of non-zero entries.

    Definition Classes
    FMatDenseMatMat
  328. def notImplemented0(s: String): Mat

    Definition Classes
    Mat
  329. def notImplemented1(s: String, that: Mat): Mat

    Definition Classes
    Mat
  330. def notImplemented2(s: String, that: Float): Mat

    Definition Classes
    Mat
  331. def notImplementedd(s: String): Double

    Definition Classes
    Mat
  332. def notImplementedf(s: String): Float

    Definition Classes
    Mat
  333. def notImplementedi(s: String): Int

    Definition Classes
    Mat
  334. def notImplementedl(s: String): Long

    Definition Classes
    Mat
  335. final def notify(): Unit

    Definition Classes
    AnyRef
  336. final def notifyAll(): Unit

    Definition Classes
    AnyRef
  337. val nr: Int

  338. val nrows: Int

    Definition Classes
    Mat
  339. def on(b: Mat): Mat

    Definition Classes
    FMatMat
  340. def on(b: GMat): GMat

  341. def on(b: SMat): FMat

  342. def on(b: CMat): CMat

  343. def on(b: DMat): DMat

  344. def on(b: IMat): FMat

  345. def on(b: Float): FMat

  346. def on(b: FMat): FMat

  347. def ones(nr: Int, nc: Int): FMat

    Definition Classes
    FMatMat
  348. def printOne(i: Int): String

    Prints i spaces, useful for building strings.

    Prints i spaces, useful for building strings.

    Definition Classes
    FMatDenseMat
  349. def recycle(nr: Int, nc: Int, nnz: Int): FMat

    Definition Classes
    FMatMat
  350. def rowslice(a: Int, b: Int): FMat

    Definition Classes
    FMatMat
  351. def rowslice(a: Int, b: Int, out: Mat, c: Int): FMat

    Definition Classes
    FMatMat
  352. def rowslice(a: Int, b: Int, out: Mat): FMat

    Definition Classes
    FMatMat
  353. def sDMult(aa: FMat, omat: Mat): FMat

  354. def sadd(b: FMat, c: FMat): Unit

  355. def set(v: Float): FMat

    Definition Classes
    FMatMat
  356. def set(v: Double): Mat

    Definition Classes
    Mat
  357. def setGUID(v: Long): Unit

    Definition Classes
    Mat
  358. def setLower(v: Float, off: Int): DenseMat[Float]

    Similar to setUpper(v,off), except we set the lower left part of the matrix.

    Similar to setUpper(v,off), except we set the lower left part of the matrix.

    Examples:

    scala> val a = ones(3,3)
    a: BIDMat.FMat =
       1   1   1
       1   1   1
       1   1   1
    
    scala> a.setLower(2,2)
    res56: BIDMat.DenseMat[Float] =
       1   1   1
       1   1   1
       1   1   1
    
    scala> a.setLower(2,1)
    res57: BIDMat.DenseMat[Float] =
       1   1   1
       1   1   1
       2   1   1
    v

    The element which we assign to certain positions of the matrix's elements.

    off

    Determines the "first" diagonal of the matrix to which we assign v, and all diagonals below that will also be assigned v.

    Definition Classes
    DenseMat
  359. def setUpper(v: Float, off: Int): DenseMat[Float]

    Sets some upper right triangular parts of a matrix to be v; actual elements depend on off.

    Sets some upper right triangular parts of a matrix to be v; actual elements depend on off.

    Examples:

    scala> val a = ones(3,3)
    a: BIDMat.FMat =
       1   1   1
       1   1   1
       1   1   1
    
    scala> a.setUpper(2,1)
    res52: BIDMat.DenseMat[Float] =
       2   2   2
       1   2   2
       1   1   2
    
    scala> val b = ones(3,3)
    b: BIDMat.FMat =
       1   1   1
       1   1   1
       1   1   1
    
    scala> b.setUpper(2,0)
    res53: BIDMat.DenseMat[Float] =
       1   2   2
       1   1   2
       1   1   1
    v

    The element which we assign to certain positions of the matrix's elements.

    off

    Determines the "first" diagonal of the matrix to which we assign v, and all diagonals above that will also be assigned v.

    Definition Classes
    DenseMat
  360. def set_(r: Int, c: Int, v: Float): Float

    Unchecked 0-based set, so m(r,c) = v.

    Unchecked 0-based set, so m(r,c) = v.

    Definition Classes
    DenseMat
  361. def size(): Int

  362. def solvel(a0: Mat): FMat

  363. def solver(a0: Mat): FMat

  364. final def synchronized[T0](arg0: ⇒ T0): T0

    Definition Classes
    AnyRef
  365. def t(omat: Mat): FMat

  366. def t: FMat

    Definition Classes
    FMatMat
  367. def toString(): String

    Returns a string representation of the matrix.

    Returns a string representation of the matrix.

    Definition Classes
    DenseMat → AnyRef → Any
  368. def tt(omat: Mat): FMat

  369. def unary_-(): FMat

    Definition Classes
    FMatMat
  370. def update(i: Int, jv: Mat, b: Mat): FMat

    Definition Classes
    FMatMat
  371. def update(iv: Mat, j: Int, b: Mat): FMat

    Definition Classes
    FMatMat
  372. def update(iv: Mat, jv: Mat, b: Mat): FMat

    Definition Classes
    FMatMat
  373. def update(iv: Mat, b: Mat): FMat

    Definition Classes
    FMatMat
  374. def update(i: Int, jv: IMat, b: Mat): FMat

    Definition Classes
    FMatMat
  375. def update(iv: IMat, j: Int, b: Mat): FMat

    Definition Classes
    FMatMat
  376. def update(iv: IMat, jv: IMat, b: Mat): FMat

    Sliced assignment, where m(iv,jv) = b.

    Sliced assignment, where m(iv,jv) = b. Varies depending on type of matrices involved.

    Definition Classes
    FMatDenseMatMat
  377. def update(iv: IMat, b: Mat): FMat

    Definition Classes
    FMatMat
  378. def update(i: Int, jv: IMat, b: FMat): FMat

  379. def update(iv: IMat, j: Int, b: FMat): FMat

  380. def update(iv: IMat, jv: IMat, b: FMat): FMat

  381. def update(iv: IMat, b: FMat): FMat

  382. def update(iv: Mat, j: Int, b: Int): FMat

    Definition Classes
    FMatMat
  383. def update(i: Int, jv: Mat, b: Int): FMat

    Definition Classes
    FMatMat
  384. def update(iv: Mat, jv: Mat, b: Int): FMat

    Definition Classes
    FMatMat
  385. def update(iv: Mat, b: Int): FMat

    Definition Classes
    FMatMat
  386. def update(iv: IMat, j: Int, b: Int): FMat

    Definition Classes
    FMatMat
  387. def update(i: Int, jv: IMat, b: Int): FMat

    Definition Classes
    FMatMat
  388. def update(iv: IMat, jv: IMat, b: Int): FMat

    Definition Classes
    FMatMat
  389. def update(iv: IMat, b: Int): FMat

    Definition Classes
    FMatMat
  390. def update(iv: Mat, j: Int, b: Double): FMat

    Definition Classes
    FMatMat
  391. def update(i: Int, jv: Mat, b: Double): FMat

    Definition Classes
    FMatMat
  392. def update(iv: Mat, jv: Mat, b: Double): FMat

    Definition Classes
    FMatMat
  393. def update(iv: Mat, b: Double): FMat

    Definition Classes
    FMatMat
  394. def update(iv: IMat, j: Int, b: Double): FMat

    Definition Classes
    FMatMat
  395. def update(i: Int, jv: IMat, b: Double): FMat

    Definition Classes
    FMatMat
  396. def update(iv: IMat, jv: IMat, b: Double): FMat

    Definition Classes
    FMatMat
  397. def update(iv: IMat, b: Double): FMat

    Definition Classes
    FMatMat
  398. def update(iv: Mat, j: Int, b: Float): FMat

    Definition Classes
    FMatMat
  399. def update(i: Int, jv: Mat, b: Float): FMat

    Definition Classes
    FMatMat
  400. def update(iv: Mat, jv: Mat, b: Float): FMat

    Definition Classes
    FMatMat
  401. def update(iv: Mat, b: Float): FMat

    Definition Classes
    FMatMat
  402. def update(iv: IMat, j: Int, b: Float): FMat

    Definition Classes
    FMatMat
  403. def update(i: Int, jv: IMat, b: Float): FMat

    Definition Classes
    FMatMat
  404. def update(iv: IMat, jv: IMat, b: Float): FMat

    Definition Classes
    FMatMat
  405. def update(iv: IMat, b: Float): FMat

    Definition Classes
    FMatMat
  406. def update(i: Int, j: Int, b: Int): FMat

    Definition Classes
    FMatMat
  407. def update(i: Int, b: Int): FMat

    Definition Classes
    FMatMat
  408. def update(i: Int, j: Int, b: Double): FMat

    Definition Classes
    FMatMat
  409. def update(i: Int, b: Double): FMat

    Definition Classes
    FMatMat
  410. def update(i: Int, j: Int, b: Float): FMat

    Definition Classes
    FMatMat
  411. def update(i: Int, b: Float): FMat

    Definition Classes
    FMatMat
  412. def update(a: Int, b: Int, v: Long): Mat

    Definition Classes
    Mat
  413. def update(a: Int, v: Long): Mat

    Definition Classes
    Mat
  414. def update(a: Int, b: Mat, v: Long): Mat

    Definition Classes
    Mat
  415. def update(a: Mat, b: Int, v: Long): Mat

    Definition Classes
    Mat
  416. def update(a: Mat, b: Mat, v: Long): Mat

    Definition Classes
    Mat
  417. def update(a: Mat, v: Long): Mat

    Definition Classes
    Mat
  418. def update(a: IMat, b: GIMat, c: Double): Mat

    Definition Classes
    Mat
  419. def update(a: GIMat, b: IMat, c: Double): Mat

    Definition Classes
    Mat
  420. def update(a: Int, b: GIMat, c: Double): Mat

    Definition Classes
    Mat
  421. def update(a: GIMat, b: Int, c: Double): Mat

    Definition Classes
    Mat
  422. def update(a: GIMat, b: GIMat, c: Double): Mat

    Definition Classes
    Mat
  423. def update(a: GIMat, b: Double): Mat

    Definition Classes
    Mat
  424. def update(a: IMat, b: GIMat, c: Float): Mat

    Definition Classes
    Mat
  425. def update(a: GIMat, b: IMat, c: Float): Mat

    Definition Classes
    Mat
  426. def update(a: Int, b: GIMat, c: Float): Mat

    Definition Classes
    Mat
  427. def update(a: GIMat, b: Int, c: Float): Mat

    Definition Classes
    Mat
  428. def update(a: GIMat, b: GIMat, c: Float): Mat

    Definition Classes
    Mat
  429. def update(a: GIMat, b: Float): Mat

    Definition Classes
    Mat
  430. def update(a: IMat, b: GIMat, c: Int): Mat

    Definition Classes
    Mat
  431. def update(a: GIMat, b: IMat, c: Int): Mat

    Definition Classes
    Mat
  432. def update(a: Int, b: GIMat, c: Int): Mat

    Definition Classes
    Mat
  433. def update(a: GIMat, b: Int, c: Int): Mat

    Definition Classes
    Mat
  434. def update(a: GIMat, b: GIMat, c: Int): Mat

    Definition Classes
    Mat
  435. def update(a: GIMat, b: Int): Mat

    Definition Classes
    Mat
  436. def update(a: IMat, b: GIMat, m: Mat): Mat

    Definition Classes
    Mat
  437. def update(a: GIMat, b: IMat, m: Mat): Mat

    Definition Classes
    Mat
  438. def update(a: Int, b: GIMat, m: Mat): Mat

    Definition Classes
    Mat
  439. def update(a: GIMat, b: Int, m: Mat): Mat

    Definition Classes
    Mat
  440. def update(a: GIMat, b: GIMat, m: Mat): Mat

    Definition Classes
    Mat
  441. def update(a: GIMat, b: Mat): Mat

    Definition Classes
    Mat
  442. def update(a: Int, b: IMat, c: Long): Mat

    Definition Classes
    Mat
  443. def update(a: IMat, b: Int, c: Long): Mat

    Definition Classes
    Mat
  444. def update(a: IMat, b: IMat, c: Long): Mat

    Definition Classes
    Mat
  445. def update(a: IMat, b: Long): Mat

    Definition Classes
    Mat
  446. def v: Float

    Return the (0,0) value as a scalar.

    Return the (0,0) value as a scalar.

    Definition Classes
    DenseMat
  447. def vertcat(b: FMat): FMat

  448. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  451. def xG(b: FMat): FMat

  452. def xT(b: Mat): Mat

    Definition Classes
    FMatMat
  453. def xT(b: GMat): GMat

  454. def xT(b: CMat): CMat

  455. def xT(b: DMat): DMat

  456. def xT(b: IMat): FMat

  457. def xT(b: FMat): FMat

  458. def xT(b: SMat): FMat

  459. def xTG(b: FMat): FMat

  460. def zeros(nr: Int, nc: Int): FMat

    Definition Classes
    FMatMat
  461. def zeros(nr: Int, nc: Int, nnz: Int): Mat

    Definition Classes
    Mat
  462. def ~(b: Mat): Pair

    Definition Classes
    FMatMat
  463. def ~(b: SMat): SPair

  464. def ~(b: FMat): FPair

  465. def (b: Mat): Mat

    Definition Classes
    FMatMat
  466. def (b: GMat): GMat

  467. def (b: SMat): FMat

  468. def (b: CMat): CMat

  469. def (b: DMat): DMat

  470. def (b: IMat): FMat

  471. def (b: Int): FMat

  472. def (b: Double): FMat

  473. def (b: Float): FMat

    Definition Classes
    FMatMat
  474. def (b: FMat): FMat

  475. def (b: Mat): Mat

    Definition Classes
    FMatMat
  476. def (b: GMat): GMat

  477. def (b: SMat): FMat

  478. def (b: CMat): CMat

  479. def (b: DMat): DMat

  480. def (b: IMat): FMat

  481. def (b: FMat): FMat

  482. def ∙→(b: Mat): Mat

    Definition Classes
    FMatMat
  483. def ∙→(b: GMat): GMat

  484. def ∙→(b: SMat): FMat

  485. def ∙→(b: CMat): CMat

  486. def ∙→(b: DMat): DMat

  487. def ∙→(b: IMat): FMat

  488. def ∙→(b: FMat): FMat

  489. def ∙∙(b: FMat): Double

  490. def ∙∙(b: Mat): Double

    Definition Classes
    Mat
  491. def (b: Mat): Mat

    Definition Classes
    FMatMat
  492. def (b: GMat): GMat

  493. def (b: SMat): FMat

  494. def (b: CMat): CMat

  495. def (b: DMat): DMat

  496. def (b: IMat): FMat

  497. def (b: FMat): FMat

  498. def (b: Mat): Mat

    Definition Classes
    FMatMat
  499. def (b: GMat): GMat

  500. def (b: SMat): FMat

  501. def (b: CMat): CMat

  502. def (b: DMat): DMat

  503. def (b: IMat): FMat

  504. def (b: FMat): FMat

  505. def (b: Mat): Mat

    Definition Classes
    FMatMat
  506. def (b: GMat): GMat

  507. def (b: SMat): FMat

  508. def (b: CMat): CMat

  509. def (b: DMat): DMat

  510. def (b: IMat): FMat

  511. def (b: FMat): FMat

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from DenseMat[Float]

Inherited from Mat

Inherited from AnyRef

Inherited from Any

Ungrouped