Linear AlgebraTypesRealMatrixMethodscolsOn this pagecols Method of RealMatrix. cols() -> integer Returns the number of columns of a RealMatrix.