 
     char *cucolfield = NULL, *curowfield = NULL;
 
-    if (vec->traits.flags & GHOST_DENSEMAT_SCATTERED) {
+    if (vec->traits.flags & GHOST_DENSEMAT_VIEW) {
         
-        WARNING_LOG("Potentially slow fromScalar operation because some rows or columns are masked out!");
+        WARNING_LOG("Potentially slow fromScalar operation because some rows or columns may be masked out!");
         GHOST_CALL_GOTO(ghost_cu_malloc((void **)&cucolfield,vec->traits.ncolsorig),err,ret);
         GHOST_CALL_GOTO(ghost_cu_malloc((void **)&curowfield,vec->traits.nrowsorig),err,ret);
 

        }
    }
    
    if (vec->traits.flags & GHOST_DENSEMAT_SCATTERED) {
        
        WARNING_LOG("Potentially slow VSCALE operation because some rows or columns are masked out!");
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&cucolfield,vec->traits.ncolsorig),err,ret);
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&curowfield,vec->traits.nrowsorig),err,ret);



    char *cucolfield = NULL, *curowfield = NULL;

    if ((vec->traits.flags & GHOST_DENSEMAT_VIEW) || (vec2->traits.flags & GHOST_DENSEMAT_VIEW)) {
        WARNING_LOG("Potentially slow AXPY operation because some rows or columns may be masked out!");
        
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&cucolfield,vec->traits.ncolsorig),err,ret);
        GHOST_CALL_GOTO(ghost_cu_malloc((void **)&curowfield,vec->traits.nrowsorig),err,ret);
