org.saddle.mat
Type members
Value members
Concrete methods
Given a vector, create a matrix whose diagonal entries equal the vector, with zeros off-diagonal.
Given a vector, create a matrix whose diagonal entries equal the vector, with zeros off-diagonal.
- Value parameters:
- v
The vector of source data
Create a square identity matrix of dimension n x n
Create a square identity matrix of dimension n x n
- Value parameters:
- n
The number of rows/columns of the square matrix
Generate a uniform [0,1) random Mat[Double] of a certain size
Generate a uniform [0,1) random Mat[Double] of a certain size
- Value parameters:
- cols
Number of rows
- rows
Number of rows
Generate a uniform random Mat[Int] of a certain size
Generate a uniform random Mat[Int] of a certain size
- Value parameters:
- cols
Number of rows
- rows
Number of rows
Generate a uniform random Mat[Long] of a certain size
Generate a uniform random Mat[Long] of a certain size
- Value parameters:
- cols
Number of rows
- rows
Number of rows
Generate a standard normal random Mat[Double] of a certain size
Generate a standard normal random Mat[Double] of a certain size
- Value parameters:
- cols
Number of rows
- rows
Number of rows
Generate a gaussian(mu, sigma) random Mat[Double] of a certain size
Generate a gaussian(mu, sigma) random Mat[Double] of a certain size
- Value parameters:
- cols
Number of rows
- mu
Mean of distribution
- rows
Number of rows
- sigma
Stdev of distribution
Generate a uniform random (0,1] Mat[Double] of a certain size
Generate a uniform random (0,1] Mat[Double] of a certain size
- Value parameters:
- cols
Number of rows
- rows
Number of rows
Generate a uniform random positive Mat[Int] of a certain size
Generate a uniform random positive Mat[Int] of a certain size
- Value parameters:
- cols
Number of rows
- rows
Number of rows
Generate a uniform random positive Mat[Long] of a certain size
Generate a uniform random positive Mat[Long] of a certain size
- Value parameters:
- cols
Number of rows
- rows
Number of rows