Example #1
0
        public static ListDouble operator *(ListDouble arg0, double arg1)
        {
            ListDouble outputList = new ListDouble();

            for (int i = 0; i < arg0.Count; i++)
            {
                outputList.Add(arg0[i] * arg1);
            }

            return(outputList);
        }
Example #2
0
        public static ListDouble operator +(ListDouble arg0, ListDouble arg1)
        {
            ListDouble outputList = new ListDouble();

            if (arg0.Count == arg1.Count && arg0.Count > 0)
            {
                for (int i = 0; i < arg0.Count; i++)
                {
                    outputList.Add(arg0[i] + arg1[i]);
                }
            }

            return(outputList);
        }