Skip to content
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

adding multiply primitive #38

Closed
wants to merge 3 commits into from
Closed

adding multiply primitive #38

wants to merge 3 commits into from

Conversation

akheir
Copy link
Member

@akheir akheir commented Sep 29, 2017

This adds multiply primitive. It works for vector of operands when:

  1. all operands are double
  2. all operands are matrices
  3. when there is mix of doubles and matrices; except when the first operand is double, in this case it only multiplies first to operands and throws exception for 3 operands and more.

issue: when tested with matrices larger than 100 by 100 got this:
Stack overflow in coroutine at address 0x00007f1286f2fbb8. Configure the hpx runtime to allocate a larger coroutine stack size. But the logic works and tests pass for smaller matrices.

std::vector<primitive> operands_;
};
}}}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Something went wrong with the indentation here.

);
}
}}}

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here, indentation gone wrong

@hkaiser
Copy link
Member

hkaiser commented Sep 29, 2017

May I suggest you reformat all source files using clang-format (there is a .clang-format configuration file in the root of this repository).

Copy link
Member

@hkaiser hkaiser left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks a lot!

@akheir akheir closed this Oct 2, 2017
@akheir akheir deleted the multiply_primitive branch October 2, 2017 20:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants