







TransposeMatrix – Evaluate the transposed matrix
‘ Evaluate the transposed matrix’ A transposed matrix is the array you get when you “rotate” a bi-dimensional ‘ array” Example’ Dim arr(,) As Double = {{0.0, 0.1, 0.2}, {1.0,
‘ Evaluate the transposed matrix’ A transposed matrix is the array you get when you “rotate” a bi-dimensional ‘ array” Example’ Dim arr(,) As Double = {{0.0, 0.1, 0.2}, {1.0,
‘ Swap two elements in the input array” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 0, 9}’ SwapArrayItems(arr, 1, 4)’ Dim o As Object’ For Each o
‘ The average of an array of any numeric type” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 0, 9}’ MessageBox.Show(ArrayAvg(arr))Function ArrayAvg(ByVal arr As Array) As Double Return
‘ Filter the input array. It can work with string arrays or arrays of other ‘ type!’ The input array is modified by removing the elements that do not match
‘ Fill the input array with random values” Example:’ Dim arr(9) As Integer’ FillRandomArray(arr, 1, 11)’ Dim i As Integer’ For i = 0 To 9′ Debug.Write(arr(i) & ” “)’
‘ The sum of an array of any numeric type” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 0, 9}’ MessageBox.Show(ArraySum(arr))Function ArraySum(ByVal arr As Array) As Double Return
‘ A Replace routine that works through all the items of the input array” Example:’ Dim arr As Integer() = {3, 7, 8, 2, 7, 0, 9, 7}’ ArrayReplace(arr, 7,