object Matrix
- Alphabetic
- By Inheritance
- Matrix
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
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
apply[E](elem: (Int, Vector[E]), elems: (Int, Vector[E])*)(implicit arg0: ClassTag[E]): SparseRowMatrix[E]
- elems
index-value pairs
- returns
a vector with sparse element storage
-
def
apply[E, F](fs: Seq[(F) ⇒ E], range: NumericRange[F])(implicit arg0: ClassTag[E], low: AtRow): Matrix[E]
- returns
a matrix with row vectors computed from the specified functions using equidistant values from the given
range
and implicitly given lower index bounds.
val a = Matrix(Seq((x: Double) => x*x, (x: Double) => x*x*x), 0.0 to 10.0 by 1.0)
Example: -
def
apply[E](f: (Int) ⇒ Vector[E], begin: Int, end: Int)(implicit arg0: ClassTag[E]): Matrix[E]
- returns
a matrix with row vectors computed from the specified function in the index range
[begin, end]
.
val a = Matrix((i: Int) => Vector(i*10+1,i*10+2,i*10+3), 1, 3)
Example: -
def
apply[E](elems: Vector[E]*)(implicit arg0: ClassTag[E], low: AtRow): Matrix[E]
- returns
a matrix with specified row vectors and implicitly given lower row-index bound.
implicit val Low = At(0); val a = Matrix.atRow(0)(Vector(11,12,13), Vector(21,22,23)) //uses specified implicit At(0)
, val a = Matrix(Vector(11,12,13), Vector(21,22,23)) //uses default implicit At(1)
- Note
Use this factory method when either the default implicit lower index bound At(1) should be applied or you wnat to define your own implicit At object in scope. If the low argument would be stated explicitly, a ClassTag argument had to be specified as well, so in this case it is better to use the
atRow
method with explicit index parameter.
Examples: -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
atRow[E](at: Int)(elems: Vector[E]*)(implicit arg0: ClassTag[E]): Matrix[E]
- returns
a matrix with specified row vectors and lower row-index bound
val a = Matrix.atRow(0)(Vector(11,12,13), Vector(21,22,23))
- Note
the column-index bounds are derived from the row vectors
Example: - implicit def canBuildFrom[E](implicit arg0: ClassTag[E]): MatrixCanBuildFrom[Matrix[_], Vector[E], Matrix[E]]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
- def fromSeq[E](seq: Seq[Vector[E]])(low: AtRow)(implicit arg0: ClassTag[E]): Matrix[E]
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def newBuilder[E](implicit arg0: ClassTag[E]): MatrixBuilder[Vector[E], Matrix[E]]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
scal0[E](implicit arg0: ClassTag[E]): E
- returns
the scalar zero according to E
-
def
scal1[E](implicit arg0: ClassTag[E]): E
- returns
the scalar one according to E
-
def
sparse[E](elems: (Int, Vector[E])*)(implicit arg0: ClassTag[E]): SparseRowMatrix[E]
- elems
index-value pairs
- returns
a vector with sparse element storage
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @throws( ... )
- object AtRow