Intel® Fortran Compiler Classic and Intel® Fortran Compiler Developer Guide and Reference

ID 767251
Date 9/08/2022
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

Structure Constructors for Parameterized Derived Types

A type-param-spec-list must be given when constructing a parameterized derived type. See Parameterized TYPE Statements.

The syntax takes the following form:

derived-type-spec ( [ comp-spec-list ] )

derived-type-spec

Is a derived type-spec. See Type Declarations for details on derived type specifications.

comp-spec-list

Is a list of one or more component specifications.

Example

Matrix (kind (0.0),1,3) :: my_matrix 
my_matrix =  matrix (kind (0.0),1,3) ([1.0,2.0,3.0])