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

Repmat for BIDMat? #74

Open
ago109 opened this issue Nov 6, 2016 · 0 comments
Open

Repmat for BIDMat? #74

ago109 opened this issue Nov 6, 2016 · 0 comments

Comments

@ago109
Copy link

ago109 commented Nov 6, 2016

Probably a simple question, but is there a repmat() (as in Matlab) like function for BIDMat? In essence, let's say I have a column-major vector (or Mat), how would I efficiently create a matrix of the same number of rows as the column-vector but a specified number of columns?

I was wondering if BIDMat offered some clever (speedy) alternatives to simply doing the following:
var col_vec = rand(4,1)
var matrix = ones(4,4) *@ col_vec //since elementwise products in BIDMat can also multiply matrices by column vectors (etc.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant