size(array) returns the total number
of elements in array. The optional argument
will return the number of elements in a particular dimension.
shape(array) returns an integer vector whose
length is the number of dimensions of array, and each element
is the size of that dimension.
real*8 A(3,4) integer elements,dim1 integer dims(2) elements = size(A) ! elements = 12 dim1 = size(A,DIM=1) ! dim1 = 3 dims = shape(A) ! dims = (3,4)
matmul(A,B) returns an array that is the matrix multiplication of A and B. The only requirement is that A and B must be conformable. Thus it can also do matrix-vector multiplication.
dot_product(a,b) returns a scalar
that is the dot product of a and b.
transpose(A) Returns an array that is the transpose