This library is fundamentally an adaptation of the Java MatF library, JaMa, by MathWorks Inc. and the National Institute of Standards and Technology.
Attributes
- Companion
- class
- Source
- MatF.scala
- Graph
-
- Supertypes
- Self type
-
MatF.type
Members list
Value members
Concrete methods
Construct a matrix from a one-dimensional packed array
Construct a matrix from a one-dimensional packed array
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- values
-
One-dimensional array of Floats, packed by rows.
Attributes
- Throws
-
IllegalArgumentException
NArray length must equal M * N
- Source
- MatF.scala
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- values
-
the matrix elements.
Attributes
- Returns
-
an M x N matrix consisting of values.
- Source
- MatF.scala
Construct a matrix from a 2-D array.
Construct a matrix from a 2-D array.
Value parameters
- arr2d
-
Two-dimensional array of Floats. arr2d(row)(column).
Attributes
- Throws
-
IllegalArgumentException
All rows must have the same length
- Source
- MatF.scala
Construct a matrix from a copy of an array.
Construct a matrix from a copy of an array.
Value parameters
- values
-
array of Floats.
Attributes
- Throws
-
IllegalArgumentException
All rows must have the same length
- Source
- MatF.scala
Generate identity matrix scaled by value parameter.
Generate identity matrix scaled by value parameter.
Type parameters
- M
-
number of rows.
- N
-
number of columns.
Value parameters
- value
-
scalar multiplier
- x$2
-
implicit
- x$3
-
implicit
Attributes
- Returns
-
An MxN matrix with ones on the diagonal and zeros elsewhere.
- Source
- MatF.scala
Generate a square matrix with the supplied vector along the diagonal.
Generate a square matrix with the supplied vector along the diagonal.
Value parameters
- v
-
a vector
Attributes
- Source
- MatF.scala
Attributes
- Source
- MatF.scala
Construct an MxN constant matrix.
Construct an MxN constant matrix.
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- value
-
Fill the matrix with this scalar value.
Attributes
- Returns
-
an MxN constant matrix.
- Source
- MatF.scala
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- m
-
an instance of slash.matrix.Mat[M, N]
Attributes
- Returns
-
an M x N matrix; an instance of slash.matrixf.MatF[M, N]
- Source
- MatF.scala
Generate identity matrix
Generate identity matrix
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Attributes
- Returns
-
An MxN matrix with ones on the diagonal and zeros elsewhere.
- Source
- MatF.scala
Construct an MxN matrix of ones.
Construct an MxN matrix of ones.
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Attributes
- Source
- MatF.scala
Construct a matrix of random values.
Generates an MxN matrix which consists of elements randomized between [-1.0, 1.0] inclusive.
Generates an MxN matrix which consists of elements randomized between [-1.0, 1.0] inclusive.
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- r
-
optional random instance.
Attributes
- Returns
-
An MxN matrix with uniformly distributed random elements.
- Source
- MatF.scala
Generate matrix with random elements
Generate matrix with random elements
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- minNorm
-
Minimum random generated value allowed, inclusive.
- normMAX
-
Maximum random generated value allowed, inclusive.
Attributes
- Returns
-
An MxN matrix with uniformly distributed random elements.
- Source
- MatF.scala
Generate matrix with random elements
Generate matrix with random elements
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- minNorm
-
Minimum random generated value allowed, inclusive.
- normMAX
-
Maximum random generated value allowed, inclusive.
- r
-
optional random instance.
Attributes
- Returns
-
An MxN matrix with uniformly distributed random elements.
- Source
- MatF.scala
Generate matrix with random elements
Generate matrix with random elements
Type parameters
- M
-
the number of rows
- N
-
the number of columns
Value parameters
- interval
-
from which to draw matrix component values.
- r
-
optional random instance.
Attributes
- Returns
-
An MxN matrix with uniformly distributed random elements.
- Source
- MatF.scala