Fortran – Derived Data Types
In this guide, we will discuss Fortran Derived Data Types. Fortran allows you to define derived data types. A derived data type is also called a structure, and it can…
In this guide, we will discuss Fortran Derived Data Types. Fortran allows you to define derived data types. A derived data type is also called a structure, and it can…
In this guide, we will discuss Fortran Dynamic Arrays. A dynamic array is an array, the size of which is not known at compile time, but will be known at execution time.…
In this guide, we will discuss Fortran Location Functions. The following table describes the location functions: FunctionDescriptionmaxloc(array, mask)It returns the position of the greatest element in the array array, if…
Manipulation functions are shift functions. The shift functions return the shape of an array unchanged, but move the elements. Sr.NoFunction & Description1cshift(array, shift, dim)It performs circular shift by shift positions…
In this guide, we will discuss Fortran Reshape Functions. The following table describes the reshape function: FunctionDescriptionreshape(source, shape, pad, order)It constructs an array with a specified shape shape starting from…
In this guide, we will discuss Fortran Construction Functions. The following table describes the construction functions: FunctionDescriptionmerge(tsource, fsource, mask)This function joins two arrays. It gives the elements in tsource if…
In this guide, we will discuss Fortran Inquiry Functions. The following table describes the inquiry functions − Sr.NoFunction & Description1allocated(array)It is a logical function which indicates if the array is…
In this guide, we will discuss Fortran Reduction Functions. The following table describes the reduction functions: FunctionDescriptionall(mask, dim)It returns a logical value that indicates whether all relations in mask are…
In this guide, we will discuss Fortran vector and matrix multiplication functions. The following table describes the vector and matrix multiplication functions: FunctionDescriptiondot_product(vector_a, vector_b)This function returns a scalar product of…
In this guide, we will discuss Fortran Arrays. Arrays can store a fixed-size sequential collection of elements of the same type. An array is used to store a collection of…