MatrixFactory

Companion
class
class Object
trait Matchable
class Any

Type members

Classlikes

trait Builder[R <: Int, C <: Int, T] extends Matrix[R, C, T]

A Builder is a "Matrix under construction" that itself forms a (mutable) Matrix. Utilizing Builder is the preferred way of creating new Matrices in Matrix operations.

A Builder is a "Matrix under construction" that itself forms a (mutable) Matrix. Utilizing Builder is the preferred way of creating new Matrices in Matrix operations.

One instance of a Builder is used to create one Matrix. This means that invoking the same Builder instance multiple times is OK, but letting a Builder leave a local scope is not OK (it's mutable!).

Implementations of this trait must return zero for uninitialized element positions.

Value members

Concrete methods

def apply[R <: Int, C <: Int, T](using mf: MatrixFactory[R, C, T]): MatrixFactory[R, C, T]

Returns the implicitly available MatrixFactory.

Returns the implicitly available MatrixFactory.