**'cern.colt.matrix.tint.IntFactory2D'**Java class

cern.colt.matrix.tint

## Class IntFactory2D

- java.lang.Object
- cern.colt.PersistentObject
- cern.colt.matrix.tint.IntFactory2D

- All Implemented Interfaces:
- Serializable, Cloneable

public class IntFactory2Dextends PersistentObject

Factory for convenient construction of 2-d matrices holding`int`cells. Also provides convenient methods to compose (concatenate) and decompose (split) matrices from/to constituent blocks.*Construction*Use idioms like `IntFactory2D.dense.make(4,4)`to construct dense matrices,`IntFactory2D.sparse.make(4,4)`to construct sparse matrices.*Construction with initial values*Use other `make`methods to construct matrices with given initial values.*Appending rows and columns*Use methods `appendColumns`

,`appendRows`

and`repeat`

to append rows and columns.*General block matrices*Use methods `compose`

and`decompose`

to work with general block matrices.*Diagonal matrices*Use methods `diagonal(vector)`

,`diagonal(matrix)`

and`identity`

to work with diagonal matrices.*Diagonal block matrices*Use method `composeDiagonal`

to work with diagonal block matrices.*Random*Use methods `random`

and`sample`

to construct random matrices.If the factory is used frequently it might be useful to streamline the notation. For example by aliasing:

IntFactory2D F = IntFactory2D.dense; F.make(4,4); F.descending(10,20); F.random(4,4); ...

- See Also:
- Serialized Form

**Warning:**You cannot see the full API documentation of this class since the access to the DatMelt documentation for third-party Java classes is denied. Guests can only view jhplot Java API. To view the complete description of this class and its methods, please request the full DataMelt membership.

If you are already a full member, please login to the DataMelt member area before visiting this documentation.