Thread: [ojAlgo-user] Sparse matrices multiplication
Mathematics, linear algebra and optimisation
Brought to you by:
apete
From: Santiago P. V. <san...@gm...> - 2016-05-21 14:31:32
|
Hi, I am starting with OjAlgo and I find that the multiplication of 2 sparse matrices returns a full matrix (or so says netbeans) Here Cf and Yf are sparse matrices and I need their multiplication: SparseStore a = Cf.transpose().multiply(Yf); How do I do a sparse multiplication with OjAlgo? Thanks |
From: Anders P. <an...@op...> - 2016-05-22 15:04:38
|
ojAlgo does not support that (yet). > On 21 maj 2016, at 16:31, Santiago Peñate Vera <san...@gm...> wrote: > > Hi, > > I am starting with OjAlgo and I find that the multiplication of 2 sparse > matrices returns a full matrix (or so says netbeans) > > Here Cf and Yf are sparse matrices and I need their multiplication: > > SparseStore a = Cf.transpose().multiply(Yf); > > How do I do a sparse multiplication with OjAlgo? > > Thanks > > ------------------------------------------------------------------------------ > Mobile security can be enabling, not merely restricting. Employees who > bring their own devices (BYOD) to work are irked by the imposition of MDM > restrictions. Mobile Device Manager Plus allows you to control only the > apps on BYO-devices by containerizing them, leaving personal data untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > _______________________________________________ > ojAlgo-user mailing list > ojA...@li... > https://lists.sourceforge.net/lists/listinfo/ojalgo-user |
From: Anders P. <an...@op...> - 2016-05-29 21:13:22
|
I just checked in some changes that may interest you: 1) The multiply-method in MatrixStore PhysicalStore<N> multiply(Access1D<N>, PhysicalStore<N>) has changed to void multiply(Access1D<N>, ElementsConsumer<N>) 2) SparseStore now implements ElementsConsumer Those two changes in combination essentially makes it possible to do what you asked: a.fillByMultiplying(Cf.transpose(), Yf)); or Cf.transpose().multiply(Yf, a); I have not implemented any new multiplication algorithm, but the existing ones already to some extent exploit sparsity/structures. > On 22 maj 2016, at 17:04, Anders Peterson <an...@op...> wrote: > > ojAlgo does not support that (yet). > > >> On 21 maj 2016, at 16:31, Santiago Peñate Vera <san...@gm...> wrote: >> >> Hi, >> >> I am starting with OjAlgo and I find that the multiplication of 2 sparse >> matrices returns a full matrix (or so says netbeans) >> >> Here Cf and Yf are sparse matrices and I need their multiplication: >> >> SparseStore a = Cf.transpose().multiply(Yf); >> >> How do I do a sparse multiplication with OjAlgo? >> >> Thanks >> >> ------------------------------------------------------------------------------ >> Mobile security can be enabling, not merely restricting. Employees who >> bring their own devices (BYOD) to work are irked by the imposition of MDM >> restrictions. Mobile Device Manager Plus allows you to control only the >> apps on BYO-devices by containerizing them, leaving personal data untouched! >> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j >> _______________________________________________ >> ojAlgo-user mailing list >> ojA...@li... >> https://lists.sourceforge.net/lists/listinfo/ojalgo-user > > ------------------------------------------------------------------------------ > Mobile security can be enabling, not merely restricting. Employees who > bring their own devices (BYOD) to work are irked by the imposition of MDM > restrictions. Mobile Device Manager Plus allows you to control only the > apps on BYO-devices by containerizing them, leaving personal data untouched! > https://ad.doubleclick.net/ddm/clk/304595813;131938128;j > _______________________________________________ > ojAlgo-user mailing list > ojA...@li... > https://lists.sourceforge.net/lists/listinfo/ojalgo-user |
From: Anders P. <an...@op...> - 2017-09-02 11:43:06
|
FYI https://github.com/optimatika/ojAlgo/wiki/Sparse-Matrices ojAlgo's sparse capabilities have been greatly improved with some recent updates. > On 29 May 2016, at 23:13, Anders Peterson <an...@op...> wrote: > > I just checked in some changes that may interest you: > > > 1) The multiply-method in MatrixStore > > PhysicalStore<N> multiply(Access1D<N>, PhysicalStore<N>) > > has changed to > > void multiply(Access1D<N>, ElementsConsumer<N>) > > > 2) SparseStore now implements ElementsConsumer > > > Those two changes in combination essentially makes it possible to do what you asked: > > a.fillByMultiplying(Cf.transpose(), Yf)); > > or > > Cf.transpose().multiply(Yf, a); > > > > I have not implemented any new multiplication algorithm, but the existing ones already to some extent exploit sparsity/structures. > > > >> On 22 maj 2016, at 17:04, Anders Peterson <an...@op...> wrote: >> >> ojAlgo does not support that (yet). >> >> >>> On 21 maj 2016, at 16:31, Santiago Peñate Vera <san...@gm...> wrote: >>> >>> Hi, >>> >>> I am starting with OjAlgo and I find that the multiplication of 2 sparse >>> matrices returns a full matrix (or so says netbeans) >>> >>> Here Cf and Yf are sparse matrices and I need their multiplication: >>> >>> SparseStore a = Cf.transpose().multiply(Yf); >>> >>> How do I do a sparse multiplication with OjAlgo? >>> >>> Thanks >>> >>> ------------------------------------------------------------------------------ >>> Mobile security can be enabling, not merely restricting. Employees who >>> bring their own devices (BYOD) to work are irked by the imposition of MDM >>> restrictions. Mobile Device Manager Plus allows you to control only the >>> apps on BYO-devices by containerizing them, leaving personal data untouched! >>> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j >>> _______________________________________________ >>> ojAlgo-user mailing list >>> ojA...@li... >>> https://lists.sourceforge.net/lists/listinfo/ojalgo-user >> >> ------------------------------------------------------------------------------ >> Mobile security can be enabling, not merely restricting. Employees who >> bring their own devices (BYOD) to work are irked by the imposition of MDM >> restrictions. Mobile Device Manager Plus allows you to control only the >> apps on BYO-devices by containerizing them, leaving personal data untouched! >> https://ad.doubleclick.net/ddm/clk/304595813;131938128;j >> _______________________________________________ >> ojAlgo-user mailing list >> ojA...@li... >> https://lists.sourceforge.net/lists/listinfo/ojalgo-user > |