Package me.yixqiao.jlearn.matrix
Class Matrix.Init
- java.lang.Object
-
- me.yixqiao.jlearn.matrix.Matrix.Init
-
- Direct Known Subclasses:
Matrix.Init.Empty,Matrix.Init.Fill,Matrix.Init.Gaussian,Matrix.Init.Uniform
- Enclosing class:
- Matrix
public abstract static class Matrix.Init extends java.lang.ObjectInitialization methods for Matrix.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMatrix.Init.EmptyInit all with 0s.static classMatrix.Init.FillInit all with a number.static classMatrix.Init.GaussianGenerate random numbers from the gaussian distribution to fill the matrix.static classMatrix.Init.UniformGenerate a uniform range of random numbers to fill the matrix.
-
Constructor Summary
Constructors Constructor Description Init()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidapply(Matrix m)Apply the initialization (in place) to a new matrix.
-
-
-
Method Detail
-
apply
public abstract void apply(Matrix m)
Apply the initialization (in place) to a new matrix.- Parameters:
m- the matrix
-
-