# MatrixOps

#### class MatrixOps extends AnyRef

Linear Supertypes
AnyRef, Any
Known Subclasses
Ordering
1. Alphabetic
2. By inheritance
Inherited
1. MatrixOps
2. AnyRef
3. Any
1. Hide All
2. Show all
Visibility
1. Public
2. All

### Value Members

1. #### final def !=(arg0: AnyRef): Boolean

Definition Classes
AnyRef
2. #### final def !=(arg0: Any): Boolean

Definition Classes
Any

4. #### final def ##(): Int

Definition Classes
AnyRef → Any

18. #### def -=:(that: Matrix): Matrix

A := B - A which is -(A - B)

20. #### def ::=(f: (Double) ⇒ Double): Matrix

Sparse function assign: iterate and assign over non-zeros only

21. #### def ::=(f: (Int, Int, Double) ⇒ Double): Matrix

Sparse assign: iterate and assign over non-zeros only

22. #### def :=(f: (Double) ⇒ Double): Matrix

Functional assign with (Double) => Double

25. #### def :=(that: TraversableOnce[Vector]): Unit

Assigning from a row-wise collection of vectors

Assigning from a row-wise collection of vectors

that

-

27. #### final def ==(arg0: AnyRef): Boolean

Definition Classes
AnyRef
28. #### final def ==(arg0: Any): Boolean

Definition Classes
Any

30. #### def apply(f: (Int, Int, Double) ⇒ Double): Matrix

A version of function apply with default AUTO treatment of `evalZeros`.

31. #### def apply(f: (Double) ⇒ Double): Matrix

A version of function apply with default AUTO treatment of `evalZeros`.

32. #### def apply(f: (Int, Int, Double) ⇒ Double, evalZeros: T): Matrix

Apply a function element-wise without side-effects to the argument (creates a new matrix).

Apply a function element-wise without side-effects to the argument (creates a new matrix).

f

element-wise function (row, column, value) ⇒ "new value"

evalZeros

Do we have to process zero elements? true, false, auto: if auto, we will test the supplied function for `f(0) != 0`, and depending on the result, will decide if we want evaluation for zero elements. WARNING: the AUTO setting may not always work correctly for functions that are meant to run in a specific backend context, or non-deterministic functions, such as {-1,0,1} random generators.

returns

new DRM with the element-wise function applied.

33. #### def apply(f: (Double) ⇒ Double, evalZeros: T): Matrix

Apply a function element-wise without side-effects to the argument (creates a new matrix).

Apply a function element-wise without side-effects to the argument (creates a new matrix).

f

element-wise function "value" ⇒ "new value"

evalZeros

Do we have to process zero elements? true, false, auto: if auto, we will test the supplied function for `f(0) != 0`, and depending on the result, will decide if we want evaluation for zero elements. WARNING: the AUTO setting may not always work correctly for functions that are meant to run in a specific backend context, or non-deterministic functions, such as {-1,0,1} random generators.

returns

new DRM with the element-wise function applied.

38. #### final def asInstanceOf[T0]: T0

Definition Classes
Any
39. #### def clone(): AnyRef

Attributes
protected[java.lang]
Definition Classes
AnyRef
Annotations
@throws( ... )

47. #### final def eq(arg0: AnyRef): Boolean

Definition Classes
AnyRef
48. #### def equals(arg0: Any): Boolean

Definition Classes
AnyRef → Any
49. #### def equiv(that: Matrix): Boolean

Ideally, we would probably want to override equals().

Ideally, we would probably want to override equals(). But that is not possible without modifying AbstractMatrix implementation in Mahout which would require discussion at Mahout team.

that
returns

50. #### def finalize(): Unit

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

Definition Classes
AnyRef → Any
52. #### def hashCode(): Int

Definition Classes
AnyRef → Any
53. #### def isFullRank: Boolean

test if rank == min(nrow,ncol).

test if rank == min(nrow,ncol).

returns

54. #### final def isInstanceOf[T0]: Boolean

Definition Classes
Any

57. #### final def ne(arg0: AnyRef): Boolean

Definition Classes
AnyRef

60. #### final def notify(): Unit

Definition Classes
AnyRef
61. #### final def notifyAll(): Unit

Definition Classes
AnyRef

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

Definition Classes
AnyRef
70. #### def t: Matrix

Warning: This provides read-only view only.

Warning: This provides read-only view only. In most cases that's what one wants. To get a copy, use `m.t cloned`

returns

transposed view

71. #### def toString(): String

Definition Classes
AnyRef → Any
72. #### def unary_-: Matrix

Warning: this creates a clone (as in mx * -1), in many applications inplace inversion `mx *= -1` might be an infinitely better choice.

80. #### final def wait(): Unit

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

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

Definition Classes
AnyRef
Annotations
@throws( ... )