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.Object
Initialization methods for Matrix.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Matrix.Init.Empty
Init all with 0s.static class
Matrix.Init.Fill
Init all with a number.static class
Matrix.Init.Gaussian
Generate random numbers from the gaussian distribution to fill the matrix.static class
Matrix.Init.Uniform
Generate 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 void
apply(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
-
-