MatrixInstance

vecxt.MatrixInstance

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Extensions

Extensions

extension [A](m: Matrix[A])
def apply(rowRange: RangeExtender, colRange: RangeExtender)(using ClassTag[A]): Matrix[A]
transparent inline def apply(b: RowCol)(using inline boundsCheck: BoundsCheck): A

Element retrieval

Element retrieval

Attributes

transparent inline def apply(row: Row, col: Col)(using inline boundsCheck: BoundsCheck): A
inline def apply(indexes: Array[RowCol])(using inline boundsCheck: BoundsCheck, ct: ClassTag[A], onz: OneAndZero[A]): Matrix[A]

Returns a matrix of the same dimension, all elements are zero except those selected by the index

Returns a matrix of the same dimension, all elements are zero except those selected by the index

Attributes

def deepCopy(using ct: ClassTag[A]): Matrix[A]

Returns a deep copy of the matrix. Copies elements one by one.

Returns a deep copy of the matrix. Copies elements one by one.

Attributes

inline def elementIndex(row: Row, col: Col)(using inline boundsCheck: BoundsCheck): Int
def submatrix(rowRange: RangeExtender, colRange: RangeExtender)(using ct: ClassTag[A]): Matrix[A]
inline def update(rc: RowCol, value: A)(using inline boundsCheck: BoundsCheck): Unit
inline def update(row: Row, col: Col, value: A)(using inline boundsCheck: BoundsCheck): Unit
inline def update(idx: Matrix[Boolean], value: A)(using inline boundsCheck: BoundsCheck): Unit
inline def update(inline fct: A => Boolean, value: A)(using inline boundsCheck: BoundsCheck): Unit
inline def updateInPlace(row: RangeExtender, col: RangeExtender, to: Array[A])(using inline boundsCheck: BoundsCheck): Unit