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

ID 767251
Date 3/22/2024
Public
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])