Re: [ojAlgo-user] power or round functionality
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Anders P. <an...@op...> - 2015-04-27 17:10:14
|
Sorry, I just noticed you were using BasicMatrix. It works a little different there (a somewhat limited set of functionality) partly because BasicMatrix instances are immutable. It does have a modify-method: BasicMatrix modify(UnaryFunction<? extends Number>); > On 27 apr 2015, at 18:51, Anders Peterson <an...@op...> wrote: > > Do you want to modify matrix elements? > > Everything that implements Access2D.Modifiable has these methods: > > modifyColumn(long, long, UnaryFunction<N>) > modifyDiagonal(long, long, UnaryFunction<N>) > modifyOne(long, long, UnaryFunction<N>) > modifyOne(long, UnaryFunction<N>) > modifyRange(long, long, UnaryFunction<N>) > modifyRow(long, long, UnaryFunction<N>) > > If you’re using primitive double elements you’ll find a predefined set of functions in org.ojalgo.function.PrimitiveFunction > > The PhysicalStore.Factory also provides access to that set of functions. > > If you don’t find what you need you just create a custom UnaryFunction implementation. > > /Anders > > >> On 27 apr 2015, at 18:29, Argyrouska Bob <esp...@gm...> wrote: >> >> Hello, >> >> I am a new member and still practicing with library but what surprises me is that I haven't found support for power functions or round to a BasicMatrix data type. Is this true or it's named somewhat different? >> >> Thanks and regards, >> silver >> >> >> ------------------------------------------------------------------------------ >> One dashboard for servers and applications across Physical-Virtual-Cloud >> Widest out-of-the-box monitoring support with 50+ applications >> Performance metrics, stats and reports that give you Actionable Insights >> Deep dive visibility with transaction tracing using APM Insight. >> http://ad.doubleclick.net/ddm/clk/290420510;117567292;y_______________________________________________ >> ojAlgo-user mailing list >> ojA...@li... >> https://lists.sourceforge.net/lists/listinfo/ojalgo-user > |