Matrix

vecxt.matrix.Matrix
See theMatrix companion class
object Matrix

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Matrix.type

Members list

Value members

Concrete methods

def apply[A](raw: Array[A], rows: Row, cols: Col, rowStride: Int, colStride: Int, offset: Int): Matrix[A]
def apply(raw: Array[Double], rows: Row, cols: Col, rowStride: Int, colStride: Int, offset: Int): Matrix[Double]
def apply(raw: Array[Float], rows: Row, cols: Col, rowStride: Int, colStride: Int, offset: Int): Matrix[Float]
def apply(raw: Array[Int], rows: Row, cols: Col, rowStride: Int, colStride: Int, offset: Int): Matrix[Int]
def apply(raw: Array[Long], rows: Row, cols: Col, rowStride: Int, colStride: Int, offset: Int): Matrix[Long]
def apply(raw: Array[Boolean], rows: Row, cols: Col, rowStride: Int, colStride: Int, offset: Int): Matrix[Boolean]
def apply[A](raw: Array[A], layout: Layout): Matrix[A]

Constructs a checked Matrix from an existing Layout. Throws IllegalArgumentException if raw.size != layout.dataLength — that mismatch would mean the array is too small (or too large) for the layout that was promised at construction time. Also delegates to strideMatInstantiateCheck to verify that every element reachable via the layout's strides and offset falls within raw's bounds.

Constructs a checked Matrix from an existing Layout. Throws IllegalArgumentException if raw.size != layout.dataLength — that mismatch would mean the array is too small (or too large) for the layout that was promised at construction time. Also delegates to strideMatInstantiateCheck to verify that every element reachable via the layout's strides and offset falls within raw's bounds.

Attributes

def apply[A](raw: Array[A], dim: RowCol): Matrix[A]
def apply[A](raw: Array[A], rows: Row, cols: Col): Matrix[A]

Assumes column major order.

Assumes column major order.

Attributes

def apply[A](dim: RowCol, raw: Array[A]): Matrix[A]