Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

In this wiki page, the proposals made on the mailing-list towards the simplification of the org.apache.commons.math3.linear package will be summarized.

...

RealVector vs.

...

RealMatrix

In this section, the current (version 3.0) interfaces for vectors and matrices are compared. Vectors and matrices are two mathematical objects which are very close in nature. Their implementations should therefore be as similar as possible.

...

RealVector

RealMatrix

Comments

RealVector add(RealVector v)

RealMatrix add(RealMatrix m)

 

 

double getTrace()

 

RealVector mapMultiply(double d)

RealMatrix scalarMultiply(double d)

 

RealVector mapMultiplyToSelf(double d)

 

 

 

RealMatrix multiply(RealMatrix m)

 

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="aa8522edaa5bec4c-49286042-4e1a4104-a3e8820d-1e889666536be335a38339e2"><ac:plain-text-body><![CDATA[

 

double[] operate(double[] v)

 

]]></ac:plain-text-body></ac:structured-macro>

 

RealVector operate(RealVector v)

 

<ac:structured-macro ac:name="unmigrated-wiki-markup" ac:schema-version="1" ac:macro-id="90904c183bb24a5b-9f084f30-45794d88-b5b5919f-cb1f10749b4d3cf2ce07159d"><ac:plain-text-body><![CDATA[

 

double[] [RealVector] preMultiply(double[] v)

 

]]></ac:plain-text-body></ac:structured-macro>

 

RealMatrix preMultiply(RealMatrix m)

 

 

RealVector preMultiply(RealVector v)

 

 

RealMatrix transpose()

 

...