public class PaddingMatrix
extends java.lang.Object
| Constructor and Description |
|---|
PaddingMatrix(int rows,
int cols)
Initializes a new instance of the PaddingMatrix class.
|
PaddingMatrix(int rows,
int cols,
boolean replicate)
Initializes a new instance of the PaddingMatrix class.
|
PaddingMatrix(int rows,
int cols,
double value)
Initializes a new instance of the PaddingMatrix class.
|
| Modifier and Type | Method and Description |
|---|---|
double[][] |
Create(double[][] matrix)
Create a new matrix with the padding values.
|
public PaddingMatrix(int rows,
int cols)
rows - Number of rows.cols - Number of columns.public PaddingMatrix(int rows,
int cols,
double value)
rows - Number of rows.cols - Number of columns.value - Default value to fill.public PaddingMatrix(int rows,
int cols,
boolean replicate)
rows - Number of rows.cols - Number of columns.replicate - Replicate the elements of the border.