All Downloads are FREE. Search and download functionalities are using the official Maven repository.

JSci.maths.matrices.VM_global_library.vm Maven / Gradle / Ivy

Go to download

JSci is a set of open source Java packages. The aim is to encapsulate scientific methods/principles in the most natural way possible. As such they should greatly aid the development of scientific based software. It offers: abstract math interfaces, linear algebra (support for various matrix and vector types), statistics (including probability distributions), wavelets, newtonian mechanics, chart/graph components (AWT and Swing), MathML DOM implementation, ... Note: some packages, like javax.comm, for the astro and instruments package aren't listed as dependencies (not available).

The newest version!
#*
* Velocity macro library
*#

## Convenient definitions for often used complex array expressions

#macro(modSqrZ $m)(${m}.real()*${m}.real() + ${m}.imag()*${m}.imag())#end
#macro(modSqrM $m $mij)(${m}.getRealElement(${mij})*${m}.getRealElement(${mij}) + ${m}.getImagElement(${mij})*${m}.getImagElement(${mij}))#end
#macro(modSqrA $m $mij)(${m}Re${mij}*${m}Re${mij} + ${m}Im${mij}*${m}Im${mij})#end

#macro(multZZRe $u $v)(${u}.real()*${v}.real() - ${u}.imag()*${v}.imag())#end
#macro(multZZIm $u $v)(${u}.imag()*${v}.real() + ${u}.real()*${v}.imag())#end
#macro(multAZRe $m $mij $z)(${m}Re${mij}*${z}.real() - ${m}Im${mij}*${z}.imag())#end
#macro(multAZIm $m $mij $z)(${m}Im${mij}*${z}.real() + ${m}Re${mij}*${z}.imag())#end
#macro(multAARe $m $mij $n $nij)(${m}Re${mij}*${n}Re${nij} - ${m}Im${mij}*${n}Im${nij})#end
#macro(multAAIm $m $mij $n $nij)(${m}Im${mij}*${n}Re${nij} + ${m}Re${mij}*${n}Im${nij})#end
#macro(multAMRe $m $mij $n $nij)(${m}Re${mij}*${n}.getRealElement(${nij}) - ${m}Im${mij}*${n}.getImagElement(${nij}))#end
#macro(multAMIm $m $mij $n $nij)(${m}Im${mij}*${n}.getRealElement(${nij}) + ${m}Re${mij}*${n}.getImagElement(${nij}))#end
#macro(multMARe $m $mij $n $nij)(${m}.getRealElement(${mij})*${n}Re${nij} - ${m}.getImagElement(${mij})*${n}Im${nij})#end
#macro(multMAIm $m $mij $n $nij)(${m}.getImagElement(${mij})*${n}Re${nij} + ${m}.getRealElement(${mij})*${n}Im${nij})#end




© 2015 - 2024 Weber Informatics LLC | Privacy Policy