← Back to team overview

ufl team mailing list archive

[HG UFL] Renamed Vector/Matrix/Tensor to as_vector/...

 

One or more new changesets pushed to the primary ufl repository.
A short summary of the last three changesets is included below.

changeset:   311:18b0e7011e34e2d7d6d023ced886335b4ca9adec
tag:         tip
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Thu Oct 09 14:44:13 2008 +0200
files:       test/classcoverage.py test/indices.py ufl/__init__.py ufl/algorithms/checks.py ufl/algorithms/indexalgorithms.py ufl/algorithms/transformations.py ufl/algorithms/ufl2latex.py ufl/classes.py ufl/differentiation.py ufl/split.py ufl/tensoralgebra.py ufl/tensors.py
description:
Renamed Vector/Matrix/Tensor to as_vector/...


changeset:   310:452a2137034d05ad55f841355d794e99d82a1689
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Thu Oct 09 14:33:40 2008 +0200
files:       ROADMAP
description:
Updated roadmap.


changeset:   309:a49c11d17e42937fc9574f3b7f0a8ba0cd4b9024
user:        "Martin Sandve Alnæs <martinal@xxxxxxxxx>"
date:        Thu Oct 09 13:38:08 2008 +0200
files:       sandbox/test_transformations.py test/classcoverage.py ufl/algorithms/ad.py ufl/algorithms/checks.py ufl/algorithms/dependencies.py ufl/algorithms/indexalgorithms.py ufl/algorithms/transformations.py ufl/algorithms/ufl2latex.py ufl/classes.py ufl/indexing.py ufl/split.py ufl/tensors.py
description:
Replaced ListVector and ListMatrix classes with generalized ListTensor class.
Renamed Tensor to ComponentTensor, made Tensor a function like Vector and Matrix.
(We should probably rename these three to something else to avoid name clashes with DOLFIN).

Example usage (from classcoverage.py):

        # ListTensor()
        a = Vector([1.0, 2.0*f0, f0**2])
        a = Matrix([[1.0, 2.0*f0, f0**2],
                    [1.0, 2.0*f0, f0**2]])
        a = Tensor([ [[0.00, 0.01, 0.02],
                      [0.10, 0.11, 0.12]],
                     [[1.00, 1.01, 1.02],
                      [1.10, 1.11, 1.12]] ])

        # ComponentTensor()
        a = Vector(v1[i] * f1[j], i)
        a = Matrix(v1[i] * f1[j], (j,i))
        a = Tensor(v1[i] * f1[j], (i,j))
        a = Tensor(v2[i,j] * f2[j,k], (i,k))

----------------------------------------------------------------------
For more details, visit http://www.fenics.org/hg/ufl