twitter / algebird

Abstract Algebra for Scala

Home Page:https://twitter.github.io/algebird

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

The GeneratedTupleAggregator is not recognized

nasrbel opened this issue · comments

Hello world ,

I am trying to use the source code of Algebird by taking only he packages algebird, matrix , mutable and macros. My goal is to create a dense matrix from scratch using the scala programming language without calling ( com.twitter.algebird ). However I found a problem in the aggregator.scala; the aggregator has no an instance fromMonoid ( the object fromMonoid[T], fromMonoid[F,T] re already defined in the class aggregator.scala ) . Another problem is that the GeneratedTupleAggregator is not recognized. By the way I have copied the scala class GeneratedTupleAggregator in a package "project". If any person is familiar with that, please recommand a solution for me.

Thanks

I'm not 100% clear what you are trying to do.

Can you be clearer why you don't want to use the published binary jars?

Aggregator.fromMonoid is defined here:

def fromMonoid[T](implicit mon: Monoid[T]): MonoidAggregator[T, T, T] =

GenTupleAggregators.gen((sourceManaged in Compile).value)

Using this scala code as a code generator: https://github.com/twitter/algebird/blob/develop/project/GenTupleAggregators.scala

It sounds like you are trying to make a new build, and possibly change the source and would like support for that. I doubt that your questions will have much to do with this project in particular, and you can ask for support on general scala support groups (irc, gitter, discord, slack, etc...) I will not have time to support.

Hey Johnynek ,

Thanks for your response. I do appreciate that. Yes i do want to make a new build. What I need is to create denseMatrix that is it. The package algebid-core is sufficient for me. I am already using the class aggregator where the "GeneratedTupleAggregator " is not recognized. I don't know if I have to copy the GeneratedTupleAggregator.scala to the project file or I have to use the same build.sbt file used by the developpers of algebird-twitter.

Thanks,