[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Thu, 13 Aug 1998 12:49:24 -0300
>>>>> On Thu, 13 Aug 1998 13:06:21 +0200 (MET DST),
>>>>> Peter Waller <address@hidden> said:
> I have a small problem.
> I want to calculate cross(A,B), ie. cross(A(k,:),B(k,:)), k=1..10
> This does not work with the ordinary cross product. I want to solve this
> problem without loops etc, any sugestion?
> /Peter Waller
I faced the same problem several times. I coded this
## CROSS returns the cross (vectorial) product of two vectors
## c=pvec(a,b) ==> c = a x b
I should add some day a trivial error checking, etc...
Also I had to write a series of functions in order to solve a large
number of small linear systems. For instance, say 10000 systems of
3x3. This arises in finite element analysis in order to avoid loops over
elements or gauss points.
- vectors, Peter Waller, 1998/08/13
- Re: vectors,
Mario Storti <=