Re: [ViennaCL-devel] Initializing matrices via direct serialization (row major or CCS)

2016-07-12 Thread Dmitriy Lyubimov
Thank you! this is very useful . To get a little bit more background, we are thinking of enabling Apache mahout algebra to auto probe for hardware and use ViennaCL-supported in-memory computations there (not to mention additional solvers are just great, some of our basic in-memory java-only algebr

Re: [ViennaCL-devel] Initializing matrices via direct serialization (row major or CCS)

2016-07-12 Thread Karl Rupp
Hi, > One question: you mentioned padding for the `matrix` type. When i > initialize the `matrix` instance, i only specify dimensions. how do I > know padding values? if you want to provide your own padded dimensions, consider using matrix_base directly. If you want to query the padded dimensio

Re: [ViennaCL-devel] Initializing matrices via direct serialization (row major or CCS)

2016-07-12 Thread Charles Determan
Hi Dmitriy, If you have already initialized the matrix I believe you can get the padded sizes use the respective 'internal' calls. mat.internal_size1() mat.internal_size2() Regards, Charles On Tue, Jul 12, 2016 at 11:19 AM, Dmitriy Lyubimov wrote: > Thank you, Karl! > > Aha, so the fast_copy

Re: [ViennaCL-devel] Initializing matrices via direct serialization (row major or CCS)

2016-07-12 Thread Dmitriy Lyubimov
Thank you, Karl! Aha, so the fast_copy looks like something I need. One question: you mentioned padding for the `matrix` type. When i initialize the `matrix` instance, i only specify dimensions. how do I know padding values? On Tue, Jul 12, 2016 at 5:53 AM, Karl Rupp wrote: > Hi Dmitriy, > > O

Re: [ViennaCL-devel] Initializing matrices via direct serialization (row major or CCS)

2016-07-12 Thread Karl Rupp
Hi Dmitriy, On 07/12/2016 07:17 AM, Dmitriy Lyubimov wrote: > Hi, > > I am trying to create some elementary wrappers for VCL in javacpp. > > Everything goes fine, except i really would rather not use those "cpu" > types (std::map, > std::vector) and rather initialize matrices directly by feeding >