-
Notifications
You must be signed in to change notification settings - Fork 696
add CSCMatrix's constructor back #375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
hey @mengxr, that constructor was initially something I put in to overcome an issue in creating CSCMatrices in some of the UFunc operators, but removed it when it became unnecessary (although I forget exactly what changed..) Regardless, there are two issues:
Do you have a specific use case for the constructor that wouldn't be better handled by a companion object contructor method, added CSCBuilder functionality, or a separate UFunc altogether? |
|
In general, in breeze I want to have escape hatches for when users who So, if there's a good use case for assembling the pieces of a CSCMatrix On Tue, Mar 3, 2015 at 3:09 PM, gabeos notifications@github.com wrote:
|
|
okay, makes sense. any thoughts on the zero issue? I guess since it's expected to only be used by people who know what they're doing, they can choose the trade-off between the up front cost of extracting the empty values, and the higher cost of operations with more active values. So, if there's a good use case for assembling the pieces of a CSCMatrix On Tue, Mar 3, 2015 at 3:09 PM, gabeos notifications@github.com wrote:
—Reply to this email directly or view it on GitHub. |
|
yeah, I think we just let people shoot themselves in the foot if they want. On Tue, Mar 3, 2015 at 3:39 PM, gabeos notifications@github.com wrote:
|
|
Agree with @dlwh. CSC is a standard format for sparse matrix. We should just let people shoot themselves in the foot if they don't follow the specification. Having no public constructor makes it hard to convert data already in CSC format to breeze's |
I don't know why this was removed in #353. It would be nice to add it back for users to construct
CSCMatrixdirectly.