ECOdyagnostics/operations.py
def dot(self, x, y):
        """
        Performs a dot product for two vector fields.

        x and y are vector fields given as a list of scalar fields. Matching dimensions are required.

        :param x:   vector field
        :param y:   vector filed

        :return:
        """
        dims = len(x) if len(x) == len(y) else False
        if dims == False:
            raise Exception("Vector dimensions do not match: x: %s != y:%s" % (len(x), len(y)))

        c = 0
        for i in range(dims):
            c += x[i] * y[i]

        return c

        Performs a dot product for two vector fields.

        x and y are vector fields given as a list of scalar fields. Matching dimensions are required.

        :param x:   vector field
        :param y:   vector filed

        :return:
        
Performs a dot product for two vector fields.
x and y are vector fields given as a list of scalar fields. Matching dimensions are required.
Performs a dot product for two vector fields . x and y are vector fields given as a list of scalar fields . Matching dimensions are required .
def dot(self, x, y):
        dims = len(x) if len(x) == len(y) else False
        if dims == False:
            raise Exception("Vector dimensions do not match: x: %s != y:%s" % (len(x), len(y)))
        c = 0
        for i in range(dims):
            c += x[i] * y[i]
        return c
def dot ( self , x , y ) : dims = len ( x ) if len ( x ) == len ( y ) else False if dims == False : raise Exception ( "Vector dimensions do not match: x: %s != y:%s" % ( len ( x ) , len ( y ) ) ) c = 0 for i in range ( dims ) : c += x [ i ] * y [ i ] return c
Performs a dot product for two vector fields.
Performs a dot product for two vector fields .
"""
        Performs a dot product for two vector fields.

        x and y are vector fields given as a list of scalar fields. Matching dimensions are required.

        :param x:   vector field
        :param y:   vector filed

        :return:
        """
None
self
x
None
y
None